Not able to view performance graph of 1 service

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
DennisPR
Posts: 149
Joined: Mon May 07, 2012 10:34 am

Not able to view performance graph of 1 service

Post by DennisPR »

Hi,

We are having issues showing performance graphs of 1 certain service.
When I click on the performance graph icon I get the following
Temp issue.PNG
The test works as followed :

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H W.X.Y.Z -t 30 -c check_temperature -a 78 80
and returns

Code: Select all

Max Cpu Temperature: 45       Measured CPU Temperatures: 0:45, 1:45    (* = ignored)|'maxtemp'=45;78;80
I can see the performance data when I look at the advanced tab of the test but I can't look at the graphs
Temp issue 2.PNG
Can someone help me out pls ?
You do not have the required permissions to view the files attached to this post.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Not able to view performance graph of 1 service

Post by jdalrymple »

I wonder if somehow you ended up with a corrupted RRD. If it's even attempting then we know that the perfdata is OK.

Can you please try to delete the service in its entirety and recreate?
DennisPR
Posts: 149
Joined: Mon May 07, 2012 10:34 am

Re: Not able to view performance graph of 1 service

Post by DennisPR »

This service is activated on 703 hosts and I can's see the graphs anymore on all hosts
Only for this specific service.
I don't wan't to delete all RRD files and loose all the existing data
Can I check anything else pls ?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Not able to view performance graph of 1 service

Post by lmiltchev »

Do you see any errors in the apache error log when you click on the "Performance Graphs" tab?

Code: Select all

tail -50 /var/log/httpd/error.log
Are you currently using highcharts or the "old" style graphs? Check if the "Use Highcharts for Perfdata Graphs" check-box is selected under the "System Settings". Does it make any difference if you switch from one to the other?

What are the permissions of the RRD, XML and the folder?

Code: Select all

ll -d /usr/local/nagios/share/perfdata/<hostname>
ll /usr/local/nagios/share/perfdata/<hostname>
Be sure to check out our Knowledgebase for helpful articles and solutions!
DennisPR
Posts: 149
Joined: Mon May 07, 2012 10:34 am

Re: Not able to view performance graph of 1 service

Post by DennisPR »

I do see errors in the apache error log. Every time I try to access the graph for this service on any host I get the following error

Code: Select all

[Thu Oct 29 16:03:08 2015] [error] [client 10.70.0.101] PHP Fatal error:  Call to a member function xpath() on a non-object in /usr/local/nagiosxi/html/includes/components/graphexplorer/visFunctions.inc.php on line 154, referer: http://ap-dco67-mon.bel.centric.lan/nagiosxi/includes/components/xicore/status.php?show=services&hoststatustypes=2&servicestatustypes=28&serviceattr=10
Here are the rights on the folder and files :
Temp issue 3.PNG
All other graphs for this host still work
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Not able to view performance graph of 1 service

Post by ssax »

Please attach your temperature xml file so that we can review it.

Thank you
DennisPR
Posts: 149
Joined: Mon May 07, 2012 10:34 am

Re: Not able to view performance graph of 1 service

Post by DennisPR »

Here's the XML file
HW1___Temperature.xml
You do not have the required permissions to view the files attached to this post.
DennisPR
Posts: 149
Joined: Mon May 07, 2012 10:34 am

Re: Not able to view performance graph of 1 service

Post by DennisPR »

Here's the XML file
HW1___Temperature.xml
You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Not able to view performance graph of 1 service

Post by ssax »

There is actually an unprintable character in your XML file that is causing it to break. You can see the blue ^L if you edit it with vi. The service output is the problem, the plugin is returning that information, please send me the plugin and I will update it for you so it strips those out.
unprint_perf.png
Thank you
You do not have the required permissions to view the files attached to this post.
DennisPR
Posts: 149
Joined: Mon May 07, 2012 10:34 am

Re: Not able to view performance graph of 1 service

Post by DennisPR »

Problem is solved !
Someone added a "cls" command to the batch script we were using for debugging reasons... :oops:
Locked