1

I am using HAproxy on two servers and for high availability using heartbeat and everything is okay, but I want to monitoring heartbeat I have a long search and get clustat command but can't find it on server and found cl_status command found it on the server but can't give a important information like

  • the member system status
  • Heartbeat channel status
  • Service status and which cluster system is running the service
Steve
  • 255
  • 2
  • 11
  • Clustat is used by RHCS (RedHat Cluster Suite) and is distributed by cman package, so you cannot use that command with heartbeat which is another clustering stack. Which version of heartbeat are you using, because answer depends on that. – Jakov Sosic Jun 26 '14 at 22:01
  • heartbeat-3.0.4-2 – Steve Jun 26 '14 at 22:03

1 Answers1

1

If you use heartbeat 3.0.x from EPEL, then you should use crm_mon command. This will show you all the information you want:

# crm_mon -1

Its output includes the number of nodes, uname, uuid, status, the resources configured in your cluster, and the current status of each.

If you want to group resources by node, run a command like this:

# crm_mon --group-by-node --inactive

You can also output into XML.

Jakov Sosic
  • 5,267
  • 4
  • 24
  • 35