Reverse checks possible?

Rogelio Bastardo scubacuda at gmail.com
Fri Jul 20 02:55:55 CEST 2007


> >>> Sure. See the "negate" plugin.

Alright, I finally figured it out.

Here, for what it is worth, is a reverse check for SMTP

define command{
        command_name    check_reverse_smtp
        command_line    $USER1$/negate
"/usr/lib/nagios/plugins/check_smtp -H $HOSTADDRESS$"
        }

define service{
        use                             local-service
        host_name                  mail.yourDomain.com
        service_description      SMTP_reverse_check
        check_command         check_reverse_smtp
        }

Of course, it goes without saying, but your mileage may vary according
to how your cfg files are laid out.

Thanks, Israel, Demetri, and Patrick. I really appreciate your help!

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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