Debug agent
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
##
|
||||
|
||||
# IPC socket
|
||||
#ipc_socket=/tmp/pgmon.sock
|
||||
#ipc_socket=pgmon.sock
|
||||
|
||||
# IPC communication timeout (s)
|
||||
#ipc_timeout=10
|
||||
|
||||
@@ -7,8 +7,8 @@ agent_name=${agent_name:-pgmon}
|
||||
|
||||
CONFIG_FILE="/etc/pgmon/${agent_name}.cfg"
|
||||
PID_FILE="/run/pgmon/${agent_name}.pid"
|
||||
LOG_FILE="/var/log/${agent_name}.log"
|
||||
SOCKET="/var/run/${agent_name}.socket"
|
||||
LOG_FILE="/var/log/pgmon/${agent_name}.log"
|
||||
SOCKET="/run/pgmon/${agent_name}.socket"
|
||||
|
||||
pidfile="$PID_FILE"
|
||||
|
||||
@@ -17,6 +17,9 @@ command_args="--server -c '$CONFIG_FILE' -l '$LOG_FILE' -s '$SOCKET'"
|
||||
command_background="true"
|
||||
command_user="zabbix:zabbix"
|
||||
|
||||
output_log="/var/log/pgmon/${agent_name}-service.log"
|
||||
error_log="/var/log/pgmon/${agent_name}-service.err"
|
||||
|
||||
start_pre() {
|
||||
checkpath -d -m 0755 -o "${command_user}" "/run/pgmon"
|
||||
checkpath -d -m 0755 -o "${command_user}" "/var/log/pgmon"
|
||||
|
||||
Reference in New Issue
Block a user