ici...@nomir.net [21.02.2017 12:28]:
> Hi all,
> 
> I am trying to configure icinga2 to run some checks only on active 
> member of heartbeat cluster. I have created virtual host representing 
> cluster and two hosts representing cluster members. Services assigned to 
> cluster host monitoring the state of the whole cluster like virtual ip, 
> http response,... These checks are executed on monitoring server – no 
> problem. But some checks must be executed directly on active cluster 
> member with installed icinga agents.
> 
> I tried to determine service command_endpoint by function.
> 
> command_endpoint = {{ ..code to return active node.. }}
> 
> But this is not supported.
> 
> Any idea how to do it? Thanks
> 
> Mirek

When you have an virtual ip, which is always on the active host, you can
bin the commands to that ip address (or hostname, if available).

I have services running on alternate hosts, and if I want to check the
service, I check via its virtual ip, though I switch manually since I
want to avoid the complexity of heartbeat.

HTH, Werner

-- 


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

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

Reply via email to