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

Sebastian Harl tokkee at debian.org
Wed Aug 1 11:50:27 UTC 2012


tags 683138 + moreinfo
thanks

Hi,

On Sun, Jul 29, 2012 at 04:48:16AM +0200, Christoph Anton Mitterer wrote:
> 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?!

I cannot reproduce this behavior. Which version of PHP do you use? What
architecture are you on? I've tested on amd64 Sid … any other ideas how
your system might be different from mine?

Cheers,
Sebastian

-- 
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-nagios-devel/attachments/20120801/7f3ee3c7/attachment.pgp>


More information about the Pkg-nagios-devel mailing list