LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   MRTG snmp network graph empty (https://www.linuxquestions.org/questions/linux-server-73/mrtg-snmp-network-graph-empty-833338/)

Mycado 09-20-2010 08:54 AM

MRTG snmp network graph empty
 
1 Attachment(s)
Hello,

I installed MRTG some hours ago. Everything works fine (disk, cpu,..), except the network graph.
For this graph, it's only work for ~3 cycles (15min), then... nothing.

This is the part of mrtg.cfg:
Code:

### Interface 3 >> Descr: 'eth0' | Name: 'eth0' | Ip: 'localhost' | Eth: '00-1c-c0-c3-93-1b' ###
Options[127.0.0.1_3]: growright,nopercent,pngdate
Target[127.0.0.1_3]: 3:public@127.0.0.1:
SetEnv[127.0.0.1_3]: MRTG_INT_IP="127.0.0.1" MRTG_INT_DESCR="eth0"
MaxBytes[127.0.0.1_3]: 12500000
Title[127.0.0.1_3]: Traffic Analysis for eth0
XSize[127.0.0.1_3]: 550
YSize[127.0.0.1_3]: 150
PageTop[127.0.0.1_3]: <h1>Traffic Analysis for eth0</h1>

The number for eth0 is 3
Code:

r349xx:/etc/snmp# snmpwalk localhost -c public -v1 | grep IF-MIB::ifName
IF-MIB::ifName.1 = STRING: lo
IF-MIB::ifName.2 = STRING: dummy0
IF-MIB::ifName.3 = STRING: eth0
IF-MIB::ifName.4 = STRING: tunl0
IF-MIB::ifName.5 = STRING: gre0

SNMP is running:
Code:

r349xx:/home/mycado# ps aux | grep snmp
snmp    20872  0.0  1.1  51808  5728 ?        S    14:19  0:01 /usr/sbin/snmpd -Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1

Crontab is configured for mrtg (and seems it's not the problem because the other graphs works well):
Code:

r34976:/home/mycado# crontab -l
5 * * * * mrtg

In attachement is the graph for the memory (working!) and .. for the network, as you can see, only one small pic at the beginning.

gjarboni 10-19-2010 03:44 PM

If you run mrtg from the command line, you can see if mrtg is reporting any errors with the SNMP query. That might give you some more information to go on.


All times are GMT -5. The time now is 09:56 PM.