[Pkg-nagios-devel] Bug#683138: pnp4nagios-web: crashes immediately due to debian/patches/adjust-template-path

Christoph Anton Mitterer calestyo at scientia.net
Sun Jul 29 02:48:16 UTC 2012

Package: pnp4nagios-web
Version: 0.6.16-1
Severity: grave
Justification: renders package unusable


The support for /etc/pnp4nagios/templates.d seems to be buggy:
When /etc/pnp4nagios/templates.d is empty (in the sense of no subdirs),
all I get from pnp4nagios is:
>Please check the documentation for information about the following error.
>Invalid argument supplied for foreach()
>file [line]:
>/etc/pnp4nagios/config.php [234]:

Guess the reason is that the glob("/etc/pnp4nagios/templates.d/*", GLOB_ONLYDIR)
returns nothing and then one has a syntax error?!

Adding a empty dir or removing the foreach in conf.php solves the issue.


More information about the Pkg-nagios-devel mailing list