Posted by: sutrisno | October 31, 2014

Install zabbix on ubuntu 14.04

Screenshot - 10312014 - 05:38:45 PM

langkah-langkahnya
sudo nano /etc/apt/sources.list
# Zabbix Application PPA
deb http://ppa.launchpad.net/tbfr/zabbix/ubuntu precise main
deb-src http://ppa.launchpad.net/tbfr/zabbix/ubuntu precise main

sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys C407E17D5F76A32B

sudo apt-get update
sudo apt-get install zabbix-server-mysql php5-mysql zabbix-frontend-php

sudo nano /etc/zabbix/zabbix_server.conf

DBName=zabbixDB
User=zabbix
DBPassword=123456

cd /usr/share/zabbix-server-mysql/
sudo gunzip *.gz

mysql -u root -p

create user ‘zabbix’@’localhost’ identified by ‘your_chosen_password_here’;
create database zabbix;
grant all privileges on zabbix.* to ‘zabbix’@’localhost’;
flush privileges;
exit;

mysql -u zabbix -p zabbix < schema.sql
mysql -u zabbix -p zabbix < images.sql
mysql -u zabbix -p zabbix < data.sql

sudo nano /etc/php5/apache2/php.ini

post_max_size = 16M
max_execution_time = 300
max_input_time = 300
date.timezone = UTC

sudo cp /usr/share/doc/zabbix-frontend-php/examples/zabbix.conf.php.example /etc/zabbix/zabbix.conf.php
sudo nano /etc/zabbix/zabbix.conf.php

$DB['DATABASE'] = 'zabbix';
$DB['USER'] = 'zabbix';
$DB['PASSWORD'] = '123456'

sudo cp /usr/share/doc/zabbix-frontend-php/examples/apache.conf /etc/apache2/conf-available/zabbix.conf
sudo a2enconf zabbix.conf
sudo a2enmod alias
sudo service apache2 restart

sudo nano /etc/default/zabbix-server

Go to the bottom and adjust the "START" property to read "yes":
START=yes

sudo service zabbix-server start

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

sudo service zabbix-agent restart

http://xx.xx.xx.xx/zabbix

Use the following default credentials to login.
Username = admin
Password = zabbix

When you have logged in, click on the "Configuration" button, and then "Hosts" in the top navigation bar.

Click on the name of the server (by default, this should be "Zabbix server"). This will open the host configuration page.
Adjust the Hostname to reflect the hostname of your Zabbix server (this should be the same hostname you entered in the agent configuration for the server machine).
At the bottom, change the "Status" property to "Monitored". Click save.

You will be dopped back to the Hosts configuration page. Re-click on the hostname again.
This time, click on the "Clone" button at the bottom of the page.
We will configure this to reflect the settings of the client machine. Change the hostname and the IP address to reflect the correct information from the client agent file.

In the "groups" section, select "Zabbix servers" and click the right arrow icon to remove that group. Select the "Linux servers" and click the left arrow icon to add that group setting.

Click "Save" at the bottom.
After a few minutes, you should be able to see both computers by going to "Monitoring" and then clicking on "Latest data".
There should be information for both the server and client machines populating.

If you click on the arrows next to an item, you can see the collected information.
If you click "Graph" you will see a graphical representation of the data points that have been collected:

source https://thedutchlab.com/en/news/installing-zabbix-on-ubuntu-14-04


Leave a comment

Categories