Custom plugin question
Marc Powell
marc at ena.com
Thu Apr 15 23:30:59 CEST 2004
Andreas Ericsson <mailto:ae at op5.se> wrote:
> Marc Powell wrote:
> > Boulytchev, Vasiliy <mailto:vboulytchev at coinfotech.com> wrote:
> >
> > > Ladies and Gents,
> > >
> > > I have a custom script that does a vital function check. It
> >
> > works
> >
> > > great, and returns one value or the other. Where do I specify and
> > > tie these return values to OK/PAGE state in Nagios (1.2). I
> > > have read the plugin docs, however don't find the answer there.
> >
> >
> > http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN122
> >
> > Exit with the right number and you have it (i.e. exit(1); is OK,
> > exit(2); is CRITICAL)
> >
> Except that exit(1) is WARNING... A return code of 0 means OK.
Right you are. Fingers do not always follow eye... That's why the link
and accompanying docs are so useful ;)
--
Marc
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&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