Inverted Service Check

Burnson, Richard rburnson at cps.k12.il.us
Thu Feb 6 23:26:51 CET 2003


Use the negate wrapper:

===================
negate (nagios-plugins 1.3.0-beta2) 1.3
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
======================

HTH,
Richard 
 
    

-----Original Message-----
From: Paul Neilson [mailto:slender at rocketmail.com] 
Sent: Thursday, February 06, 2003 4:09 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Inverted Service Check

How do invert a service check?

I have several NT servers which normally have the FTP service turned off,
but
occassionally a sysadmin will turn FTP on so that he can receive some files
from someone else (usually movies or MP#s of course).  That wouldn't be bad,
except that they usually leave FTP turned on with no security.

How do I do check_ftp where off is the "normal" status   and only raise an
alarm if the service is turned on?

Paul Neilson
Development & Support Manager
GMB Research & Development



__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users


-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com




More information about the Users mailing list