Page 1 of 1

pnp4graph issue

Posted: Thu Aug 07, 2014 7:36 am
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

Re: pnp4graph issue

Posted: Thu Aug 07, 2014 10:48 am
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?