[Nagiosplug-help] Newbie gets no status information

Colin McKinnon colin.mckinnon at gmail.com
Wed Oct 31 12:17:10 CET 2007


On 31/10/2007, Andreas Ericsson <ae at op5.se> wrote:
> Colin McKinnon wrote:
> > I've written a couple of plugins using PHP. These seem to be reporting
> > the status correctly in Nagios (v. 2.9) but the 'information text' is
> > not showing in the frontend.
<snip>

> Sweet. Then you can skip the first step above that I wanted you to try and
> focus on finding the error-paths that make your plugin crash before it writes
> anything at all to stdout.
>

Found it - the script wrote a file - when testing I was using a
different user from the nagios user - so the file initially got
created with the wrong permissions! (which also explains some other
strangeness I thought was a different bug). It was a non-fatal error,
but wrote an error to stdout (Doh!)

I'll buy you a beer next time we're both in 'The Counting House' in Glasgow!

C.




More information about the Help mailing list