What It Does
Run it as root on any node of the cluster, from your RMM agent on the node or a scheduled task. It reads quorum from pvecm status; a node without a cluster is reported as standalone and does not alert. It reads the cluster's resources through pvesh on the node itself, so one run covers every node.
It alerts when a cluster has no readable quorum, a node is offline, a listed VM or container confirmed to start on boot is not running, or storage is unavailable or over the usage limit. It skips templates, excluded guests, and guests whose on-boot setting cannot be confirmed. A guest missing from the inventory is not checked. Storage with no usable size is listed without a usage alert.
The answer names each problem, for example that the cluster has no quorum and which node is offline, and the table lists every check. It does not check backup age: use Proxmox's own backup job notifications for that.
It keeps no state. Run it every few minutes on one node, or on each node if you want an alert even when the node you chose is the one that is down.
Before You Run It
- Run it as root on a Proxmox VE 7 or later node.
- Put VMIDs you stop on purpose in EXCLUDE_GUESTS, and set STORAGE_USED_PERCENT to suit your storage.
Type and Risk
- Type: Monitor. It checks one condition. It exits 1 when it finds the problem, so your RMM can alert on it, 0 when all is well, and 2 when it could not run.
- Risk: Low. It reads and changes nothing.
- Restart: It never restarts the machine.
- Typical run: Under 30 seconds.
- Example answer: "Proxmox: node pve2 is offline; onboot guest 104 (mail) is stopped; storage local-lvm on pve1 91% used (limit 85%)"
- Tested before listing on a two-node Proxmox VE 9.2 cluster (Arm64 VMs) with bash, run as root, against its own test cases.
Inputs
Pass an input as an argument (--input-name value), as an environment variable named as listed, which is how most RMMs pass script variables, or change its default in the DEFAULT_ lines near the top of the script. An argument wins over an environment variable, which wins over the default.
- STORAGE_USED_PERCENT: Alert when a storage is more than N% used. 1-99. Default 85.
- EXCLUDE_GUESTS: VMIDs to skip, comma-separated. Default none.
Every script also takes DRY_RUN, OUTPUT_FORMAT (Text, Answer, Json or Csv), EXPORT_PATH and RESULT_FIELD, which writes the answer to an RMM custom field, unless the list above words one differently.
License
Provided "as is" under the MIT License, without warranty of any kind. Test before production use. MSP Outpost and User First Digital Inc. accept no liability for any damage or loss.