From cc684b7550eb6618d48826178cbc33ad4ee5d83a Mon Sep 17 00:00:00 2001 From: bhxk Date: Thu, 20 Mar 2014 17:11:10 +0800 Subject: [PATCH] Update nagios-api-initd Modify some params compatible with nagios configuration in CentOS6 with epel-release-6-8 --- nagios-api-initd | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nagios-api-initd b/nagios-api-initd index bb2dfcb..52f3184 100755 --- a/nagios-api-initd +++ b/nagios-api-initd @@ -17,13 +17,13 @@ DESC="Nagios API Daemon" RETVAL=0 LOGFILE="/var/log/nagios/nagios-api.log" -NAG_API_BIN=/usr/local/bin/nagios-api -NAG_API_PORT=8181 +NAG_API_BIN=/usr/bin/nagios-api +NAG_API_PORT=6315 NAG_API_PID=/var/run/$PROG.pid -NAGIOS_STATUS_FILE=/var/nagios/status.dat -NAGIOS_COMMAND_FILE=/var/nagios/rw/nagios.cmd -NAGIOS_LOG_FILE=/var/log/nagios.log +NAGIOS_STATUS_FILE=/var/log/nagios/status.dat +NAGIOS_COMMAND_FILE=/var/spool/nagios/cmd/nagios.cmd +NAGIOS_LOG_FILE=/var/log/nagios/nagios.log start() { echo -n "Starting $DESC ($PROG): "