On 11.02.2014 15:04, Osman Yozgatlıoğlu wrote:
Hello,

Maybe it's very simple question, but I can't find myself.

Icinga sets a host up if just can ping to it.
But, lets say ssh service is blocked somehow and actually down state.
How can I set check_ping as service and set host status up if both check_ssh and check_ping ok.

If you prefer not to have duplicated checks, you may define 2 service checks, and use check_cluster with on-demand service state macros to calculate the host state based on the current service check.

http://docs.icinga.org/latest/en/clusters.html#hostclusters

If you want your host check to be fired directly not reflecing the previous check result (depends on the service check interval above), then you might have a look at check_multi combining multiple checks with a basic rule language into a single result with one state (the host's state then).

I'm using the second method in various setups for checking dualstack IPv4 and IPv6 hosts based on their ping4 and ping6 availability. For simplicity I'm using check_multi but check_cluster without any additional checks will scale better in larger setups (Icinga 1.x that is, Icinga 2 doesn't care much).

https://wiki.icinga.org/display/howtos/Dualstack+%28IPv4%2C+IPv6%29+monitoring+with+Icinga

kind regards,
Michael


--
DI (FH) Michael Friedrich

michael.friedr...@gmail.com  || icinga open source monitoring
https://twitter.com/dnsmichi || lead core developer
dnsmi...@jabber.ccc.de       || https://www.icinga.org/team
irc.freenode.net/icinga      || dnsmichi

_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to