Page 2 of 5

Re: Unable to get bandwidth utilization data from Cisco swit

Posted: Fri Oct 07, 2011 12:25 pm
by brian.gamble
See results below

Re: Unable to get bandwidth utilization data from Cisco swit

Posted: Fri Oct 07, 2011 2:13 pm
by brian.gamble
ll /var/lib = drwxr-xr-x. 2 root root 4096 Oct 6 21:50 mrtg

ll /var/lib/mrtg = -rw-r--r-- 1 root root 105160 Oct 7 20:10 (ip_port).rrd

-rw-r--r--. 1 root root 0 Oct 7 20:10 mrtg.ok

Re: Unable to get bandwidth utilization data from Cisco swit

Posted: Fri Oct 07, 2011 4:25 pm
by nscott
Is it still saying rrd does not exist? If thats so then there is something screwy with the filenames. Otherwise, we'll have to check the SNMP method that MRTG is using the poll the switch router using snmpget.

Re: Unable to get bandwidth utilization data from Cisco swit

Posted: Fri Oct 07, 2011 5:00 pm
by brian.gamble
It only shows that message for a few minutes, then the circle goes green but does not show the bandwidth in/out or graphs for that port.

Re: Unable to get bandwidth utilization data from Cisco swit

Posted: Mon Oct 10, 2011 10:11 am
by brian.gamble
Attached a snapshot image of the issue. Again, the port image is orange and I get the message that the .rrd does not exist. After a few minutes, they turn from orange to green but do not show Mb/s in or out and no graph data on the ports.

Re: Unable to get bandwidth utilization data from Cisco swit

Posted: Mon Oct 10, 2011 12:43 pm
by nscott
brian,

Can you run

rrdtool fetch /var/lib/mrtg/<name of rrd file> AVERAGE

Do this on several of the RRDs, and post the output.

Re: Unable to get bandwidth utilization data from Cisco swit

Posted: Mon Oct 10, 2011 12:55 pm
by brian.gamble
Ran the command against 3 seperate RRDs

Re: Unable to get bandwidth utilization data from Cisco swit

Posted: Mon Oct 10, 2011 9:36 pm
by lntinfo
Hi

I have the same problem, find the below rights. Need a soulution very urgent.

ll /var/lib

drwxr-xr-x. 2 root root 12288 Oct 10 13:05 mrtg

ll /var/lib/mrtg

-rw-r--r-- 1 root root 105160 Oct 10 22:30 10.102.xx.3_1.rrd
-rw-r--r-- 1 root root 105160 Oct 10 22:30 10.102.xx.3_4.rrd
-rw-r--r-- 1 root root 105160 Oct 10 22:30 10.102.xx.3_5.rrd
-rw-r--r-- 1 root root 105160 Oct 10 22:30 10.102.xx.4_1.rrd
-rw-r--r-- 1 root root 105160 Oct 10 22:30 10.102.xx.4_4.rrd
-rw-r--r-- 1 root root 105160 Oct 10 22:30 10.102.xx.4_5.rrd
-rw-r--r-- 1 root root 105160 Oct 10 22:30 10.70.xx_100.rrd
-rw-r--r-- 1 root root 105160 Oct 10 22:30 10.70.xx.xx_101.rrd
-rw-r--r-- 1 root root 105160 Oct 10 22:30 10.70xx.1_102.rrd

Re: Unable to get bandwidth utilization data from Cisco swit

Posted: Tue Oct 11, 2011 12:03 pm
by nscott
Ok guys, I'm gonna need you to try something. Can you edit the file /etc/cron.d/mrtg and put this on the end

--debug=time,base,snpo,log --logging /tmp/mrtg.log

So the entire line should look like this:

*/5 * * * * root LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok --debug=time,base,snpo,log --logging /tmp/mrtg.log

Then let it sit for a few minutes and check the logs. If you could bundle the logs and then them to email me at [email protected]. They contain senstive information so I suggest not posting them on the forums.

Re: Unable to get bandwidth utilization data from Cisco swit

Posted: Tue Oct 11, 2011 1:02 pm
by lntinfo
Hi,

done it, but I am not finding /tmp/mrtg.log file.

thx