table of contents
other versions
- jessie-backports 1:4.0.0~rc1-4~bpo8+1
- stretch 1:4.0.0~rc1-4
- testing 1:4.2.0-1
- unstable 1:4.2.0-2
OCF_HEARTBEAT_NAGIOS(7) | OCF resource agents | OCF_HEARTBEAT_NAGIOS(7) |
NAME¶
ocf_heartbeat_nagios - Nagios resource agentSYNOPSIS¶
nagios [start | stop | status | monitor | meta-data |
validate-all]
DESCRIPTION¶
OCF Resource script for Nagios 3.x or 4.x. It manages a Nagios instance as a HA resource.SUPPORTED PARAMETERS¶
userUser running Nagios daemon (for file permissions)
(optional, string, default "nagios")
group
Group running Nagios daemon (for file permissions)
(optional, string, default "nagios")
binary
Location of the Nagios binary
(optional, string, default "/usr/sbin/nagios")
config
Configuration file
(optional, string, default "/etc/nagios/nagios.cfg")
log
Location of the Nagios log
(optional, string, default "/var/log/nagios/nagios.log")
retention
Location of the Nagios retention file
(optional, string, default "/var/log/nagios/retention.dat")
command
Location of the Nagios external command file
(optional, string, default "/var/log/nagios/rw/nagios.cmd")
pid
Location of the Nagios pid/lock
(optional, string, default "/var/run/nagios.pid")
SUPPORTED ACTIONS¶
This resource agent supports the following actions (operations): startStarts the resource. Suggested minimum timeout: 20.
stop
Stops the resource. Suggested minimum timeout: 20.
status
Performs a status check. Suggested minimum timeout:
20.
monitor
Performs a detailed status check. Suggested minimum
timeout: 20. Suggested interval: 10.
validate-all
Performs a validation of the resource configuration.
Suggested minimum timeout: 20.
meta-data
Retrieves resource agent metadata (internal use only).
Suggested minimum timeout: 20.
EXAMPLE CRM SHELL¶
The following is an example configuration for a nagios resource using the crm(8) shell:primitive p_nagios ocf:heartbeat:nagios \ op monitor depth="0" timeout="20" interval="10" start-delay="10"
EXAMPLE PCS¶
The following is an example configuration for a nagios resource using pcs(8)pcs resource create p_nagios ocf:heartbeat:nagios \ op monitor depth="0" timeout="20" interval="10" start-delay="10"
SEE ALSO¶
http://clusterlabs.org/AUTHOR¶
ClusterLabs contributors (see the resource agent source for information about individual authors)06/07/2017 | resource-agents 4.0.0~rc1-4~bp |