OCF_HEARTBEAT_IBMMQ(7)
π NAME π
okay so bestie, welcome to OCF_HEARTBEAT_IBMMQ(7) from the OCF resource agents family π
this page is all about ocf_heartbeat_ibmmq β literally Manages an IBM MQ queue manager β¨
π¦ SYNOPSIS π¦
ibmmq [start | stop | monitor | meta-data | validate-all]
πΈ DESCRIPTION πΈ
This is the resource agent for an IBM MQ queue manager, and it is lowkey doing a lot π It starts the queue manager with strmqm, stops it with endmqm -i, escalates to endmqm -p, and finally does direct termination of the queue manager process family. It monitors via dspmq run-state. Iconic, honestly.
A deep monitor β OCF_CHECK_LEVEL 10 or higher β additionally verifies responsiveness with runmqsc "ping qmgr". A deeper monitor β OCF_CHECK_LEVEL 20 or higher β additionally puts a probe message on a dedicated test queue (parameter test_queue) and gets it back, proving end-to-end message flow including the transaction log π₯
Optional checks cover the command server (amqpcsea), a queue manager listener (runmqlsr) and a custom external monitor program. Main character energy for real.
For failover configurations, the queue manager data and log directories must live on storage that follows the resource (e.g. a Filesystem resource on shared or replicated storage) and the queue manager must be addressable on all eligible nodes. Order this resource after the filesystem and IP resources in a group. No cap, that part matters π«Ά
π SUPPORTED PARAMETERS π
qmgrβ Name of the IBM MQ queue manager managed by this resource. It is unique, required, string, no default πmquserβ Operating system user owning the IBM MQ installation. All MQ commands are executed as this user via a login shell. (optional, string, default"mqm")mq_installation_pathβ MQ installation path for multi-installation environments (MQ 7.1+). When set,PATHis prefixed with this pathβsbindirectory before running MQ commands. Leave empty to use the primary installation. (optional, string, no default)env_fileβ Absolute path to a file sourced before every MQ command, e.g. to runsetmqenvor export queue manager environment variables. The file is executed by the systemβs/bin/sh, so it must be compatible with that shell (POSIXshsyntax is safe on every distribution). (optional, string, no default)strmqm_optsβ Additional options passed tostrmqmon start. Do not use-x(multi instance standby mode); standby coordination is Pacemakerβs job in this deployment model. (optional, string, no default)immediate_stop_timeoutβ Seconds to wait forendmqm -i(immediate shutdown) to complete before escalating to a pre-emptive shutdown. (optional, integer, default30)preemptive_stop_timeoutβ Seconds to wait forendmqm -p(pre-emptive shutdown) to complete before terminating the queue manager process family directly. (optional, integer, default10)monitor_command_serverβ When true, the monitor additionally requires the command server process (amqpcsea) of this queue manager to be running. Note that on modern MQ the command server is started with the queue manager by default. (optional, boolean, defaultfalse)monitor_listenerβ When true, the monitor additionally requires at least onerunmqlsrlistener process for this queue manager to be running. Use only when the listener is started via the queue manager service definitions (DEFINE SERVICE/runmqlsrunder qmgr control), otherwise manage the listener as a separate resource. (optional, boolean, defaultfalse)test_queueβ Name of a dedicated local queue used by theOCF_CHECK_LEVEL20 monitor for a put/get probe (viadmpmqmsg). The queue must exist, must be used exclusively by this agent, and is drained by every probe β never point it at an application queue π Required when a monitor operation withOCF_CHECK_LEVEL20 or higher is configured. Example definition:DEFINE QLOCAL(RA.PROBE.QUEUE) DEFPSIST(YES) MAXDEPTH(100).(optional, string, no default)
bestie please do not ignore the test_queue warning β it gets drained every single probe, so an app queue would simply not survive the vibe check π
monitor_programβ Absolute path (with optional arguments) of an external program executed as the MQ user during monitor. Exit code0means healthy; any other exit code marks the resource failed. The program must complete well within the monitor action timeout. (optional, string, no default)
β¨ SUPPORTED ACTIONS β¨
This resource agent supports the following actions (operations), and yes we are listing every one π
startβ Starts the resource. Suggested minimum timeout:180s.stopβ Stops the resource. Suggested minimum timeout:120s.monitorβ Performs a detailed status check. Suggested minimum timeout:60s. Suggested interval:30s.monitorβ Performs a detailed status check. Suggested minimum timeout:60s. Suggested interval:120s.validate-allβ Performs a validation of the resource configuration. Suggested minimum timeout:30s.meta-dataβ Retrieves resource agent metadata (internal use only). Suggested minimum timeout:5s.
π EXAMPLE CRM SHELL π
The following is an example configuration for an ibmmq resource using the crm(8) shell:
primitive p_ibmmq ocf:heartbeat:ibmmq \
params \
qmgr=string \
op monitor timeout="60s" interval="30s" depth="0" \
op monitor timeout="60s" interval="120s" depth="10"
π EXAMPLE PCS π
The following is an example configuration for an ibmmq resource using pcs(8):
pcs resource create p_ibmmq ocf:heartbeat:ibmmq \
qmgr=string \
op monitor timeout="60s" interval="30s" OCF_CHECK_LEVEL="0" \
op monitor timeout="60s" interval="120s" OCF_CHECK_LEVEL="10"
π SEE ALSO π
π AUTHOR π
ClusterLabs contributors (see the resource agent source for information about individual authors) π«Ά
π thatβs the whole page, bestie! source/version: resource-agents UNKNOWN, dated 10/01/2026, and youβre reading OCF_HEARTBEAT_IBMMQ(7) β byeee β¨π
π¦ 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