1OCF_HEARTBEAT_NAGIOS(7)       OCF resource agents      OCF_HEARTBEAT_NAGIOS(7)
2
3
4

NAME

6       ocf_heartbeat_nagios - Nagios resource agent
7

SYNOPSIS

9       nagios [start | stop | status | monitor | meta-data | validate-all]
10

DESCRIPTION

12       OCF Resource script for Nagios 3.x or 4.x. It manages a Nagios instance
13       as a HA resource.
14

SUPPORTED PARAMETERS

16       user
17           User running Nagios daemon (for file permissions)
18
19           (optional, string, default "nagios")
20
21       group
22           Group running Nagios daemon (for file permissions)
23
24           (optional, string, default "nagios")
25
26       binary
27           Location of the Nagios binary
28
29           (optional, string, default "/usr/sbin/nagios")
30
31       config
32           Configuration file
33
34           (optional, string, default "/etc/nagios/nagios.cfg")
35
36       log
37           Location of the Nagios log
38
39           (optional, string, default "/var/log/nagios/nagios.log")
40
41       retention
42           Location of the Nagios retention file
43
44           (optional, string, default "/var/log/nagios/retention.dat")
45
46       command
47           Location of the Nagios external command file
48
49           (optional, string, default "/var/log/nagios/rw/nagios.cmd")
50
51       pid
52           Location of the Nagios pid/lock
53
54           (optional, string, default "/var/run/nagios.pid")
55

SUPPORTED ACTIONS

57       This resource agent supports the following actions (operations):
58
59       start
60           Starts the resource. Suggested minimum timeout: 20s.
61
62       stop
63           Stops the resource. Suggested minimum timeout: 20s.
64
65       status
66           Performs a status check. Suggested minimum timeout: 20s.
67
68       monitor
69           Performs a detailed status check. Suggested minimum timeout: 20s.
70           Suggested interval: 10s.
71
72       validate-all
73           Performs a validation of the resource configuration. Suggested
74           minimum timeout: 20s.
75
76       meta-data
77           Retrieves resource agent metadata (internal use only). Suggested
78           minimum timeout: 20s.
79

EXAMPLE CRM SHELL

81       The following is an example configuration for a nagios resource using
82       the crm(8) shell:
83
84           primitive p_nagios ocf:heartbeat:nagios \
85             op monitor depth="0" timeout="20s" interval="10s" start-delay="10s"
86

EXAMPLE PCS

88       The following is an example configuration for a nagios resource using
89       pcs(8)
90
91           pcs resource create p_nagios ocf:heartbeat:nagios \
92             op monitor depth="0" timeout="20s" interval="10s" start-delay="10s"
93

SEE ALSO

95       http://clusterlabs.org/
96

AUTHOR

98       ClusterLabs contributors (see the resource agent source for information
99       about individual authors)
100
101
102
103resource-agents UNKNOWN           03/09/2020           OCF_HEARTBEAT_NAGIOS(7)
Impressum