first off all my setup
2 VM running Fedora 19 in a pacemaker/corosync failover cluster, they have 1 cluster IP
1 VM running Fedora 19 monitoring both VM's with nagios
Right now nagios is running on both nodes all the time but I want that nagios is only running on
the currently active node. Can someone help me with that?
Current DC: pcmk-2(3232249960) - partition with quorum
Version: 1.1.9-3.fc19-781a388
2 Nodes configured, unknown expected votes
1 Resources configured.
Online: [pcmk-1 pcmk-2]
CLUSTERIP (ofc::heartbeat:IPaddr2): Started pcmk-2
[root@pcmk-1]crm_resuorce -L
CLUSTERIP (ofc::heartbeat:IPaddr2): Started
Best Answer
Okay I found the solution. Basically you add nagios as an "anything" resource