Install Zabbix monitoring on Ubuntu 12.04 LTS

This is how you can install the latest version of Zabbix on Ubuntu 12.04.
You need to install the server version of Ubuntu.

First install prerequisites.

Next create a user and add them to a group:

Install a LAMP server:

Go ahead and select the LAMP server:

Selection_011

Get and install Zabbix

During my initial installation I encountered many errors. They are solved by installing these packages upfront:

Now get the latest Zabbix sources

Next, create a database for Zabbix:

Now create the schema and the tables. You can find the sql scripts in the ~/zabbix/zabbix-2.2.2/database/mysql folder.

We’re ready to make the config file now.
As you can see I’m creating a config file for compiling with SNMP, LDAP and SSH support:

When all is well (which it should) you get to see this:

Selection_002

Now we’re ready to run make install:

When all is done you need to edit the Zabbix agent configuration file /usr/local/etc/zabbix_agentd.conf and the Zabbix server configuration file /usr/local/etc/zabbix_server.conf. You must specify the database name, user and password.

Start the Zabbix server:

Install the frontend

The frontend are just some PHP files we need to copy from the Zabbix install files to the Apache WWW dir.
We also must make the conf dir writeable:

Final configuration

Go to a browser and type in the IP of your Zabbix server.
Next you will encounter these settings whoch are obviously not correct:

Selection_001

edit /etc/php5/apache2/php.ini and adjust it accordingly.

Selection_005

Now all should be well.

You can now finish the configuration and finally logon to Zabbix
Logon with:

username: admin
password: zabbix

.Selection_012

Adding the Zabbix server to monitor itself

You need to do the following:
1. add the zabbix user to the sudoers (sudo visudo)

2. edit the zabbix agent config

At this point you should be able to add the local Zabbix server. Go to Configuration -> Hosts -> Ad Host.

Adding the Raspoberry Pi to monitor

sudo apt-get install zabbix-agent
vim /etc/zabbix/zabbix_agentd.conf