[Nagiosplug-help] return message for plugins

Marc Powell marc at ena.com
Thu Feb 4 00:10:40 CET 2010


On Feb 3, 2010, at 4:08 PM, David Lee wrote:

> (appologized for hitting send in the previous message)
> 
> > No. Was '<some message here>' in the first line of output from your plugin?
> That is part of the output from my plugin.  The output is obtained from doing a "grep ORA" from Oracle's alert log.  If there is a message, prefix it with "Warning - ", follow by the output from grep.  
> 
> To give you an example, if I run the stock check_load command that came with Nagios I get these message.  I'd like my plugin to show extra messages as well.
> 
> ./check_load -w 0 -c 0
> CRITICAL - load average: 0.50, 0.40, 0.26|load1=0.500;0.000;0.000;0; load5=0.400;0.000;0.000;0; load15=0.260;0.000;0.000;0; 

Read the Developer Guidelines below, particularly 2, 2.1, 2.4 and 2.6. Those will detail the expected output your plugin should have to achieve the results above.

> At the barest minimum, your plugin needs to check something, exit with the correct exit code for the state and to output one line of text for display in the GUI. There are other things it might do and this doc represents the standards for a 'good' plugin (including return codes)-- http://nagiosplug.sourceforge.net/developer-guidelines.html

--
Marc





More information about the Help mailing list