OCF_HEARTBEAT_MACHIN(7)

✨ ocf_heartbeat_machine-info ✨

okay bestie, welcome to the manual page for ocf_heartbeat_machine-info, from the OCF resource agents family πŸ’– it's giving "quietly essential infrastructure" and honestly? we're obsessed.


🌸 NAME 🌸

ocf_heartbeat_machine-info β€” records various node attributes in the CIB πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

machine-info [start | stop | monitor | meta-data | validate-all]

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically this one is a Virtual Machine and Container Registration Service Resource Agent. say that five times fast, i dare you 😭

what it does is record attributes into the CIB about how many virtual machines and containers are currently running on the node. and how does it find out? it uses systemd machinectl, no cap. 🧚

sample output, for the visual learners:

machines: 5

that's it. that's the whole vibe. ✨


πŸ’œ SUPPORTED PARAMETERS πŸ’œ

  • pidfile β€” the PID file, bestie. it's optional, it's a string, and it defaults to /run/resource-agents/MachineInfo-RESOURCE_ID 🫢
  • delay β€” the interval that lets the values stabilize before we go believing them. optional, string, default "0s". give it a lil breathing room, she deserves it 🌈

πŸ‘‘ SUPPORTED ACTIONS πŸ‘‘

this resource agent supports the following actions (operations), and yes we're going through every single one because they all matter:

  • start β€” starts the resource. suggested minimum timeout: 20s ⭐
  • stop β€” stops the resource. suggested minimum timeout: 20s πŸ’€ (not really, it's fine, i just love that emoji)
  • monitor β€” performs a detailed status check. suggested minimum timeout: 20s. suggested interval: 60s πŸ”₯ this is the one that keeps checking in on things, main character energy fr fr
  • meta-data β€” retrieves resource agent metadata (internal use only, so like, don't touch, it's not for you πŸ™ˆ). suggested minimum timeout: 5s
  • validate-all β€” performs a validation of the resource configuration. suggested minimum timeout: 20s βœ…

πŸ“ EXAMPLE CRM SHELL πŸ“

here's an example config for a machine-info resource using the crm(8) shell, copy it exactly bestie, character for character:

primitive p_machine-info ocf:heartbeat:machine-info \
  op monitor timeout="20s" interval="60s"

🌈 EXAMPLE PCS 🌈

and here's the same energy but for pcs(8):

pcs resource create p_machine-info ocf:heartbeat:machine-info \
  op monitor timeout="20s" interval="60s"

🌟 SEE ALSO 🌟


πŸ’– AUTHOR πŸ’–

ClusterLabs contributors (see the resource agent source for information about individual authors) β€” collective slay, honestly 🫢


heads up bestie: this page is from resource-agents version UNKNOWN, dated 04/08/2026. that's the whole thing! go forth and register those machines, you absolute icon πŸ‘‘πŸ’…βœ¨
πŸ“¦ where this page comes from