X-Git-Url: http://git.onelab.eu/?p=monitor.git;a=blobdiff_plain;f=zabbix.spec;h=e8a89be1ba342ab3a472646c57d1926ccd282f83;hp=484ed8b32530a9a0b4426e00ab2eefa4b9ef6a41;hb=25461ce3a5afe1dacc216bc01263588d63880fdd;hpb=ed063fedb755abed6a6a9046ab2d34f5d9e83df1 diff --git a/zabbix.spec b/zabbix.spec index 484ed8b..e8a89be 100644 --- a/zabbix.spec +++ b/zabbix.spec @@ -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