OCF_HEARTBEAT_ASTERI(7)

πŸ’– OCF_HEARTBEAT_ASTERI(7) πŸ’–

okay bestie, welcome to the OCF resource agents corner of the manual, where we're talking about ocf_heartbeat_asterisk β€” the lil agent that manages an Asterisk PBX. yes, the whole phone system. she's got range. πŸŽ€


✨ NAME ✨

ocf_heartbeat_asterisk β€” manages an Asterisk PBX 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

asterisk [start | stop | status | monitor | meta-data | validate-all]

πŸ’… DESCRIPTION πŸ’…

So this is a resource agent for the Asterisk PBX. It can manage an Asterisk PBX telephony system, or it can manage a clone set that forms an Asterisk distributed device setup. like, either vibe. one Asterisk or a whole little squad of them. πŸ”₯


πŸŽ€ SUPPORTED PARAMETERS πŸŽ€

every param, no skips, periodt:

  • binary β€” where the Asterisk PBX server binary lives. (optional, string, default "asterisk")
  • canary_binary β€” where the Asterisk PBX Canary server binary lives. (optional, string, default "astcanary")
  • config β€” the Asterisk PBX configuration file. (optional, string, default "/etc/asterisk/asterisk.conf")
  • user β€” the user that runs the Asterisk PBX daemon. (optional, string, default "asterisk")
  • group β€” the group that runs the Asterisk PBX daemon (this one's for logfile and directory permissions, iykyk). (optional, string, default "asterisk")
  • additional_parameters β€” extra parameters passed to the Asterisk PBX on startup (like -L <load> or -M <value>, for example). (optional, string, default "-g -vvv")
  • realtime β€” decides whether the Asterisk PBX daemon runs with realtime priority or not. (optional, boolean, default false)
  • maxfiles β€” decides how many files the Asterisk PBX is allowed to open at one time. helps fix that 'Too many open files' error message, which is giving stressed. (optional, integer, default 8192)
  • monitor_sipuri β€” a SIP URI to check when monitoring. during monitor, the agent will attempt to do a SIP OPTIONS request against this URI. requires the sipsak utility to be present and executable. if it's unset, the agent does no SIP URI monitoring at all. (optional, string, no default)

🌈 SUPPORTED ACTIONS 🌈

this resource agent supports the following actions (operations), bestie:

  • start β€” starts the resource. suggested minimum timeout: 20s.
  • stop β€” stops the resource. suggested minimum timeout: 20s.
  • status β€” performs a status check. suggested minimum timeout: 20s.
  • monitor β€” performs a detailed status check. suggested minimum timeout: 30s. suggested interval: 20s.
  • validate-all β€” performs a validation of the resource configuration. suggested minimum timeout: 5s.
  • meta-data β€” retrieves resource agent metadata (internal use only, don't worry about it πŸ’€). suggested minimum timeout: 5s.

⭐ EXAMPLE CRM SHELL ⭐

here's an example config for an asterisk resource using the crm(8) shell:

primitive p_asterisk ocf:heartbeat:asterisk \
  op monitor timeout="30s" interval="20s"

πŸ’œ EXAMPLE PCS πŸ’œ

and here's the same energy for an asterisk resource using pcs(8):

pcs resource create p_asterisk ocf:heartbeat:asterisk \
  op monitor timeout="30s" interval="20s"

πŸ‘‘ SEE ALSO πŸ‘‘


🫢 AUTHOR 🫢

ClusterLabs contributors (see the resource agent source for information about individual authors). love that for them, fr fr. πŸ’–


and that's the whole page bestie, no gatekeeping, no cap. go configure your Asterisk. slay. 🧚✨

this lil masterpiece came to you from resource-agents UNKNOWN, dated 04/08/2026 β€” mwah, take care of her πŸ’…πŸ“

πŸ“¦ where this page comes from