Monitor the same service on two servers

Hello All,

I have two servers called Node 1 and Node2, there is a service that is monitored on both but only on one of the nodes (usually the primary node) the service has status “OK” and on the secondary node it has critical status because it is not being executed over there; Only if I change the node service can we see the “OK” service on the secondary node.
How can I configure them so that on the node that is not running the alert is not in critical state and only reports if the service is not running on both nodes?

NODE1
imagen

NODE2
imagen

Thanks in advance.
Regards.
Victor

Option1:

You can add a cluster host with node 1 and node 2 as nodes and then add the service to the cluster host as a “clustered service”:

Unfortunately, checkmk is not so good at handling clustered services.

Option2:
You can create a BI for the service in question and only alert the BI and mute the service on the node:

2 Likes