Zabbix is an Open source software monitoring tool for Networks and applications. It’s basically designed to monitor the network devices Like Server , router , switches , firewall and other network resources.
Zabbix uses the server-client architecture means server will be installed on a separate machine and agent application will be installed on client machine to monitor the devices. We can monitor thousands of devices with real time monitoring.
Zabbix requires Apache , Mysql , PHP installed on server to work together with zabbix. We’re assuming you have already installed these server on your machine.
If not then follow these link to install LAMP (linux, Apache, Mysql, PHP)
Step 1: First we would like to install officially zabbix repo on the server the link is below
Now Install zabbix agent with necessary packages
yum install zabbix-server-mysql zabbix-web-mysql zabbix-agent
Step 2: I faced some issue while running above comnands for zabbix server the Problem was I needed some PHP dependencies installed on the systems.
Packages name are PHP-mbstring and PHP-bcmath And I installed them. Now Zabbix has been installed successfully on my machine after installing those PHP dependencies.
Step 3: Zabbix Configuration file location /etc/zabbix/
Now you need to create a database for zabbix
Login to your database server mysql –u root –p
create database zabbixbb character set utf8 collate utf8_bin;
Use database zabbixbb and Create a user
Grant Permission to user zabbiuser on database
Step 4: Now export default database of zabbix location of database zcat /usr/share/doc/zabbix-server-mysql-3.4.9/create.sql.gz | mysql -uzabbiuser -p zabbixbb
After this command it will ask you for user password
Step 5: Now will have to put the database related information in the file/etc/zabbix/zabbix_server.conf
- DBHost =localhost
- DBName= zabbixbb
- DBUser = zabbiuser
- DBPassword = passwd
Step 6: Start the service of zabbix server and agent
systemctl start zabbix-server && systemctl start zabbix-agent
Now Change the time zone of PHP
Add these php_value date.timezone Asia/Kolkata
Configure Via Web GUI
Now follow the screenshot
Login with default zabbix credential username “Admin” And Password “zabbix”.
You can Change settings according to your organisation need. We’re having default settings. You can make changes in configuration files.