ocf_heartbeat_nagios man page
ocf_heartbeat_nagios ā Nagios resource agent OCF Resource script for Nagios 3.x or 4.x. It manages a Nagios instance as a HA resource. User running Nagios daemon (for file permissions) (optional, string, default "nagios") Group running Nagios daemon (for file permissions) (optional, string, default "nagios") Location of the Nagios binary (optional, string, default "/usr/sbin/nagios") Configuration file (optional, string, default "/etc/nagios/nagios.cfg") Location of the Nagios log (optional, string, default "/var/log/nagios/nagios.log") Location of the Nagios retention file (optional, string, default "/var/log/nagios/retention.dat") Location of the Nagios external command file (optional, string, default "/var/log/nagios/rw/nagios.cmd") Location of the Nagios pid/lock (optional, string, default "/var/run/nagios.pid") This resource agent supports the following actions (operations): Starts the resource. Suggested minimum timeout: 20s. Stops the resource. Suggested minimum timeout: 20s. Performs a status check. Suggested minimum timeout: 20s. Performs a detailed status check. Suggested minimum timeout: 20s. Suggested interval: 10s. Performs a validation of the resource configuration. Suggested minimum timeout: 20s. Retrieves resource agent metadata (internal use only). Suggested minimum timeout: 20s. The following is an example configuration for a nagios resource using the crm(8) shell: The following is an example configuration for a nagios resource using pcs(8) ClusterLabs contributors (see the resource agent source for information about individual authors)Synopsis
nagios [start | stop | status | monitor | meta-data | validate-all]
Description
Supported Parameters
Supported Actions
Example CRM Shell
primitive p_nagios ocf:heartbeat:nagios \
op monitor depth="0" timeout="20s" interval="10s" start-delay="10s"
Example PCS
pcs resource create p_nagios ocf:heartbeat:nagios \
op monitor depth="0" timeout="20s" interval="10s" start-delay="10s"
See Also
Author
Info