Page 1 of 1
Bandwidth monitoring (again)
Posted: Wed Aug 31, 2011 9:00 am
by davidha
Hi. I am getting desperate over bandwidth monitoring.
I've added a CISCO router to the Nagios XI monitoring and used "Network Switch / Router" wizard.
I've added both port numbers and port names and the bandwidth they all show is 0!!!
When I've added manually an snmp_check with ifHCInOctets/ifHCOutOctets on one of the interfaces of CISCO
it started monitoring.
I attach two printscreens which show that wizard created bandwidth checks show 0 Mbps and
the two manual checks not only show numbers, but the numbers change - so they actually do monitor.
Re: Bandwidth monitoring (again)
Posted: Wed Aug 31, 2011 9:42 am
by nscott
davidha,
Lets look at the raw data:
Go into the command lineof your Nagios XI box and move to /var/lib/mrtg/
Look at the rrds that exist and pick one, use that ones filename in place of <filename>
rrdtool fetch <filename> AVERAGE --start -1h
What is this returning?
Re: Bandwidth monitoring (again)
Posted: Thu Sep 01, 2011 1:10 am
by davidha
rrdtool fetch 172.21.52.1_3.rrd AVERAGE --start -1h
ds0 ds1
1314853800: nan nan
1314854100: nan nan
1314854400: nan nan
1314854700: nan nan
1314855000: nan nan
1314855300: nan nan
1314855600: nan nan
1314855900: nan nan
1314856200: nan nan
1314856500: nan nan
1314856800: nan nan
1314857100: nan nan
1314857400: nan nan
Re: Bandwidth monitoring (again)
Posted: Thu Sep 01, 2011 3:27 am
by davidha
And just to add some more info - I've added monitoring for CISCO 3750x and it also shows zero bandwidth
Re: Bandwidth monitoring (again)
Posted: Thu Sep 01, 2011 9:54 am
by nscott
Can you try this?:
chmod 777 /var/lib/mrtg -R
Then wait a bit and check the RRDs again?
Re: Bandwidth monitoring (again)
Posted: Sun Sep 04, 2011 2:05 am
by davidha
I did it and have got the same result.
Re: Bandwidth monitoring (again)
Posted: Tue Sep 06, 2011 1:20 pm
by nscott
davidha,
It sounds like there is some location/permissions snafu with MRTG. Since you've already chmod'd that directory, crack open the mrtg.cfg at
/etc/mrtg/mrtg.cfg
You'll need to nuke the part of the config file (do not nuke all of it) that begins like this:
Code: Select all
######################################################################
# System: PROCURVE J9449A
# Description: HP ProCurve 1810G - 8 GE, P.1.17, eCos-2.0
# Contact:
# Location:
######################################################################
### Interface 1 >> Descr: 'Port:-1-Gigabit---Level' | Name: '' | Ip: '' | Eth: '' ###
Target[192.168.5.43_1]: 1:[email protected]:::::1
SetEnv[192.168.5.43_1]: MRTG_INT_IP="" MRTG_INT_DESCR="Port:-1-Gigabit---Level"
MaxBytes[192.168.5.43_1]: 12500000
Title[192.168.5.43_1]: Traffic Analysis for 1 -- PROCURVE J9449A
PageTop[192.168.5.43_1]: <h1>Traffic Analysis for 1 -- PROCURVE J9449A</h1>
<div id="sysdetails">
<table>
......
until the end of the device config. Then go ahead and re-add it in Nagios XI.