I have been spending the most part of this morning trying to install Zabbix and failing miserably in the whole process. My host is a Ubuntu 10.04 workstation. I’d like to run it on this workstation and see how it goes before installing it onto a more robust Ubuntu 12.04 LTS server.

Well before trying to going further, I should probably stop here and tell y’all about why I had to install it in the first place. Well, I am currently experiencing too many network-related problems in my organization’s LAN, so I decided to install a network monitoring software and see how effective it is. I could have easily used Spiceworks, but I am currently deeply advocating FOSS on Linux so I decided to install something that runs on Linux. (Spiceworks only runs on Windows, by the way.)

So after some search, I decided to try out Zabbix. Here are the steps I’ve taken so far:

  1. The first thing I did was check in the Ubuntu Software Center if it is available there, and yes it is available. I installed the following packages, in the order listed:
    1. network monitoring solution – server (using MySQL)
    2. network monitoring solution – proxy (using MySQL)
    3. network monitoring solution – agent
    4. network monitoring solution – PHP Front-end
  2. Then I launced http://localhost/zabbix and was greeted with the annoying error message that read:

    mysql_connect(): Access denied for user ‘zabbix’@’localhost’ (using password: YES)[/usr/share/zabbix/include/db.inc.php:58]

  3. I then proceeded to Remove all the above zabbix packages in the reverse order that I had installed them – via Ubuntu Software Center
  4. Having done that, I decided to re-install them via the terminal (command-line for you Windows savvy folks). Here’s what I did
    1. sudo apt-get-install zabbix-server-mysql
    2. sudo apt-get install zabbix-proxy-mysql
    3. sudo apt-get install zabbix-agent
    4. sudo ap-get install zabbix-frontend-php
  5. Having done that, I re-launched http://localhost/zabbix, but got the same error
  6. Giving some thought to the error message, I installed phpMyAdmin to manage databases. I did that by a simple sudo apt-get install phpmyadmin
  7. After installing it, I went in and added a database called “zabbix”. I even went into /usr/share/zabbix/include/db.inc.php and realized that it also includes the file in /etc/zaddix/dbconfig.php. 
  8. I launched /etc/zaddix/dbconfig.php in gedit and changed the user name to my root account as well as changed the root account’s password.
  9. I saved it and re-launched http://localhost/zabbix. Although this time I got a login dialogue, there were now more than 10 error messages displayed. (At this point I’ve decided to go home and take a rest. Been up since yesterday afternoon!)
  10. OK so I’m back and trying to get this documentation completed. Right now I’m trying to follow the steps at http://www.sysadminworld.com/2011/installing-zabbix-1-8-5-on-ubuntu-lucid-10-04/ and it might work. I don’t know. At least the tutorials at that page include some steps that I wasn’t able to do in the previous steps.

[UPDATE 1]

The proper documentations are here http://www.zabbix.com/documentation/2.0/manual/installation/install and here http://www.zabbix.com/documentation/2.0/manual/appendix/install/db_scripts

[UPDATE 2]

More documentation at http://library.linode.com/server-monitoring/zabbix#sph_deciding-how-to-install-zabbix