|
From: <abe...@us...> - 2012-10-04 20:58:30
|
Revision: 5702
http://astlinux.svn.sourceforge.net/astlinux/?rev=5702&view=rev
Author: abelbeck
Date: 2012-10-04 20:58:24 +0000 (Thu, 04 Oct 2012)
Log Message:
-----------
zabbix, add support for zabbix_agentd Include= if the file /mnt/kd/zabbix_agentd.userparams.conf exists
Modified Paths:
--------------
branches/1.0/package/zabbix/zabbix.init
Modified: branches/1.0/package/zabbix/zabbix.init
===================================================================
--- branches/1.0/package/zabbix/zabbix.init 2012-10-04 18:59:50 UTC (rev 5701)
+++ branches/1.0/package/zabbix/zabbix.init 2012-10-04 20:58:24 UTC (rev 5702)
@@ -56,6 +56,11 @@
startagents="${ZABBIX_STARTAGENTS:-3}"
debuglevel="${ZABBIX_DEBUGLEVEL:-3}"
timeout="${ZABBIX_TIMEOUT:-3}"
+ if [ -f /mnt/kd/zabbix_agentd.userparams.conf ]; then
+ agentd_include="/mnt/kd/zabbix_agentd.userparams.conf"
+ else
+ agentd_include=""
+ fi
proxyserver="$(echo $server | cut -d',' -f1)" # Only use first server for proxy
proxyhostname="${ZABBIX_PROXY_HOSTNAME:-proxy-$HOSTNAME}"
proxylistenport="${ZABBIX_PROXY_LISTENPORT:-10051}"
@@ -118,7 +123,8 @@
DebugLevel=$debuglevel
Timeout=$timeout
PidFile=/var/run/zabbix_agentd.pid
-LogFile=/var/log/zabbix_agentd.log
+LogFile=/var/log/zabbix_agentd.log${agentd_include:+
+Include=$agentd_include}
AllowRoot=0
" >/tmp/etc/zabbix_agentd.conf
fi
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|