pnp4graph issue

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
kalyan1709
Posts: 43
Joined: Tue Oct 16, 2012 12:45 am

pnp4graph issue

Post by kalyan1709 »

Hi Guys,

I have added a Nagios monitoring for a website's server-status using below URL:

http://exchange.nagios.org/directory/Pl ... sh/details

define command{
command_name check_apachestatus
command_line $USER1$/check_apache2.sh -H $HOSTADDRESS$ -t 90 -b /usr/sbin -p /var/run/httpd.pid -wr 100 -cr 250
}


The service is showing OK and able to get performance data as shown below:

Current Status: OK (for 0d 2h 30m 13s)
Status Information: OK - Apache serves 1 Requests per second with an average CPU utilization of 1.2%. Busy workers: 2, idle: 10
Performance Data: 'cpu_load'=1.2 'req_psec'=1 'bytes_psec'=61468.3 'bytes_preq'=13913.8 'workers_busy'=2 'workers_idle'=10

The problem is- When check the graph it is showing below runtime error:

PNP4Nagios Version 0.6.21
Please check the documentation for information about the following error.

Undefined offset: 7

file [line]:

templates.dist/check_apachestatus.php [41]:

Please suggest me a solution. Thanks in advance.

Thanks
Kalyan
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: pnp4graph issue

Post by abrist »

Looks like there is an issue with the apachestatus template? Is this a custom template that you wrote, or one you downloaded?
Could you post the template in question?
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.
Locked