Bandwidth monitoring (again)

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
davidha
Posts: 21
Joined: Thu Aug 18, 2011 9:45 am

Bandwidth monitoring (again)

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Bandwidth monitoring (again)

Post 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?
Nicholas Scott
Former Nagios employee
davidha
Posts: 21
Joined: Thu Aug 18, 2011 9:45 am

Re: Bandwidth monitoring (again)

Post 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
davidha
Posts: 21
Joined: Thu Aug 18, 2011 9:45 am

Re: Bandwidth monitoring (again)

Post by davidha »

And just to add some more info - I've added monitoring for CISCO 3750x and it also shows zero bandwidth
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Bandwidth monitoring (again)

Post by nscott »

Can you try this?:

chmod 777 /var/lib/mrtg -R

Then wait a bit and check the RRDs again?
Nicholas Scott
Former Nagios employee
davidha
Posts: 21
Joined: Thu Aug 18, 2011 9:45 am

Re: Bandwidth monitoring (again)

Post by davidha »

I did it and have got the same result.
User avatar
nscott
Posts: 1040
Joined: Wed May 11, 2011 8:54 am

Re: Bandwidth monitoring (again)

Post 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:nagiosprivate@192.168.5.43:::::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.
Nicholas Scott
Former Nagios employee
Locked