Page if service is up

Steve Risteter stever at corp.ptd.net
Mon Dec 15 17:18:03 CET 2003


./negate --help
negate (nagios-plugins 1.3.1) 1.5.2.2
The nagios plugins come with ABSOLUTELY NO WARRANTY. You may
redistribute
copies of the plugins under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
Copyright (c) 2002 Karl DeBisschop <kdebisschop at users.sourceforge.net>

Negates the status of a plugin (returns OK for CRITICAL, and
vice-versa).

Usage:
 negate [-t timeout] <definition of wrapped plugin>
 negate (-h | --help) for detailed help
 negate (-V | --version) for version information

Options:
  -t, --timeout=INTEGER
    Terminate test if timeout limit is exceeded (default: 9)
     [keep this less than the plugin timeout to retain CRITICAL status]

This plugin is a wrapper to take the output of another plugin and invert
it.
If the wrapped plugin returns STATE_OK, the wrapper will return
STATE_CRITICAL.
If the wrapped plugin returns STATE_CRITICAL, the wrapper will return
STATE_OK.
Otherwise, the output state of the wrapped plugin is unchanged.

Send email to nagios-users at lists.sourceforge.net if you have questions
regarding use of this software. To submit patches or suggest
improvements,
send email to nagiosplug-devel at lists.sourceforge.net

-----Original Message-----
From: Carl Schelin [mailto:cschelin at hq.nasa.gov] 
Sent: Monday, December 15, 2003 9:12 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Page if service is up


Hello,

   I'd like to monitor a service on the servers and page the admins if
the service becomes available.

   In this case, the service is the netscape admin server. It shouldn't
be running all the time so I'd like to page out when it's started. It
could also be sendmail or nfs for the servers that don't perform the
service but have the service activated after patching.

   I'm basically checking here to see if there's a command I missed
before creating a wrapper which will swap the exit codes (0 for 1 and 1
for 0).

   Thanks.

Carl



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
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


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
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