Problem with bandwidth graphs
Posted: Thu Mar 28, 2013 8:15 am
Hi everyone,
At the moment I am trying nagiosxi and I have a problem with the bandwidth graphs of all routers/switches I added (cisco and extremeware).
At nagios-webinterface I get:
It should be 40 Mb/s...
If I do this check manually on cli I get the following:
Is this conventional?
If I have a look at the .rrd files with rrdtool I discover the following:
At the mrtg directory it looks properly:
At the /usr/local/nagios/share/perfdata/cisco-router/Port3_Bandwidth.rrd
Here are the wrong data stored, i think. (see last_ds)
I already tried something like this: (only for debug purpose)
The first graph from /var/lib/mrtg/ directory looks properly
The second graph from /usr/local/nagios/share/perfdata/cisco_ip/ looks wrong with bandwidth data y<1
So I think the error happens at the nagios check when nagios writes down the performance graph to the share/perfdata directory.
Please correct me if I am wrong in my mind.
I configured those checks using the monitoring wizard -> network switch/router.
As default port speed i used 100000000.
But if i change this value nothing happens to the graphs and check results.
Here some information about my system:
Nagios XI Version : 2012R1.6
CentOS release 6.4 (Final) 64Bit
Tell me if you need more information.
I hope anybody has an idea for me.
Thank you very much for your help!
At the moment I am trying nagiosxi and I have a problem with the bandwidth graphs of all routers/switches I added (cisco and extremeware).
At nagios-webinterface I get:
Code: Select all
OK - Current BW in: 0Mbps Out: 0Mbps
Performance Data: in=.000040Mb/s;90;100 out=.000016Mb/s;90;100 If I do this check manually on cli I get the following:
Code: Select all
/usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/cisco_ip_3.rrd -w 90,90 -c 100,100 -l M
OK - Current BW in: 0Mbps Out: 0Mbps|in=.000040Mb/s;90;100 out=.000016Mb/s;90;100
If I have a look at the .rrd files with rrdtool I discover the following:
At the mrtg directory it looks properly:
Code: Select all
rrdtool info /var/lib/mrtg/cisco_ip_3.rrd
last_update = 1364474401
ds[ds0].type = "COUNTER"
ds[ds0].minimal_heartbeat = 600
ds[ds0].min = 0,0000000000e+00
ds[ds0].max = 1,2500000000e+07
ds[ds0].last_ds = "2774721250895"
ds[ds0].value = 8,8479664333e+05
ds[ds0].unknown_sec = 0
ds[ds1].type = "COUNTER"
ds[ds1].minimal_heartbeat = 600
ds[ds1].min = 0,0000000000e+00
ds[ds1].max = 1,2500000000e+07
ds[ds1].last_ds = "12020613023224"
ds[ds1].value = 2,4380970867e+06
ds[ds1].unknown_sec = 0
Here are the wrong data stored, i think. (see last_ds)
Code: Select all
rrdtool info /usr/local/nagios/share/perfdata/cisco-ip/Port_3_Bandwidth.rrd
ds[1].type = "GAUGE"
ds[1].minimal_heartbeat = 8460
ds[1].min = NaN
ds[1].max = NaN
ds[1].last_ds = ".000064"
ds[1].value = 2,2400000000e-03
ds[1].unknown_sec = 0
ds[2].type = "GAUGE"
ds[2].minimal_heartbeat = 8460
ds[2].min = NaN
ds[2].max = NaN
ds[2].last_ds = ".000016"
ds[2].value = 5,6000000000e-04
ds[2].unknown_sec = 0
Code: Select all
rrdtool graph speed.png --start=-24h DEF:myspeed=/var/lib/mrtg/cisco_ip_28.rrd:ds0:AVERAGE DEF:myspeed2=/var/lib/mrtg/cisco_ip_28.rrd:ds1:AVERAGE LINE2:myspeed#FF0000 LINE2:myspeed2#FF0000
rrdtool graph speed2.png --start=-24h DEF:myspeed=/usr/local/nagios/share/perfdata/cisco_ip/Port_3_Bandwidth.rrd:1:AVERAGE DEF:myspeed2=/usr/local/nagios/share/perfdata/cisco_ip/Port_3_Bandwidth.rrd:2:AVERAGE LINE2:myspeed#FF0000 LINE2:myspeed2#FF0000
The second graph from /usr/local/nagios/share/perfdata/cisco_ip/ looks wrong with bandwidth data y<1
So I think the error happens at the nagios check when nagios writes down the performance graph to the share/perfdata directory.
Please correct me if I am wrong in my mind.
I configured those checks using the monitoring wizard -> network switch/router.
As default port speed i used 100000000.
But if i change this value nothing happens to the graphs and check results.
Here some information about my system:
Nagios XI Version : 2012R1.6
CentOS release 6.4 (Final) 64Bit
Tell me if you need more information.
I hope anybody has an idea for me.
Thank you very much for your help!