Chinaunix首页 | 论坛 | 博客
  • 博客访问: 52336
  • 博文数量: 19
  • 博客积分: 870
  • 博客等级: 准尉
  • 技术积分: 230
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-22 16:51
文章分类

全部博文(19)

文章存档

2013年(1)

2011年(1)

2009年(17)

我的朋友

分类: 系统运维

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 /upgrades/dbpatches/1.6/mysql/patch.sql > mysql -u root -p zabbix

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 /frontends/php/* /usr/share/zabbix

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 ur version of zabbix before an useful package released. As I know now, intrepid had v1.4.6 in it. So upgrade may change the binary back.

阅读(370) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~