X-Git-Url: http://git.onelab.eu/?p=monitor.git;a=blobdiff_plain;f=zabbix.spec;h=c864a71e57dfadac402eea387ea150abc564c248;hp=479e68415f39113194d180e66cf4c81fbcf873e0;hb=1cd11f72a8c633fd2f55accd33ac0ea3e292c0b0;hpb=a06427d1c9506ee93888e8f2f80b6c4bdd134527 diff --git a/zabbix.spec b/zabbix.spec index 479e684..c864a71 100644 --- a/zabbix.spec +++ b/zabbix.spec @@ -3,15 +3,15 @@ %define _prefix /usr/local/zabbix Name: zabbix -Version: 1.6.1 -Release: 1 +Version: 1.6 +Release: 2 Group: System Environment/Daemons License: GPL Summary: ZABBIX network monitor server Vendor: ZABBIX SIA URL: http://www.zabbix.org Packager: Eugene Grigorjev -Source: zabbix-1.6.1.tar.gz +Source: zabbix-%{version}.tar.gz Autoreq: no Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot @@ -66,7 +66,7 @@ Requires: postgresql-server The ZABBIX gui frontend %prep -%setup -n zabbix-1.6.1 +%setup -n zabbix-%{version} %build @@ -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" \ @@ -174,12 +177,13 @@ cat $TMP_FILE > %{zabbix_initdir}/zabbix_agentd # NOTE: Run every runlevel as soon as possible, and stop as late as possible cp %{zabbix_initdir}/zabbix_agentd %{_initrddir} sed -i -e "s#chkconfig: - 90 10#chkconfig: 2345 12 90#g" \ - %{_initrddir}/zabbix_server + %{_initrddir}/zabbix_agentd rm -f $TMP_FILE chkconfig --add zabbix_agentd chkconfig zabbix_agentd on +service zabbix_agentd start %post server @@ -286,6 +290,9 @@ rm -f %{zabbix_logdir}/zabbix_agentd.log %{zabbix_webdir} %changelog +* Mon Jan 05 2009 Stephen Soltesz - Monitor-2.0-0 +- new changes are significantly different, that I'm upping the number for clarity. + * Tue Nov 11 2008 Stephen Soltesz - 1.6.1 - initial re-packaging