分类: 系统运维
2009-03-25 14:17:32
It is some suggestion for ubuntu users to move to new zabbix 1.6: new user or old ones.
for new user, intsll these packages by apt-get:
sudo apt-get install zabbix-agent zabbix-frontend-php zabbix-srver-mysql.
Now stop the running service:
/etc/init.d/zabbix_agent stop
/etc/init.d/zabbix_server stop
Then u should make the new zabbix and install them in another place:
./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-masql --with-libcurl --with-net-snmp
make
make install-strip
Then there will be 5 execuable file in /usr/local/zabbix/sbin directory. So we can go on to upgrade v1.4 to v1.6.
Upgrade database first:
cat
Then copy the execute file to the system:
cp /usr/local/zabbix/sbin/zabbix_server /usr/sbin
cp /usr/local/zabbix/sbin/zabbix_agentd /usr/sbin
cp /usr/local/zabbix/sbin/zabbix_agent /usr/bin
cp /usr/local/zabbix/sbin/zabbix_get /usr/bin
cp /usr/local/zabbix/sbin/zabbix_sender /usr/bin
Upgrade the front end:
cp -a
Now you can start the service now.
/etc/init.d/zabbix_agent start
/etc/init.d/zabbix_server start
U may want to edit the startup script. There is something wrong in the ubuntu package:
# add these lines after "set -e"
if ! [ -d `dirname $PID` ]; then
mkdir -p `dirname $PID`s
chown zabbix:zabbix `dirname $PID`
fi
It is done now.
P.S.
After that, u should lockup