fixed path in patch for monitor.spec
php /usr/share/%{name}/zabbix/getdefines.php > %{python_sitearch}/monitor/database/zabbixapi/defines.py
# apply patches to zabbix
-patch -d /var/www/html/zabbix/ -p0 < /usr/share/%{name}/zabbix/zabbix/zabbix-auto-login.diff
+patch -d /var/www/html/zabbix/ -p0 < /usr/share/%{name}/zabbix/zabbix-auto-login.diff
#chkconfig --add monitor-server
#chkconfig monitor-server on
# 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