On 11/02/2013 04:17 p.m., l...@ida.cu wrote: > hola a todos, a ve rsi me pueden dar una ayuda > > Lo instalé así: > > home/luis# apt-get install mrtg mrtg-contrib mrtgutils > > > En el MRTG cuando rato de indexar para el www > root@lsp:/home/luis# indexmaker /etc/mrtg.cfg > /var/www/mrtg/index.html > > luego me da este error: > > ERROR: no H1 line pagetop property in eth0 section > root@lsp:/home/luis# > > ------------------------------------------------------------ > > este es mi mrtg.cfg > > GNU nano 2.2.4 Fichero: > /etc/mrtg.cfg > > ###################################################################### > # Multi Router Traffic Grapher -- Sample Configuration File > ###################################################################### > # This file is for use with mrtg-2.5.4c > > # Global configuration > WorkDir: /var/www/mrtg > Language: spanish > WriteExpires: Yes > Options[_]: growright > > > Title[^]: Traffic Analysis for > > # 128K leased line > # ---------------- > #Title[leased]: a 128K leased line > #PageTop[leased]: <H1>Our 128K link to the outside world</H1> > #Target[leased]: 1:public@router.localnet > #MaxBytes[leased]: 16000 > > Target[eth0]: `cat /proc/net/dev |grep eth0 |awk -F':' '{print $2}' > |awk '{print $1}'; cat /proc/net/dev |grep eth0 | awk -F':' '{print > $2}' |awk '{print $9}'; echo -e; echo -e` > MaxBytes1[eth0]: 232000 > MaxBytes2[eth0]: 116000 > Title[eth0]: Analisis del trafico total en eth0 > YLegend[eth0]: Trafico > PageTop[eth0]: Trafico total de Eth0 > > > A ver si alguien me puede ayudar > agradezo a todos la ayud ay el tiempo > > >
En cuatro pasos: 1.- Configura la clave del smpd: $ sudo vi /etc/snmp/snmpd.conf y elige la clave, donde diga rocommunity aquipontuclave 2.- Genera automaticamente el archivo de configuracion (ojo, cambia el nombre del archivo si no quieres que sobreescriba el que ya tienes): $ sudo cfgmaker --community aquipontuclave --output /etc/mrtg.cfg localhost 3.- Genera el index como lo estas haciendo $ sudo indexmaker --output /var/www/mrtg/index.html /etc/mrtg.cfg 4.- Prueba $ sudo env LANG=C /usr/bin/mrtg /etc/mrtg.cfg Con eso tienes lo basico, despues agregas a tu gusto para monitorear cpu, memoria, etc Saludos, -- Christian Frausto Bernal http://www.flickr.com/photos/cfrausto/ http://nayaritas.net -- To UNSUBSCRIBE, email to debian-user-spanish-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/5119a33d.50...@cfrausto.net