Service failover dependency
Assaf Flatto
nagios at flatto.net
Thu Apr 7 11:26:18 CEST 2011
Andrey Mitroshin wrote:
> Hello,
> I'm about to implement simple failover scenario with nagios. It consists of
> host A, host B and nagios host. When host A is down nagios executes
> event handler which performs dynamic dns update on some hostname to
> point it to host B. But when host B is down, nagios should not execute
> event handler as there is nothing to switch to. How can I configure
> nagios not to execute event hanlder when some service check or host
> check has failed?
> Thanks in advance.
> --
> mit.
>
>
When you configure the service , you define event handlers , you can
create a service definition for each host and service , so you can
exclude any host or service from running the event handler .
example :
define service {
hostgroups WEB
host_name !web1 , !web2
...
eventhandler change_dns
}
this will cause the service and event handler to work on all hosts in
the WEB hostgroup excluding the web1 and web2 servers.
hope this helps .
Assaf
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
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