nrpep plug in - how to return results

Jason Martin jhmartin at toger.us
Wed Feb 23 03:17:20 CET 2005


On Tue, Feb 22, 2005 at 06:03:46PM -0800, Ranga Nathan wrote:
> I have an nrpep command that returns the string "Items (55)" for example. 
> Nagios interprets it as "RC: 0  ". I have not been able to figure out the 
> format of the response.
Nagios doesn't attempt to parse your output at all. Instead it
looks for the return code of the plugin. So, the last line if
your script should be something like "exit 2" for a CRITICAL
alert, or "exit 1" for a warning, or "exit 0" for an OK.

-Jason Martin
-- 
Did you know that 7/5 people don't know how to use fractions?
This message is PGP/MIME signed.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 211 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050222/e9c92293/attachment.sig>


More information about the Users mailing list