Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do you monitor if pacemaker is still working? If all nodes are online and not in a state of standby or even offline/down?

Monitoring the services isn't the problem, this can be done directly. But im still not sure if I should monitor the status of the crm and if so, how to do it.

share|improve this question
There's some curses-based management command. I'd check to see what options are available on that command, if it'll just return with an exit code, etc., or at least parseable text. I assume you want to see nodes that are online/idle/whatever. – cjc May 7 '12 at 10:22… or write a Nagios plugin to parse crm_mon -1 results. – quanta Jun 30 '12 at 5:12

By default, if the crm has a hissy-fit you'll know about it because the machine reboots. We run a Nagios check at work that does all sorts of checks for Pacemaker config in general (Make sure is-managed-default isn't false, that no resources have a non-zero failcount, all that kind of thing) -- I don't know where we got it from, but presumably it's floating around the 'tubes somewhere.

share|improve this answer
Our service provider runs mysql master-master nodes, with basic Heartbeat failover. We're on the mail list for Heartbeat messages, but we've also set up a Nagios check that looks at the MAC for the HA IP and the MAC for the standby master's IP. If they match, then we've missed an email and the IP floated to the the standby. – cjc May 7 '12 at 10:24
To be blunt, if you care which machine on a cluster a service is running, ur doin it rong. – womble May 7 '12 at 10:39
We were running long-running queries on the secondary master. It was a long-ago cost-saving decision to do that, instead of a proper reporting slave. – cjc May 7 '12 at 10:42
You'd be better off adding a couple of lines of code to whatever runs the reporting queries to detect the failure and try again. – womble May 7 '12 at 10:47
@womble, Im not caring with the services. Im just interested in the information if pacemaker thinks all nodes are still fine. Like one node being standby, offline, or worst case a split-brain happend. – Comradin May 7 '12 at 14:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.