Unable to get bandwidth utilization data from Cisco switch
-
- Posts: 43
- Joined: Thu Sep 29, 2011 11:07 am
Re: Unable to get bandwidth utilization data from Cisco swit
See results below
Last edited by brian.gamble on Fri Oct 07, 2011 2:15 pm, edited 1 time in total.
-
- Posts: 43
- Joined: Thu Sep 29, 2011 11:07 am
Re: Unable to get bandwidth utilization data from Cisco swit
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
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
-
- Posts: 1040
- Joined: Wed May 11, 2011 8:54 am
Re: Unable to get bandwidth utilization data from Cisco swit
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.
Nicholas Scott
Former Nagios employee
Former Nagios employee
-
- Posts: 43
- Joined: Thu Sep 29, 2011 11:07 am
Re: Unable to get bandwidth utilization data from Cisco swit
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.
-
- Posts: 43
- Joined: Thu Sep 29, 2011 11:07 am
Re: Unable to get bandwidth utilization data from Cisco swit
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.
Last edited by brian.gamble on Tue Oct 11, 2011 7:25 am, edited 1 time in total.
-
- Posts: 1040
- Joined: Wed May 11, 2011 8:54 am
Re: Unable to get bandwidth utilization data from Cisco swit
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.
Can you run
rrdtool fetch /var/lib/mrtg/<name of rrd file> AVERAGE
Do this on several of the RRDs, and post the output.
Nicholas Scott
Former Nagios employee
Former Nagios employee
-
- Posts: 43
- Joined: Thu Sep 29, 2011 11:07 am
Re: Unable to get bandwidth utilization data from Cisco swit
Ran the command against 3 seperate RRDs
You do not have the required permissions to view the files attached to this post.
-
- Posts: 136
- Joined: Tue Mar 01, 2011 10:17 am
Re: Unable to get bandwidth utilization data from Cisco swit
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
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
-
- Posts: 1040
- Joined: Wed May 11, 2011 8:54 am
Re: Unable to get bandwidth utilization data from Cisco swit
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 nscott@nagios.com. They contain senstive information so I suggest not posting them on the forums.
--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 nscott@nagios.com. They contain senstive information so I suggest not posting them on the forums.
Nicholas Scott
Former Nagios employee
Former Nagios employee
-
- Posts: 136
- Joined: Tue Mar 01, 2011 10:17 am
Re: Unable to get bandwidth utilization data from Cisco swit
Hi,
done it, but I am not finding /tmp/mrtg.log file.
thx
done it, but I am not finding /tmp/mrtg.log file.
thx