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 thesipsakutility 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
- fedora 43: resource-agents 4.18.0-1.fc43 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- fedora 44: resource-agents 4.18.0-1.fc44 Β· GPL-2.0-or-later AND LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms