Click here for "Safe Air Conditioner Repair and Proper Freon Recovery".(Japanese Version)

Ubuntu Server22.04 ; Zabbix6 Install

Installation of 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/MariaDB as a database server, and a web server such as Apache or Nginx.
In this case, we will assume that all of the following conditions have already been configured.

Install Zabbix 6.x server, frontend and agent

①Install repository
Setup Zabbix 6.x repository and install Zabbix Server.
Install Zabbix Agent for the monitored hosts so that Zabbix Server itself can be monitored at the same time.

Create database and user for Zabbix

Create database schema for Zabbix server.
Login to MySQL server as root and create MySQL database (e.g. my_zabbix_db), user (e.g. zabbix_user) and password (e.g.?WWabcd123)

Load Zabbix default schema for database

Update Zabbix configuration

Edit Zabbix server configuration file /etc/zabbix/zabbix_server.conf and update database configuration for Zabbix server to connect to database

Monitor Zabbix server itself

Restart Zabbix Server and Agent Deamon so that they are ready to run at system startup.

 PHP Configuration

Configuration Reflection

Configure Zabbix firewall

Allow Zabbix ports 10050 (Zabbix server side) and 10051 (zabbix agent side)

Running Zabbix Web Installer

Zabbix Web Installer can be accessed via "your-server-ip/zabbix" or "domain/zabbix".
Open a web browser and enter "http: //[your-server-IP_Address]/zabbix".
You will get the following screen. [ Next step]. For some reason Zabbix 7.0 will start up, but I don't know why.

After confirming that all requirements are OK, click [ Next step]

Enter the information you have set in the "Database name", "User", and "Password" fields, and click [ Next step ].

Enter any name for "Zabbix server names" and select Asia/Tokyo for time zone.
Make sure that you are in your own timezone and click [ Next step ].

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

Log in using the following default credentials
Username: Admin
Password: zabbix


After successful login you will see the following screen (Zabbix Dashboard).

Various settings of Zabbix

Change Admin Password

Change the default administrator password for security purposes

①Select [Users] - [Users] in the left pane and click [Admin] in the right pane

②[Change paddword] click

③Current password : Enter default password zabbix
Enter the password you wish to change and click Update.

The following will be displayed and when you click "OK", you will be taken to the login authentication screen again, so log in with the changed password.

Monitoring Host Configuration

①Log in to Zabbix administration site and select Data collection - Hosts in the left pane. In the right pane you should see local hosts with Zabbix Agent installed, check them and click on the Enable button. (Currently only the zabbix server itself should be shown).

②[Status] will change to [Enabled] and the system will be monitored. Since the template for Linux is set by default, this is all that is needed to monitor major items such as CPU usage.

③Host name will be registered as Zabbix server by default, but it should match [Hostname=***] set in /etc/zabbix/zabbix_agent2.conf. Click on [Zabbix server], make changes and click on [Update] button.

Host nameがLepardに変わっています

After some time has passed, various data will be collected and the status of the server can be checked as follows.
On the left side, click Monitoring > Hosts
Click Lepard Select [Grahs]

The following monitoring status screen will appear

Add monitored hosts

Add the following servers to the list
OS : Debian12
IP address : 192.168.11.100

1.Configuration on the server you want to monitor

1.1 Install Zabbix Agent on the server you want to monitor

1.2.Edit zabbix-agent configuration file

1.3 Configure firewall on Zabbix-agent side

Allow Zabbix ports 10050 (Zabbix server side) and 10051 (zabbix agent side)

2. Configuration in Zabbix WEB UI

Log in to the Zabbix administration site, select [Datacollection] - [Hosts] in the left pane and click the [Create Host] button at the top of the right pane.

Enter a hostname in the [Hostname] field.

 Click the [Select] button to the right of the [Templates] item.

Click [Select]

Select [Templates/Operating systems]

Select [Linux by Zabbix agent active] 

Under [Host groups] click [Select].

Select [Linux servers]

Under [Interfaces], click [Add] [Agent]

Enter the [IP address] and [DNS name] of the monitored server and click [Update].

New monitored servers are registered.

Copied title and URL