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

Marcus Schopen lists at localguru.de
Wed Nov 18 18:57:44 CET 2015


Am Mittwoch, den 18.11.2015, 16:15 +0100 schrieb Marcus Schopen:
> 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
> > 
> > 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?

If I copy/move check_load.php to load.php
in /usr/share/pnp4nagios/html/templates.dist the load templated instead
of the default template is used for current load by pnp4nagios. There
must be a mistake in my icinga2/pnp4nagios config which tells pnp4nagios
that the check_command is just load instead of check_load?

Ciao!




More information about the icinga-users mailing list