[Nagiosplug-devel] PHP as script language for plugins

Thomas Guyot-Sionnest Thomas at zango.com
Mon Jul 30 19:56:08 CEST 2007

> -----Original Message-----
> From: nagiosplug-devel-bounces at lists.sourceforge.net [mailto:nagiosplug-
> devel-bounces at lists.sourceforge.net] On Behalf Of Paa.listas
> Sent: July 28, 2007 11:27
> To: nagiosplug-devel at lists.sourceforge.net
> Subject: [Nagiosplug-devel] PHP as script language for plugins
> Hello,
>   I am new to Nagios and more new to writing plugins for it. I am train to
> code one in PHP, but I always receive this answere in the Nagios front-
> end:
> Status Information: 		(No output returned from plugin)

I've been using PHP plugins without any problems... When you run it do you
see any blank line before the output? I'm not a php programmer but I guess
the blank line before "<?php" would normally be printed... That would fool
Nagios as it only captures the first line of output.

If that's not the issue try running your plugin as the Nagios user to see if
there's anything wrong.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3076 bytes
Desc: not available
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20070730/163033c4/attachment.bin>

More information about the Devel mailing list