Skip to content

Proxmox VE cluster (proxmox_cluster) ​

Whether a Proxmox VE cluster has quorum and all its nodes, read from /cluster/status through the REST API with a read-only API token. A Proxmox cluster that loses quorum stops accepting changes and, with HA, fences nodes, and it is easy to miss until something needs changing.

Parameters ​

ParameterDefaultMeaning
port8006API port.
verify_tlstrueCheck the API certificate.
tls_fingerprintnonePin the API certificate, see the Proxmox page.

Credential: a secret holding the API token, as for the other Proxmox sensors. The PVEAuditor role is enough. Ask any one node of the cluster, ideally by an address that does not depend on a single node. Suggested interval: 60 seconds.

Channels ​

KeyNameUnitDefault limits
clusteredPart of a clusternonenone: 1 cluster, 0 standalone
quorateQuorumnoneDown when 0. Unknown on a standalone node.
nodes_expectedNodes expectednonenone. The number of nodes the cluster is configured with. Unknown on a standalone node.
nodes_onlineNodes onlinenonenone
nodes_offlineNodes offlinenonewarning above 0
api_msAPI response timemsnone

What it says ​

SituationHealthMessage
A node that is not part of a clusteruppve is a standalone node, not part of a cluster
Quorum and every node onlineupcluster lab has quorum, all 3 nodes online
A node offline while quorum holdswarningcluster lab has quorum, but a node is offline: pve3 (several: nodes are offline: pve2, pve3, always in name order)
Quorum lostdowncluster lab has lost quorum: 1 of 3 nodes online

A single node reads as healthy: there is nothing to lose quorum with. Put this sensor on a standalone node anyway and it starts watching the day the node joins a cluster.

Failures ​

As for the other Proxmox sensors: a refused token, a missing role, a certificate problem or an unreachable host is a collection failure with a message that names the cause.

Verification ​

A single node was checked against a real Proxmox VE 9.1 host. A three-node Proxmox VE 9.3 cluster was checked in three states, and the answers recorded: all nodes up, one node shut down while quorum held (a warning), and two nodes shut down so that the survivor lost quorum (down). The cluster lists its nodes in a different order from one answer to the next, so the sensor sorts the names it reports. A cluster running HA, with more than three nodes or with a second corosync link was not available. Please report any difference.

AGPL-3.0-only