Nagios Graph Issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
brandon.pal
Posts: 129
Joined: Wed Feb 19, 2014 10:18 pm

Nagios Graph Issue

Post by brandon.pal »

I've done what I've done a whole bunch of other times when creating a Nagios graph and :evil:

1) I've created a new check called check_apache
graph_command.jpg
2) Create graph template called check_apache.php
graph_template.jpg
3) Put the default.php code into my check_apache.php ( I do this to make sure it sees the template and then I customize

and ERROR "No performance graphs were found for this service."
graph_nogo.jpg
What am I missing? What have I forgotten? Why does Nagios hate me?

As a note this check has been running for 3 days now so there sufficient information to create a graph. Oh and I'm sure there is perf data being sent.
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Graph Issue

Post by abrist »

Is the check returning perfdata?
Are there any errors in:

Code: Select all

tail -50 /var/log/httpd/error_log
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios Graph Issue

Post by Box293 »

Are the performance data files being generated? There should be two files in:

Code: Select all

/usr/local/nagios/share/perfdata/HOSTNAME/
check_apache.rrd
check_apache.xml
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
brandon.pal
Posts: 129
Joined: Wed Feb 19, 2014 10:18 pm

Re: Nagios Graph Issue

Post by brandon.pal »

Box293 wrote:Are the performance data files being generated? There should be two files in:

Code: Select all

/usr/local/nagios/share/perfdata/HOSTNAME/
check_apache.rrd
check_apache.xml
I've just checked and it seems they are not being generated. Also no errors in /var/log/httpd/error_log.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios Graph Issue

Post by Box293 »

Can you send us a screenshot of the Service Status Detail when on the Advanced tab.

What we are looking for is the Performance Data: line.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
brandon.pal
Posts: 129
Joined: Wed Feb 19, 2014 10:18 pm

Re: Nagios Graph Issue

Post by brandon.pal »

As requested.
graph_perfData.jpg
You do not have the required permissions to view the files attached to this post.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios Graph Issue

Post by tmcdonald »

Does that look like the proper perfdata being returned? It's hard to tell without seeing both the plugin and the NRPE command for check_apache, so can you supply those?

As for the files not being created, what are the permissions on the /usr/local/nagios/share/perfdata/HOSTNAME/ directory?

Code: Select all

ls -l /usr/local/nagios/share/perfdata/HOSTNAME/
Former Nagios employee
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios Graph Issue

Post by Box293 »

brandon.pal wrote:As requested.
graph_perfData.jpg
This performance data is not valid as it does not conform to the standard. So it will be ignored when being processed.

From the plugin guidelines:

Code: Select all

However, it is the responsibility of the plugin writer to ensure the performance data is in a "Nagios Plugins" format. This is the expected format:

'label'=value[UOM];[warn];[crit];[min];[max]
So this check called check_apache defined in your nrpe config needs to be fixed so it conforms to the standard.

I also find that the pnp4nagios documentation explains it nicely.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked