Page 1 of 1

Problem with bandwidth graphs

Posted: Thu Mar 28, 2013 8:15 am
by Heiko
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:

Code: Select all

OK - Current BW in: 0Mbps Out: 0Mbps 
Performance Data:	in=.000040Mb/s;90;100 out=.000016Mb/s;90;100 
It should be 40 Mb/s...

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
 
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:

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
At the /usr/local/nagios/share/perfdata/cisco-router/Port3_Bandwidth.rrd
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
I already tried something like this: (only for debug purpose)

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 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!

Re: Problem with bandwidth graphs

Posted: Thu Mar 28, 2013 12:35 pm
by scottwilkerson
This is likely caused from language setting not being set correctly, can you run

Code: Select all

cat /etc/sysconfig/i18n

Re: Problem with bandwidth graphs

Posted: Thu Mar 28, 2013 1:28 pm
by Heiko
Thank you very much for the fast reply.

Here are my language settings:

Code: Select all

[root@test-nagiosxi ~]# cat /etc/sysconfig/i18n 
LANG="de_DE.UTF-8"
SYSFONT="latarcyrheb-sun16"
Do I have to change those settings to get the graphs working?
Maybe to "en_US.UTF-8"?

Re: Problem with bandwidth graphs

Posted: Thu Mar 28, 2013 3:23 pm
by scottwilkerson
Heiko wrote:Thank you very much for the fast reply.

Here are my language settings:

Code: Select all

[root@test-nagiosxi ~]# cat /etc/sysconfig/i18n 
LANG="de_DE.UTF-8"
SYSFONT="latarcyrheb-sun16"
Do I have to change those settings to get the graphs working?
Maybe to "en_US.UTF-8"?
Yep..

Code: Select all

LANG="en_US.UTF-8"
You may also, need a reboot for the changes to take affect

Re: Problem with bandwidth graphs

Posted: Thu Mar 28, 2013 3:43 pm
by Heiko
great!! It works!
Thank you very very much!

... of course the language settings... :-)

I think that would be important information at the Nagios XI – Manual Installation Instructions.

Re: Problem with bandwidth graphs

Posted: Thu Mar 28, 2013 4:19 pm
by slansing
This is something in the future that will be set upon the first time you open the XI web interface after an installation. Agreed it is an important part!