[nagios users] critical=ok

Marc Powell marc at ena.com
Wed Oct 19 17:57:05 CEST 2005



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of Anxo
> Sent: Wednesday, October 19, 2005 10:19 AM
> To: nagios usuarios
> Subject: [Nagios-users] [nagios users] critical=ok
> 
> hi all,
> i´ve got two servers one of them have the DNS service
> enable and the other server is a backup of the first
> and it have Dns service desable. Well, i´m monitoring
> with nagios this service in both servers and i receibe
> as result for the first ok and for the second
> critical, anybody know how can i invert this result in
> the second server. I can put Dns service as two
> diferent service for example, but how can i invert the
> result on the second server and put the result
> critical as ok.

Use the negate plugin.

Inverted check status for check_dns example --

# 'check_dns_negate' command definition
define command{
        command_name    check_dns_negate
        command_line    $USER1$/negate "$USER1$/check_dns $ARG1$ $HOSTADDRESS$
        }

--
Marc


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
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