OCF_HEARTBEAT_AZURE-EVENTS-AZ(7)
π ocf_heartbeat_azure-events-az β like, the Azure Scheduled Events monitor π«Ά
okay bestie, welcome to the OCF_HEARTBEAT_AZURE() manual page β¨ this one is a resource agent for Pacemaker, and it's genuinely iconic β it watches Microsoft Azure for scheduled maintenance events and yeets your resources out of harm's way before Azure does its thing. no cap.
β¨ NAME β¨
ocf_heartbeat_azure-events-az β the Microsoft Azure Scheduled Events monitoring agent π
π¦ SYNOPSIS π¦
azure-events-az [start | stop | monitor | meta-data | validate-all]
πΈ DESCRIPTION πΈ
so this resource agent? it literally implements a monitor for scheduled (maintenance) events on a Microsoft Azure VM. main character energy fr.
if any relevant events are found, it moves all Pacemaker resources away from the affected node so everything can shut down gracefully. it's giving "protective bestie" π«Ά
π Deployment π
okay so here's the whole deployment vibe, step by step.
Step 1 β set the property and the location constraint:
crm configure property node-health-strategy=custom
crm configure location loc_azure_health /'!health-.*'/ rule '#health-azure': defined '#uname'
Step 2 β set the #health-azure attribute to 0 (healthy) for every node in the cluster (this example shows node1 only, don't come for me):
crm_attribute --node node1 --name '#health-azure' --update 0
Step 3 β configure the RA:
crm configure primitive health-azure-events ocf:heartbeat:azure-events-az params eventTypes="Reboot,Redeploy" verbose=false retry_count=3 retry_wait=20 request_timeout=15 op start start-delay=60s op monitor interval=10s meta failure-timeout=120s
crm configure clone health-azure-events-cln health-azure-events meta allow-unhealthy-nodes=true
for further information on Microsoft Azure Scheduled Events, the original page points you here β go read it, iykyk: https://docs.microsoft.com/en-us/azure/virtual-machines/linux/scheduled-events β
π SUPPORTED PARAMETERS π
eventTypesβ a comma-separated list of event types that this resource agent will handle. possible values areFreeze,Reboot,Redeploy. (optional, string, default"Reboot,Redeploy")verboseβ set this totrueto enable verbose logging. (optional, boolean, defaultfalse)retry_countβ set this to any number bigger than zero to enable retry count. (optional, integer, default3)retry_waitβ sets the retry wait time, in seconds. (optional, integer, default20)request_timeoutβ sets the request timeout, in seconds. (optional, integer, default15)
π₯ SUPPORTED ACTIONS π₯
this resource agent supports the following actions (operations), periodt:
startβ starts the resource. suggested minimum timeout:10s.stopβ stops the resource. suggested minimum timeout:10s.validate-allβ performs a validation of the resource configuration. suggested minimum timeout:20s.monitorβ performs a detailed status check. suggested minimum timeout:240s. suggested interval:10s.meta-dataβ retrieves resource agent metadata (internal use only π). suggested minimum timeout:10s.
π§ EXAMPLE CRM SHELL π§
here's an example config for an azure-events-az resource using the crm(8) shell β copy it, it's cute:
primitive p_azure-events-az ocf:heartbeat:azure-events-az \
op monitor timeout="240s" interval="10s"
π EXAMPLE PCS π
and here's the same vibe for a azure-events-az resource using pcs(8):
pcs resource create p_azure-events-az ocf:heartbeat:azure-events-az \
op monitor timeout="240s" interval="10s"
β SEE ALSO β
http://clusterlabs.org/β go say hi π
π AUTHOR π
ClusterLabs contributors (see the resource agent source for information about individual authors)
okay that's the whole page, bestie π this was the OCF_HEARTBEAT_AZURE() manual page β that's the source/version line right there at the bottom, and go off, you're basically an Azure monitoring queen now. slay πβ¨π¦
π¦ where this page comes from
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms