plugin question

nagios at mm.quex.org nagios at mm.quex.org
Thu Sep 9 04:09:23 CEST 2004


On Wed, Sep 08, 2004 at 06:00:52PM -0700, joel wrote:

> I am aware with the readings here that you are able to write custom
> plugins for this application.  There is ways then to say use your own
> custom shell script lets say to pass a sting to a web server and check
> to see how long it takes to give you a response and base your alerts
> on that criteria?

Check the documentation on plugins - it's pretty straightforward.
Basically, your script or program should produce one line of output
on its stdout (which is what Nagios will show in the web interface
and so forth), and return a particular exit code, which is how
Nagios decides what the status of the host or service being checked is.

The exit codes are:

 0 - okay
 1 - warning
 2 - critical
 anything else - status is unknown.

For your particular example, you might want to look at the options
for the standard check_http plugin - it can probably do what you want.



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list