Hola amigos,
estoy siguiendo un manual (
http://debianhelp.co.uk/mrtg) para poner mrtg en mi servidor web, pero llevo todo el día intentando a ver por qué puede ser y no lo consigo.
Vamos por partes. Pasos iniciales hechos correctamente
Paso siguiente
Now we need to assign the snmp community name in snmp configration file /etc/snmp/snmpd.conf
# sec.name source community
# com2sec paranoid default public
com2sec readonly default public
#com2sec readwrite default private
--> Aquí lo que he hecho ha sido añadir esas líneas al final del fichero .conf
Reinicio el servicio. A continuación
The configuration file creating using
#cfgmaker public@localhost > /etc/mrtg.cfg --> Esto lo hace bien
Creating a configuration file for a device using
#cfgmaker
public@192.168.0.1 >> /etc/mrtg.cfg --> He sustituido esta ip por la ip de mi pc en mi red local, no sé si eso es correcto. He probado también con esa dirección y con la puerta de enlace, pero todas me tiran este error:
root@debianserver:/home/debian# cfgmaker
public@192.168.1.11 >> /etc/mrtg.cfg
SNMP Error:
no response received
SNMPv1_Session (remote host: "192.168.1.11" [192.168.1.11].161)
community: "public"
request ID: 1574989891
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/share/perl5/SNMP_util.pm line 629
SNMPWALK Problem for 1.3.6.1.2.1.1 on public@192.168.1.11::::::v4only
at /usr/bin/cfgmaker line 961
WARNING: Skipping public@192.168.1.11: as no info could be retrieved
y ya no puedo seguir.
No obstante continué con el paso siguiente
With the configuration file created correctly there's only one other thing you have to do and that's to use the indexmaker utility to create the summary home page. Since you have to re-run this command every time you make certain changes to the /etc/mrtg.cfg configuration file,
Creating index file for the webserver using
#indexmaker /etc/mrtg.cfg > /var/www/mrtg/index.html
Pero me tira este error
Use of uninitialized value $first in hash element at /usr/bin/indexmaker line 353.
un saludo. siento ser tan pesado. muchas gracias.
EDITO: Se me ha olvidado decir que el puerto 161 lo tengo abierto. Protocolo UDP a través de la configuración de nat