PDA

View Full Version : Stop and upgrade zabbix?


NomenNescio
10-04-2009, 16:03
Is there an easy way to stop and upgrade zabbix?
How do I stop the zabbix process?
I currently do it with the kill command but I don't think that's the right way.
How do I install the newer version?
Whenever I run "make install" the binary files in the /usr/local/sbin don't get replaced and are not outputted anywhere??
I'm trying to upgrade from 1.6.3 to 1.6.4

tchjts1
10-04-2009, 18:57
Is there an easy way to stop and upgrade zabbix?
How do I stop the zabbix process?
I currently do it with the kill command but I don't think that's the right way.
How do I install the newer version?
Whenever I run "make install" the binary files in the /usr/local/sbin don't get replaced and are not outputted anywhere??
I'm trying to upgrade from 1.6.3 to 1.6.4

Depends on what OS you are on. I think Linux in general you use these stop commands -

sudo /etc/init.d/zabbix-server stop
sudo /etc/init.d/zabbix-agent stop
sudo /etc/init.d/mysql stop
sudo /etc/init.d/apache2 stop

When I run the make command, I do it differently and run:
make

then I run

sudo make install

And of course, they will go to wherever you define in your prefix statement during the compile. In my case it is --prefix=/usr so they then go into /usr/sbin for me.

NomenNescio
14-04-2009, 10:01
I don't have these files...

/etc/init.d/zabbix-server
/etc/init.d/zabbix-agent

Where can I get these scripts?

Edit:
These scripts are in misc/init.d/ but I'm using Ubuntu I can't find a ubuntu folder there, which one should I use?

Edit:
Ah, figured it out. I used the red-hat script. I also didn't add the prefix during config that's why it didn't work for some reason. It seems that if you don't explicitly add the prefix the files in the default installation folder won't be overwritten.

tchjts1
14-04-2009, 15:04
Yeah... I use this command to move the scripts into the correct place...

From the /home/zabbix/zabbix-1.6.4/ dir or wherever you unzipped the source to:

sudo cp misc/init.d/debian/zabbix-server /etc/init.d
sudo cp misc/init.d/debian/zabbix-agent /etc/init.d

And then also chmod them and set them to run at startup...

sudo chmod 755 /etc/init.d/zabbix-server
sudo update-rc.d zabbix-server defaults
sudo chmod 755 /etc/init.d/zabbix-agent
sudo update-rc.d zabbix-agent defaults


PS - I have a good set of install instructions for Ubuntu/MySql... just drop me a note if you'd like them.