X-Git-Url: http://git.onelab.eu/?p=monitor.git;a=blobdiff_plain;f=zabbix.spec;h=c864a71e57dfadac402eea387ea150abc564c248;hp=484ed8b32530a9a0b4426e00ab2eefa4b9ef6a41;hb=1cd11f72a8c633fd2f55accd33ac0ea3e292c0b0;hpb=4055d124d6921dc2beb3f01bc49b01abca1f1f56 diff --git a/zabbix.spec b/zabbix.spec index 484ed8b..c864a71 100644 --- a/zabbix.spec +++ b/zabbix.spec @@ -4,7 +4,7 @@ Name: zabbix Version: 1.6 -Release: 1 +Release: 2 Group: System Environment/Daemons License: GPL Summary: ZABBIX network monitor server @@ -155,6 +155,9 @@ TMP_FILE=`mktemp $TMPDIR/zbxtmpXXXXXX` # TODO: setup Server=, Hostname=, SERVER=`grep PLC_MONITOR_HOST /etc/planetlab/plc_config | tr "'" ' ' | awk '{print $2}'` +if [ -z "$SERVER" ] ; then + SERVER=128.112.139.116 +fi HOST=`hostname` sed -e "s#Hostname=.*#Hostname=$HOST#g" \ -e "s#Server=.*#Server=$SERVER#g" \ @@ -180,6 +183,7 @@ rm -f $TMP_FILE chkconfig --add zabbix_agentd chkconfig zabbix_agentd on +service zabbix_agentd start %post server