You can change your default host check to use something other than ping for a box by specifying the check_command line for that host.
So instead of something like:
# Generic host definition template - This is NOT a real host, just a
template!
define host{
name generic-host ; The name of
this host template
*check_command check_icmp!200,100%!500,80%*
register 0
<stuff> <more stuff>
}
Do something like
# host definition template that uses defaults but checks with check_ssh
instead of check_icmp
define host{
name ssh-host-check
use generic-host /< Inherits
everything else from generic-host template/
*check_command check_ssh*
register 0
}
And then in the hosts you want to check via SSH instead of ping
define host{
host_name server1.company.com
use ssh-host-check
alias server1 - web server for stuffs
address 8.8.4.4
}
*Jeremy Page* | Senior Technical Architect | *Gilbarco Veeder-Root, A
Danaher Company*
*Office:*336-547-5399 | *Cell:*336-601-7274 | *24x7 Emergency:*336-430-8151
------------------------------------------------------------------------
On 02/11/2014 09:04 AM, Osman Yozgatl?og(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.
>
> Regards,
> Osman
>
>
> _______________________________________________
> icinga-users mailing list
> [email protected]
> https://lists.icinga.org/mailman/listinfo/icinga-users
Please be advised that this email may contain confidential
information. If you are not the intended recipient, please notify us
by email by replying to the sender and delete this message. The
sender disclaims that the content of this email constitutes an offer
to enter into, or the acceptance of, any agreement; provided that the
foregoing does not invalidate the binding effect of any digital or
other electronic reproduction of a manual signature that is included
in any attachment.
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ icinga-users mailing list [email protected] https://lists.icinga.org/mailman/listinfo/icinga-users
