- Open source integrated monitoring software "Zabbix
- 1. Install Zabbix
- 3. administrator password change, administrator email address settings
- 4.Monitoring Host Configuration
Open source integrated monitoring software "Zabbix
Zabbix is an open source integrated monitoring software for centralized monitoring of servers, networks and applications. It provides monitoring, fault detection and notification functions required for integrated monitoring. With Zabbix agent and SNMP support for many platforms, you can monitor your entire system with a single Zabbix.
To run Zabbix, you will need the PHP programming language, MySQL as a database server, and a web server such as Apache or Nginx. In this article, we will assume that all of these have already been configured.
1. Install Zabbix
1.1 Configure Zabbix repository
Zabbix official team provides Apt package repository for Debian based systems. To add a repository to a Debian system, use the following command
1.2 Installing Zabbix Server
Once you have added the Apt repository, install the Zabbix server package using the following command
Package zabbix-server-mysql contains Zabbix server with MySQL support.
Package zabbix-frontend-php provides a web interface to Zabbix server.
# apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent
1.3 Create Zabbix database and user
Create database schema for Zabbix server.
Login to MySQL server as root account and create MySQL database (e.g. my_zabbix_db), user (e.g. zabbix_user) and password (e.g. WWWabcd123).
> CREATE DATABASE my_zabbix_db character set utf8 collate utf8_bin;
>CREATE USER 'zabbix_user'@'localhost' IDENTIFIED BY 'WWWabcd123';
Load Zabbix default schema for database
1.4 Update Zabbix configuration
Edit Zabbix server configuration file /etc/zabbix/zabbix_server.conf and update database configuration for Zabbix server to connect to database
# Line 93 : Uncomment
# Line 105 : change
# Line 121 : change
# Line 129 : change
DBPassword=[zabbix_userのpassword] # Line 398 : Uncomment
ListenIP = 0.0.0.0
Configure Zabbix service to start at system startup.
# systemctl restart zabbix-server
1.5 Monitor Zabbix server itself
# systemctl restart zabbix-agent
1.6 Configure Zabbix firewall
Allow Zabbix ports 10050 (Zabbix server side) and 10051 (zabbix agent side)
# ufw allow 10051/tcp
# ufw reload
2. Running Zabbix Web Installer
Zabbix Web Installer can be accessed via "server IP/zabbix" or "domain/zabbix".
Open a web browser and enter "http: //[your-server-IP_Address]/zabbix".
The following screen will appear.
Click [ Next step ].
After confirming that all requirements are OK, click the [ Next step ]
Enter the information you have set in the "Database name", "User" and "Password" fields.
Check time zone Check if you are in your own time zone
Leave as default, "name" is optional and can be left blank
Confirm "Host localhost" and "Port 10051
Reconfirm settings If information is correct, click "Next step".
When the installation is successfully completed, the following page will appear. Click "Finish
You will be redirected to Zabbix login page
After successful login you will see the following screen (Zabbix Dashboard).
3. administrator password change, administrator email address settings
Change the default administrator password for security purposes
Also, set up the administrator's email address.
Once the above dashboard is displayed, continue
⑤[Select "Email" in the "Type" field, enter the administrator's email address in the "Send to" field, and click the "Add" button.
⑥Click the "Update" button to complete registration.
4.Monitoring Host Configuration
①Log in to the Zabbix administration site and select Configuration - Hosts in the left pane.
In the right pane you should see the local host with Zabbix Agent installed, check it and click the Enable button. (Currently you should see the zabbix server itself)