%define _prefix /usr/local/zabbix
Name: zabbix
-Version: 1.6
+Version: 1.6.2
Release: 1
Group: System Environment/Daemons
License: GPL
# 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" \
chkconfig --add zabbix_agentd
chkconfig zabbix_agentd on
+service zabbix_agentd start
%post server