Hello all,
After several months of work monitoring many machines, we have decided that it is time for us to upgrade our zabbix server to something that can better handle the load. Before we shutdown the old system I decided to build up a fresh clean test system to ensure that the transition will be smooth. We currently use Debian Etch, so I grabbed the latest net install disc and my old how-to on installing Zabbix. It failed quite miserably. Turns out that my old copy relied on apache and an older php and the packages in the repository ask for apache2 and the latest php_5.
After trying several things I finally found a method that has worked 3 out of 3 times. Since this is something I have just stumbled upon, I probably have steps that are not required and I might be missing something. I ask that if you find something odd / out of order that you let me know so I can fix it and anyone else who may see this will know about it.
1) Open command line
type in: su
enter your password
type in: adduser zabbix
remember the password given
2) open synaptic (or apt-get)
For some reason I got a lot of errors if I grouped these steps together. Doing each step one at a time works
Also make sure that you are up-to-date on all of your packages.
Install mysql-client mysql-server
Then install zabbix-frontend-php
3) Restart the computer. I have been doing a bit more testing, but I am unable to find the exact package that needs restarting for the rest of the install to go smoothly. Restarting the whole system works though.
4) Open command line
type in: su
enter your password
type in: cd /tmp
Now we are going to set up the root user password for the MySQL database. There are several ways of doing it, but this method does not leave passwords in the history.
type in: vi mysql.sh (or some other editor of your choice - nano, emacs, gedit, ect)
Add these lines to that file
#!/bin/sh
mysqladmin -u root password EnterYourPasswordHere
type in: chmod +x mysql.sh
type in: ./mysql.sh
type in: rm mysql.sh
5) Open Synaptic again (or apt-get)
install zabbix-server-mysql snmpd
-it will ask for admin password, enter the password from above ( EnterYourPasswordHere message)
-it will ask for zabbix password, enter your zabbix password
add the zabbix password to /etc/zabbix/dbconfig.php
6) Open a browser and go to localhost/zabbix and you should be good to secure and setup from there.
If you can help improve this guide, I would be very gratefull. I hope this can be usefull to someone.
After several months of work monitoring many machines, we have decided that it is time for us to upgrade our zabbix server to something that can better handle the load. Before we shutdown the old system I decided to build up a fresh clean test system to ensure that the transition will be smooth. We currently use Debian Etch, so I grabbed the latest net install disc and my old how-to on installing Zabbix. It failed quite miserably. Turns out that my old copy relied on apache and an older php and the packages in the repository ask for apache2 and the latest php_5.
After trying several things I finally found a method that has worked 3 out of 3 times. Since this is something I have just stumbled upon, I probably have steps that are not required and I might be missing something. I ask that if you find something odd / out of order that you let me know so I can fix it and anyone else who may see this will know about it.
1) Open command line
type in: su
enter your password
type in: adduser zabbix
remember the password given
2) open synaptic (or apt-get)
For some reason I got a lot of errors if I grouped these steps together. Doing each step one at a time works
Also make sure that you are up-to-date on all of your packages.
Install mysql-client mysql-server
Then install zabbix-frontend-php
3) Restart the computer. I have been doing a bit more testing, but I am unable to find the exact package that needs restarting for the rest of the install to go smoothly. Restarting the whole system works though.
4) Open command line
type in: su
enter your password
type in: cd /tmp
Now we are going to set up the root user password for the MySQL database. There are several ways of doing it, but this method does not leave passwords in the history.
type in: vi mysql.sh (or some other editor of your choice - nano, emacs, gedit, ect)
Add these lines to that file
#!/bin/sh
mysqladmin -u root password EnterYourPasswordHere
type in: chmod +x mysql.sh
type in: ./mysql.sh
type in: rm mysql.sh
5) Open Synaptic again (or apt-get)
install zabbix-server-mysql snmpd
-it will ask for admin password, enter the password from above ( EnterYourPasswordHere message)
-it will ask for zabbix password, enter your zabbix password
add the zabbix password to /etc/zabbix/dbconfig.php
6) Open a browser and go to localhost/zabbix and you should be good to secure and setup from there.
If you can help improve this guide, I would be very gratefull. I hope this can be usefull to someone.
I didn't mean to offend anyone, only to correct some mistakes.

Comment