NagiosXI R2.2 graphs broken

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
SDohmen
Posts: 240
Joined: Thu Jun 30, 2011 4:14 am

NagiosXI R2.2 graphs broken

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: NagiosXI R2.2 graphs broken

Post by mguthrie »

Do the graphs update when you select a timeperiod from the standard list of views (like 4hour, last 24 hours...)?
SDohmen
Posts: 240
Joined: Thu Jun 30, 2011 4:14 am

Re: NagiosXI R2.2 graphs broken

Post 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
You do not have the required permissions to view the files attached to this post.
SDohmen
Posts: 240
Joined: Thu Jun 30, 2011 4:14 am

Re: NagiosXI R2.2 graphs broken

Post 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.
You do not have the required permissions to view the files attached to this post.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: NagiosXI R2.2 graphs broken

Post 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?
SDohmen
Posts: 240
Joined: Thu Jun 30, 2011 4:14 am

Re: NagiosXI R2.2 graphs broken

Post by SDohmen »

Here is the screenshot. There arent any errors in the error logs.
Knipsel2.PNG
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NagiosXI R2.2 graphs broken

Post 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/
Be sure to check out our Knowledgebase for helpful articles and solutions!
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: NagiosXI R2.2 graphs broken

Post 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.
SDohmen
Posts: 240
Joined: Thu Jun 30, 2011 4:14 am

Re: NagiosXI R2.2 graphs broken

Post 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%% "

Last edited by SDohmen on Mon Mar 12, 2012 2:01 am, edited 1 time in total.
SDohmen
Posts: 240
Joined: Thu Jun 30, 2011 4:14 am

Re: NagiosXI R2.2 graphs broken

Post 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.