check for the absence of a service

Marc Powell marc at ena.com
Thu Jul 9 17:38:59 CEST 2009


On Jul 9, 2009, at 10:08 AM, Kyle Dippery wrote:

> Is there a plugin for this, or a way to trick an existing plugin to
> make it work?  I suppose if nothing else I can write a wrapper for
> check_smtp or check_tcp to swap the OK and CRITICAL return values,
> but it'd be much easier if someone else has already done it...

[libexec]$ ./negate --help
negate v1859 (nagios-plugins 1.4.11)
Copyright (c) 2002-2007 Nagios Plugin Development Team
	<nagiosplug-devel at lists.sourceforge.net>

Negates the status of a plugin (returns OK for CRITICAL and vice-versa).
Additional switches can be used to control which state becomes what.

...

Notes:
This plugin is a wrapper to take the output of another plugin and  
invert it.
The full path of the plugin must be provided.
If the wrapped plugin returns OK, the wrapper will return CRITICAL.
If the wrapped plugin returns CRITICAL, the wrapper will return OK.
Otherwise, the output state of the wrapped plugin is unchanged.


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
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