[Nagiosplug-devel] Writing a plugin?

debby_ar at yahoo.com debby_ar at yahoo.com
Thu Feb 12 09:22:38 CET 2004


I believe that Nagios is looking for the exit code
from your plugin, and does not examine the text at
all.  The exit code should be:
0=OK
1=WARNING
2=CRITICAL
3=UNKNOWN

--- Darrell Mozingo <dmozingo at topechelon.com> wrote:
> I'm using NRPE_NT and I wrote a plug-in in for it C#
> to monitor an
> NT4/2000 eventlog but I'm a bit confused as to how
> Nagios picks up on
> the status of the check. I return either "OK",
> "CRITICAL", or "WARNING"
> and then the eventlog message as the return. Running
> the check from the
> Nagios console goes as expected, and it's set to an
> OK status in Nagios
> when it checks it, but when an error pops up in the
> eventlog Nagios will
> keep it as OK and put the error in the returns
> column as opposed to
> changing it to a CRITICAL/WARNING state.
> 
> What do I have to return for nagios to see it as a
> warning/critical
> state? I thought it would just pick that out of the
> beginning of the
> string, but I guess not. 
> 
> Thanks for any help you could provide...
> 


__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html




More information about the Devel mailing list