Monitoring the master servers in a multi master environment

Hi toghether,

I have a 2 master setup using one master zone.

If I create a check like local disc check it gets load balanced between the nodes. How do I tell that one command should always be executed on only one endpoint?

Thank you!

you can specify the *command_endpoint == “master1” in the service definition .
you can see it here
https://icinga.com/docs/icinga2/latest/doc/06-distributed-monitoring/#pin-checks-in-a-zone
but instead of Zone, you can pin it to a node.