Page 1 of 1

Graphing with pnp4nagios

Posted: Thu Mar 23, 2017 4:04 pm
by camilo.cipagauta
Right now im working with Nagios Core and pnp4Nagios; i Need to graph full stats of check_http command.

I have a host configured when i monitor a customer web site.
One of the services that i configured is HTTP using check_http command.

Code: Select all

define service{
        use                             local-service,srv-pnp          ; Name of service template to use
        host_name                       IntranetBlu
        service_description             HTTP - Fuera
        check_command                   check_http!intranetblu.com
And in commands.cfg HTTP command i cconfigured it with -E option in order to have full stats

Code: Select all

define command{
        command_name    check_http
        command_line    $USER1$/check_http -I $HOSTADDRESS$ $ARG1$ -E
        }
Succefully its taking in performance Data but pnp4nagios its only grafing two first stats. I need pnp4Nagios to graph full stats
Captura.PNG
Captura.PNG (8.25 KiB) Viewed 1477 times
What i have to configure so pnp4Nagios ghaph full stats?? (time_connect=0.000000s;;; time_headers=0.000009s;;; time_firstbyte=0.001027s;;; time_transfer=0.001103s;;;)

Thanks

Re: Graphing with pnp4nagios

Posted: Thu Mar 23, 2017 4:49 pm
by tgriep
You probably have to edit the PNP4Nagios template for the check_http command.
On a typical install, the file is located here.

Code: Select all

/usr/local/pnp4nagios/share/templates.dist/check_http.php
You may want to look at this template from the pnp4nagios web site.
https://docs.pnp4nagios.org/templates/check_http

Re: Graphing with pnp4nagios

Posted: Wed Jan 10, 2018 3:53 am
by bchill
Hi Camilo,

Did you ever put together a template or find a template to handle the check_http perf stats?

Brian

Re: Graphing with pnp4nagios

Posted: Wed Jan 10, 2018 10:15 am
by tmcdonald
We'll leave this open for comment, but the original poster has not been online since first posting, so it is doubtful they will return any time soon.