
QUE ES MRTG BUENO EN INGLES SIGNIFICA The Multi Router Traffic Grapher ES UN SISTEMA OPEN SOURCE QUE MONITOREA VIA SNMP CUALQUIER DISPOSITOVO DENTRO DE UNA RED CREANDO UNAS GRAFICAS CHIDAS SI TIENES UN ROUTER ESTA HERRAMIENTA TEVA GUSTAR YA QUE TE PERMITE VER EL ESTADO DE LAS INTERFACES ,EL ANCHO DE BANDA BUENO EL MONITOREO DE INTERFACES ES SOLO UNA DE LAS COSAS QUE PODEMOS HACER PERO TAMBIEN PODEMOS MONITOREAR LA TEMPERATURA Y HUMEDAD DE NUESTRO DISPOSITIVO ESTA CHIDO NO!!!
[root@desarrollo mrtg-2.16.0]# wget http://oss.oetiker.ch/mrtg/pub/mrtg-2.16.0.zip
[root@desarrollo mrtg-2.16.0]# unzip mrtg-2.16.0.zip
[root@desarrollo mrtg-2.16.0]# yum install libpng zlib gd
Setting up Install Process
Parsing package install arguments
Package libpng - 2:1.2.22-1.fc8.i386 is already installed.
Package zlib - 1.2.3-14.fc8.i386 is already installed.
Nothing to do
[root@desarrollo mrtg-2.16.0]# ./configure --prefix=/usr/local/mrtg-2
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for perl... /usr/bin/perl
checking for groff... /usr/bin/groff
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for inttypes.h... (cached) yes
checking for unsigned long long... yes
checking for long long... yes
checking for strtoll... yes
checking for printf long long format specifier... %lld
checking for pow in -lm... yes
checking for gdImageGif in -lgd... yes
checking for gdImagePng in -lgd... yes
checking for gdImagePng_jpg in -lgd... no
checking for gdImagePng_jpg_ft in -lgd... no
checking for gdImageGd in -lgd... no
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
checking the weather... (cached) it's fine
checking if we can use GCC-specific compiler options... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING: Makefile.in seems to ignore the --datarootdir setting
config.status: creating config.h
ordering CD from http://tobi.oetiker.ch/wish .... just kidding ;-)
----------------------------------------------------------------
Config is DONE!
Type 'make' to compile the software
... that wishlist mentioned above does really exist. So if
you feel like showing your appreciation for MRTG, this is the
place to go. I just love CDs and DVDs
-- Tobi Oetiker
----------------------------------------------------------------
[root@desarrollo mrtg-2.16.0]# make
gcc -DGFORM_GD=gdImagePng -g -O2 -Wall -Wpointer-arith -Wcast-align -Wmissing-declarations -Wnested-externs -Winline -W -DHAVE_CONFIG_H -c ./src/rateup.c -o bin/rateup.o
LD_RUN_PATH= gcc bin/rateup.o -o bin/rateup -lgd -lpng -lz -lm
/usr/bin/perl -0777 -p -i~ -e "s'^#!\s*/\S*perl'#! /usr/bin/perl'" ./bin/cfgmaker ./bin/indexmaker ./bin/mrtg
/usr/bin/perl -0777 -p -i~ -e 's@GRAPHFMT="...";@GRAPHFMT="png";@' ./bin/mrtg ./bin/indexmaker
[root@desarrollo mrtg-2.16.0]# make install
/usr/bin/perl -0777 -p -i~ -e "s'^#!\s*/\S*perl'#! /usr/bin/perl'" ./bin/cfgmaker ./bin/indexmaker ./bin/mrtg
/usr/bin/perl -0777 -p -i~ -e 's@GRAPHFMT="...";@GRAPHFMT="png";@' ./bin/mrtg ./bin/indexmaker
/bin/sh ./mkinstalldirs /usr/local/mrtg-2/bin
mkdir /usr/local/mrtg-2
mkdir /usr/local/mrtg-2/bin
for x in ./bin/mrtg ./bin/cfgmaker ./bin/indexmaker ./bin/mrtg-traffic-sum; do \
/usr/bin/install -c -m 755 $x /usr/local/mrtg-2/bin; done
for x in bin/rateup; do \
/usr/bin/install -c -m 755 $x /usr/local/mrtg-2/bin; done
/bin/sh ./mkinstalldirs /usr/local/mrtg-2/lib/mrtg2/Pod
mkdir /usr/local/mrtg-2/lib
mkdir /usr/local/mrtg-2/lib/mrtg2
mkdir /usr/local/mrtg-2/lib/mrtg2/Pod
for x in ./lib/mrtg2/*.pm; do \
/usr/bin/install -c -m 644 $x /usr/local/mrtg-2/lib/mrtg2; done
for x in ./lib/mrtg2/Pod/*.pm; do \
/usr/bin/install -c -m 644 $x /usr/local/mrtg-2/lib/mrtg2/Pod; done
/bin/sh ./mkinstalldirs /usr/local/mrtg-2/share/mrtg2/icons
mkdir /usr/local/mrtg-2/share
mkdir /usr/local/mrtg-2/share/mrtg2
mkdir /usr/local/mrtg-2/share/mrtg2/icons
for x in ./images/*.gif ./images/*.png; do \
/usr/bin/install -c -m 644 $x /usr/local/mrtg-2/share/mrtg2/icons; done
/bin/sh ./mkinstalldirs /usr/local/mrtg-2/share/doc/mrtg2
mkdir /usr/local/mrtg-2/share/doc
mkdir /usr/local/mrtg-2/share/doc/mrtg2
(cd .; for x in COPYING COPYRIGHT README CHANGES THANKS doc/*.pod doc/*.txt doc/*.png; do \
/usr/bin/install -c -m 644 $x /usr/local/mrtg-2/share/doc/mrtg2; done)
/bin/sh ./mkinstalldirs /usr/local/mrtg-2/share/man/man1
mkdir /usr/local/mrtg-2/share/man
mkdir /usr/local/mrtg-2/share/man/man1
for x in ./doc/*.1; do \
/usr/bin/install -c -m 644 $x /usr/local/mrtg-2/share/man/man1; done
AHORA VA LA CONFIGURACION EN ESTA VERSION TRAEMOS UN SCRIPT QUE NOS PERMITE HACER LA CONFIGURACION SI NO DE OTRO MODO LO HARIAMOS A MANO...
[root@desarrollo mrtg-2.16.0]# cd bin/
[root@desarrollo bin]# ll
total 1092
-rwxr-xr-x 1 root root 107065 feb 12 11:53 cfgmaker
-rwxr-xr-x 1 root root 107065 feb 12 11:52 cfgmaker~
-rwxr-xr-x 1 root root 25663 feb 12 11:53 indexmaker
-rwxr-xr-x 1 root root 25663 feb 12 11:53 indexmaker~
-rwxr-xr-x 1 root root 102046 feb 12 11:53 mrtg
-rwxr-xr-x 1 root root 102046 feb 12 11:53 mrtg~
-rwxr-xr-x 1 root root 5952 dic 22 2006 mrtg-traffic-sum
-rwxr-xr-x 1 root root 101425 feb 12 11:52 rateup
-rwxr-xr-x 1 root root 222208 feb 6 08:35 rateup.exe
-rw-r--r-- 1 root root 156929 feb 17 2007 rateup.nlm
-rw-r--r-- 1 root root 104800 feb 12 11:52 rateup.o
[root@desarrollo bin]# ./cfgmaker --global 'WorkDir:/var/www/html/mrtg' --global 'Options[_]: bits,growright' --output /etc/mrtg/cfg/mrtg.cfg ekxo@localhost
SNMP Error:
no response received
SNMPv1_Session (remote host: "localhost" [127.0.0.1].161)
community: "ekxo"
request ID: -513429499
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/src/mrtg-2.16.0/bin/../lib/mrtg2/SNMP_util.pm line 628
SNMPWALK Problem for 1.3.6.1.2.1.1 on ekxo@localhost::::::v4only
at ./cfgmaker line 950
WARNING: Skipping ekxo@localhost: as no info could be retrieved
creamos el archivo!!! de conf
LO CORREMOS
AQUI APARECEN UNOS ERORSILLO PERO EN MANUAL VIENIEN LOS PASOS PARA SOLUCIONARLOS
[root@desarrollo bin]# /usr/local/mrtg-2/bin/mrtg /etc/mrtg/cfg/mrtg.cfg
-----------------------------------------------------------------------
ERROR: Mrtg will most likely not work properly when the environment
variable LANG is set to UTF-8. Please run mrtg in an environment
where this is not the case. Try the following command to start:
env LANG=C /usr/local/mrtg-2/bin/mrtg /etc/mrtg/cfg/mrtg.cfg
-----------------------------------------------------------------------
[root@desarrollo bin]# env LANG=C /usr/local/mrtg-2/bin/mrtg /etc/mrtg/cfg/mrtg.cfg
ERROR: CFG Error in "workdir", line 20: Working directory /var/www/html/mrtg does not exist
[root@desarrollo bin]# mkdir -p /var/www/html/mrtg
[root@desarrollo bin]# env LANG=C /usr/local/mrtg-2/bin/mrtg /etc/mrtg/cfg/mrtg.cfg
[root@desarrollo bin]#
0 comments:
Publicar un comentario en la entrada