OCF_HEARTBEAT_SYSLOG(7) | OCF resource agents | OCF_HEARTBEAT_SYSLOG(7) |
ocf_heartbeat_syslog-ng - Syslog-ng resource agent
syslog-ng [start | stop | status | monitor | meta-data | validate-all]
This script manages a syslog-ng instance as an HA resource.
For Premium Edition you should set the following parameters (based on default path being "/opt/syslog-ng"): syslog_ng_binary="/opt/syslog-ng/sbin/syslog-ng" syslog_ng_ctl="/opt/syslog-ng/sbin/syslog-ng-ctl" control_file="/opt/syslog-ng/var/run/syslog-ng.ctl" persist_file="/opt/syslog-ng/var/syslog-ng.persist" pidfile="/opt/syslog-ng/var/run/syslog-ng.pid"
Additional parameter for Premium Edition 6 only: qdisk_dir="/opt/syslog-ng/var/"
configfile
(required, string, no default)
syslog_ng_binary
(optional, string, default "/sbin/syslog-ng")
syslog_ng_ctl
(optional, string, default "/sbin/syslog-ng-ctl")
qdisk_dir
(optional, string, no default)
control_file
(optional, string, no default)
persist_file
(optional, string, no default)
pidfile
(optional, string, no default)
start_opts
(optional, string, no default)
kill_term_timeout
(optional, integer, default 10)
This resource agent supports the following actions (operations):
start
stop
status
monitor
meta-data
validate-all
The following is an example configuration for a syslog-ng resource using the crm(8) shell:
primitive p_syslog-ng ocf:heartbeat:syslog-ng \
params \
configfile=string \
op monitor depth="0" timeout="60s" interval="60s"
The following is an example configuration for a syslog-ng resource using pcs(8)
pcs resource create p_syslog-ng ocf:heartbeat:syslog-ng \
configfile=string \
op monitor depth="0" timeout="60s" interval="60s"
http://clusterlabs.org/
ClusterLabs contributors (see the resource agent source for information about individual authors)
06/27/2020 | resource-agents UNKNOWN |