Graphing with pnp4nagios

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
camilo.cipagauta
Posts: 1
Joined: Thu Mar 23, 2017 3:34 pm

Graphing with pnp4nagios

Post 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 1476 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
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Graphing with pnp4nagios

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
bchill
Posts: 1
Joined: Sun Apr 23, 2017 12:17 am

Re: Graphing with pnp4nagios

Post by bchill »

Hi Camilo,

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

Brian
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Graphing with pnp4nagios

Post 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.
Former Nagios employee
Locked