Page 1 of 2
Not able to view performance graph of 1 service
Posted: Mon Oct 26, 2015 8:30 am
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 ?
Re: Not able to view performance graph of 1 service
Posted: Mon Oct 26, 2015 11:29 am
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?
Re: Not able to view performance graph of 1 service
Posted: Tue Oct 27, 2015 5:55 am
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 ?
Re: Not able to view performance graph of 1 service
Posted: Tue Oct 27, 2015 2:35 pm
by lmiltchev
Do you see any errors in the apache error log when you click on the "Performance Graphs" tab?
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>
Re: Not able to view performance graph of 1 service
Posted: Thu Oct 29, 2015 10:12 am
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
Re: Not able to view performance graph of 1 service
Posted: Thu Oct 29, 2015 3:46 pm
by ssax
Please attach your temperature xml file so that we can review it.
Thank you
Re: Not able to view performance graph of 1 service
Posted: Fri Oct 30, 2015 2:58 am
by DennisPR
Here's the XML file
HW1___Temperature.xml
Re: Not able to view performance graph of 1 service
Posted: Fri Oct 30, 2015 3:04 am
by DennisPR
Here's the XML file
HW1___Temperature.xml
Re: Not able to view performance graph of 1 service
Posted: Fri Oct 30, 2015 9:40 am
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
Re: Not able to view performance graph of 1 service
Posted: Mon Nov 23, 2015 7:45 am
by DennisPR
Problem is solved !
Someone added a "cls" command to the batch script we were using for debugging reasons...
