[icinga-users] icinga2 and pnp4nagios uses default template for all graphs

Markus Joosten markus.joosten at plumbe.de
Thu Nov 19 11:01:52 CET 2015

For whatever reason, my pnp installation (0.6.16-2 installed from Ubuntu's default repo) uses /usr/share/pnp4nagios/html/templates directory for the templates.
config.php default setting says otherwise (/etc/pnp4nagios), i guess the folder /usr/share/pnp4nagios/html/templates is somewhat hardcoded into pnp.

My guess is that you also need to make sure that the template filename matches the check command being used.


-----Original message-----
From: Markus Joosten<markus.joosten at plumbe.de>
Sent: Wednesday 18th November 2015 22:48
To: Icinga User's Corner <icinga-users at lists.icinga.org>
Subject: Re: [icinga-users] icinga2 and pnp4nagios uses default template for all graphs

This is definitely more a pnp question than a icinga-related one.

I'm also using Ubuntu 14.04 + Icinga2 + pnp, and my installation correctly chooses the pnp template matching the check command.

If i remember correctly, the pnp templates have to be placed in the proper directory, which is mentioned in the manpages.

I'll have a look tomorrow.



Sent from my iPhone

On 18 Nov 2015, at 16:15, Marcus Schopen <lists at localguru.de <mailto:lists at localguru.de>> wrote:

Am Mittwoch, den 18.11.2015, 15:57 +0100 schrieb Marcus Schopen:

> Hi,


> just set up icinga2 and pnp4nagios on a Ubuntu 14.04 LTS box using this

> howto:


> https://www.thomas-krenn.com/de/wiki/Icinga_2_Graphen_mit_PNP_unter_Ubuntu_14.04_Trusty <https://www.thomas-krenn.com/de/wiki/Icinga_2_Graphen_mit_PNP_unter_Ubuntu_14.04_Trusty>


> pnp4nagios uses the default template for all graphs instead of the e.g.

> load template for current load. All templates directorys

> under /etc/pnp4nagios are empty. Where do I get those templates?

Found the templates in /usr/share/pnp4nagios/html/templates.dist. But

those are not used even though defined in /etc/pnp4nagios/config.php

grep template_dir /etc/pnp4nagios/config.php

$conf['template_dirs'][] = '/etc/pnp4nagios/templates';

$conf['template_dirs'][] = "$dirname";

$conf['template_dirs'][] = '/usr/share/pnp4nagios/html/templates.dist';

$conf['special_template_dir'] = '/etc/pnp4nagios/templates.special';

Any ideas?



icinga-users mailing list

icinga-users at lists.icinga.org <mailto:icinga-users at lists.icinga.org>

https://lists.icinga.org/mailman/listinfo/icinga-users <https://lists.icinga.org/mailman/listinfo/icinga-users>


icinga-users mailing list

icinga-users at lists.icinga.org


More information about the icinga-users mailing list