OCF_HEARTBEAT_NAGIOS(7)
π ocf_heartbeat_nagios β the Nagios resource agent, explained bestie-style π
okay so this is OCF_HEARTBEAT_NAGIOS(7), aka the manual page for ocf_heartbeat_nagios β the Nagios resource agent. yes it's from the OCF resource agents collection, and yes we're gonna go through every single line together. grab a snack. π
πΈ NAME πΈ
ocf_heartbeat_nagios β Nagios resource agent. that's it, that's the name, she's iconic and she knows it. π
β¨ SYNOPSIS β¨
nagios [start | stop | status | monitor | meta-data | validate-all]
so you call her like that, pick one of those actions, and she does the thing. periodt.
π¦ DESCRIPTION π¦
it's an OCF resource script for Nagios 3.x or 4.x. it manages a Nagios instance as a HA resource. like, it babysits your Nagios so the cluster knows what's up. no cap, that's the whole job. π
π SUPPORTED PARAMETERS π
these are the knobs you get to turn. all of them are optional, all of them are strings, and every single one has a default so you don't have to touch anything (but you can, bestie, you can).
userβ the user running the Nagios daemon, used for file permissions. (optional, string, default"nagios")groupβ the group running the Nagios daemon, also for file permissions. (optional, string, default"nagios")binaryβ where the Nagios binary lives. (optional, string, default"/usr/sbin/nagios")configβ the configuration file. (optional, string, default"/etc/nagios/nagios.cfg")logβ where the Nagios log goes. (optional, string, default"/var/log/nagios/nagios.log")retentionβ the location of the Nagios retention file. (optional, string, default"/var/log/nagios/retention.dat")commandβ the location of the Nagios external command file. (optional, string, default"/var/log/nagios/rw/nagios.cmd")pidβ where the Nagios pid/lock lives. (optional, string, default"/var/run/nagios.pid")
that's eight parameters, all accounted for, none skipped. slay. β¨
π SUPPORTED ACTIONS π
this resource agent supports the following actions (operations). she's got range, fr fr:
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:20s. suggested interval:10s.validate-allβ performs a validation of the resource configuration. suggested minimum timeout:20s.meta-dataβ retrieves resource agent metadata (internal use only, don't touch it unless you know what you're doing bestie π). suggested minimum timeout:20s.
π EXAMPLE CRM SHELL π
here's what a nagios resource looks like using the crm(8) shell. copy it, love it, run it:
primitive p_nagios ocf:heartbeat:nagios \
op monitor depth="0" timeout="20s" interval="10s" start-delay="10s"
π§ EXAMPLE PCS π§
and here's the same energy but for pcs(8):
pcs resource create p_nagios ocf:heartbeat:nagios \
op monitor OCF_CHECK_LEVEL="0" timeout="20s" interval="10s" start-delay="10s"
both ate, honestly. pick your fave. π
β SEE ALSO β
go peek at this when you want more:
π«Ά AUTHOR π«Ά
ClusterLabs contributors β and if you want to know about individual authors, the resource agent source has the receipts. (see the resource agent source for information about individual authors) π
ok that's the whole page, every parameter, every action, every timeout, every example, untouched. nothing skipped. that's the vibe check passed. β
signing off, bestie β this was resource-agents, version UNKNOWN, dated 04/08/2026. iykyk. go manage your Nagios. bye!! πβ¨ππ¦πΈπ
π¦ 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