Page 1 of 2

NagiosXI R2.2 graphs broken

Posted: Tue Mar 06, 2012 3:29 am
by SDohmen
Today i upgraded to the new R2.2 version and now the graphs dont work anymore. Is this a known bug or has something changed?

I see in the version notes that this is supposed to be a fix but it seemed to have broken the graphs.

I was running 2.0 earlier today when i first upgraded to 2.1 and then to 2.2.

Re: NagiosXI R2.2 graphs broken

Posted: Tue Mar 06, 2012 10:05 am
by mguthrie
Do the graphs update when you select a timeperiod from the standard list of views (like 4hour, last 24 hours...)?

Re: NagiosXI R2.2 graphs broken

Posted: Tue Mar 06, 2012 1:27 pm
by SDohmen
It doesn't change. each timeframe just shows a empty spot. The logs dont show anything that could be wrong and from what i can see all systems work fine.
Knipsel.PNG

Re: NagiosXI R2.2 graphs broken

Posted: Tue Mar 06, 2012 1:31 pm
by SDohmen
I just noticed something strange. When i checked the system status i noticed that there where no monitoring status views.
Knipsel1.PNG

And something else that might be related to the above. For some reason all possible actions that i do take extreme amounts of time. With these i mean the applying of the configuration but also the restarting of the performance graphs etc. This makes it really strange.

Before i forget its a Centos 6 64bit installation.

Re: NagiosXI R2.2 graphs broken

Posted: Tue Mar 06, 2012 1:59 pm
by mguthrie
Can you send me a screenshot of the Admin->XI System Component Status dashlet?

Do you have any telling apache errors in /var/log/httpd/error_log?

Re: NagiosXI R2.2 graphs broken

Posted: Tue Mar 06, 2012 2:01 pm
by SDohmen
Here is the screenshot. There arent any errors in the error logs.
Knipsel2.PNG

Re: NagiosXI R2.2 graphs broken

Posted: Tue Mar 06, 2012 5:47 pm
by lmiltchev
Any permissions issues?

Code: Select all

ll /usr/local/nagios/var/spool/
ll /usr/local/nagios/libexec/
ll /usr/local/nagios/share/perfdata/

Re: NagiosXI R2.2 graphs broken

Posted: Tue Mar 06, 2012 5:51 pm
by mguthrie
Also, can you access the following URL on your machine and see if it produces a graph:

[url]http://<yourserver>/nagiosxi/includes/components/perfdata/graphApi.php?host=localhost[/url]

If it gives an error then there will be something in the apache log pointing to that script.

Re: NagiosXI R2.2 graphs broken

Posted: Wed Mar 07, 2012 2:26 am
by SDohmen
When i try the above i see:



The apache log shows the following:

Code: Select all

which: no gnome-session in (/sbin:/usr/sbin:/bin:/usr/bin)
which: no gnome-session in (/sbin:/usr/sbin:/bin:/usr/bin)
[Wed Mar 07 08:22:09 2012] [error] [client *] File does not exist: /var/www/html/favicon.ico
[Wed Mar 07 08:22:09 2012] [error] [client *] File does not exist: /var/www/html/favicon.ico
[Wed Mar 07 08:22:09 2012] [error] [client *] File does not exist: /var/www/html/favicon.ico
The strange thing is that the graphs worked fine with the 2.0 version.

Is there perhaps a way to revert back to the 2.0 version without loosing the performance data? I got backups from 2.0 and before.

I have been searching all the logs that i could find and i found the following:

/usr/local/nagios/var/graphapi.log

Code: Select all

GRAPH ERROR: 2012-02-16T20:38:44+01:00
/usr/bin/rrdtool graph -  --width=500 --height=100  --start=-24h --vertical-label "Packets lost" -l0 -u105 --title "Packets lost for central / avail-ping"  DEF:var1=/usr/local/nagios/share/perfdata/central/avail-ping.rrd:2:AVERAGE CDEF:sp1=var1,100,/,12,* CDEF:sp2=var1,100,/,30,* CDEF:sp3=var1,100,/,50,* CDEF:sp4=var1,100,/,70,* AREA:var1#FF5C00:"Packets lost " AREA:sp4#FF7C00: AREA:sp3#FF9C00: AREA:sp2#FFBC00: AREA:sp1#FFDC00: GPRINT:var1:LAST:"%6.2lg %% last " GPRINT:var1:MAX:"%6.2lg %% max " GPRINT:var1:AVERAGE:"%6.2lg %% avg \n" LINE1:var1#000000: HRULE:100#000000:"" HRULE:20#FFFF00:"Warning 20%% " HRULE:60#FF0000:"Critical 60%% "

GRAPH ERROR: 2012-02-16T20:39:44+01:00
/usr/bin/rrdtool graph -  --width=500 --height=100  --start=-24h --vertical-label "Packets lost" -l0 -u105 --title "Packets lost for central / avail-ping"  DEF:var1=/usr/local/nagios/share/perfdata/central/avail-ping.rrd:2:AVERAGE CDEF:sp1=var1,100,/,12,* CDEF:sp2=var1,100,/,30,* CDEF:sp3=var1,100,/,50,* CDEF:sp4=var1,100,/,70,* AREA:var1#FF5C00:"Packets lost " AREA:sp4#FF7C00: AREA:sp3#FF9C00: AREA:sp2#FFBC00: AREA:sp1#FFDC00: GPRINT:var1:LAST:"%6.2lg %% last " GPRINT:var1:MAX:"%6.2lg %% max " GPRINT:var1:AVERAGE:"%6.2lg %% avg \n" LINE1:var1#000000: HRULE:100#000000:"" HRULE:20#FFFF00:"Warning 20%% " HRULE:60#FF0000:"Critical 60%% "

GRAPH ERROR: 2012-02-16T20:39:44+01:00
/usr/bin/rrdtool graph -  --width=500 --height=100  --start=-24h --vertical-label "RTA"  --title "Ping times for central / avail-ping"  DEF:var1=/usr/local/nagios/share/perfdata/central/avail-ping.rrd:1:AVERAGE CDEF:sp1=var1,100,/,12,* CDEF:sp2=var1,100,/,30,* CDEF:sp3=var1,100,/,50,* CDEF:sp4=var1,100,/,70,* AREA:var1#FF5C00:"Round Trip Times " AREA:sp4#FF7C00: AREA:sp3#FF9C00: AREA:sp2#FFBC00: AREA:sp1#FFDC00: GPRINT:var1:LAST:"%6.2lf ms last " GPRINT:var1:MAX:"%6.2lf ms max " GPRINT:var1:AVERAGE:"%6.2lf ms avg \n" LINE1:var1#000000:"" HRULE:250.000000#000000:"Warning 250.000000%% " HRULE:1000.000000#FF0000:"Critical 1000.000000%% "


Re: NagiosXI R2.2 graphs broken

Posted: Wed Mar 07, 2012 4:17 am
by SDohmen
I solved the above by reverting back to the older install. While going back i lost all graphs for some reason.

Is there a way to get the graphs back with the data thats already in the database? Since for some reason they are completely empty till the time of the restore.