Instal Zabbix 20
Instal Zabbix 20
Ubuntu 20.04
March 17, 2021February 12, 2021 By Winnie Ondara
| Updated March 17, 2021 | Categories Tutorials
In this guide, we show you how to install Zabbix server 5.0 on Ubuntu 20.04 LTS.
Prerequisites
Before getting started, ensure you have a running Ubuntu 20.04 instance with sudo
privileges. Also, ensure you are connected to a stable internet connection.
Step 1: Install and Setup Apache
In this step, we install the Apache webserver. First, update all Ubuntu repository lists
and install Apache packages by running the command below:
Apache service will start by default after installation. Incase not started run the following
command to start apache2.
You can verify the version of PHP installed using the following command:
$ php -v
Once the installation is complete, head over to the PHP configuration directory and edit
the /etc/php/7.4/apache2/php.ini file. Modify the parameters as shown and be sure to
set the right time zone according to your locale.
Powered By
10 Sec
Yahoo Answers to Shut Down Permanently in May
Next
Stay
$ sudo vim /etc/php/7.4/apache2/php.ini
memory_limit 256M
upload_max_filesize 16M
post_max_size 16M
max_execution_time 300
max_input_time 300
max_input_vars 10000
date.timezone = 'Africa/Nairobi'
Once installed, be sure to harden your database server using the command:
$ sudo mysql_secure_installation
Create a Zabbix user and database as shown and grant all privileges to the user as
follows:
We are using Zabbix 5.01 version which is latest at the time of writing this guide.
To synchronize the newly added repository with the system, update the package lists
DBHost=localhost
DBName=zabbix_db
DBUser=zabbix_user
DBPassword=P@ssword321
$ cd /usr/share/doc/zabbix-server-mysql
$ zcat create.sql.gz | mysql -u zabbix_user -p zabbix_db
You will be required to provide your password, so go ahead and provide it.
Now, enable the Zabbix service to start on system boot and restart service to apply the
new settings.
Zabbix also creates its own Apache configuration file /etc/zabbix/apache.conf and
creates a link to the Apache configuration directory. Use the command below to restart
Apache services.
Then reload your firewall service to apply the changes made above:
http://server-ip/zabbix
You get a welcome page shown below. Just click next to proceed to the next step.
Check to ensure that all prerequisites are fulfilled by the server and click on the Next
step button.
check-prerequisites
In the next step, provide the database credentials that you provided when creating a
database for Zabbix in Step 4 and click on the Next step button.
configure Zabbix database connection
For the Zabbix Server details, provide your server hostname and IP address, then click
the 'Next step' button again.
zabbix-server-details
You will get a pre-installation summary as shown. Ensure that all the configuration
parameters are correct then click on the Next step button.
zabbix pre-installation-summary
Once the installation has been completed successfully, you should see the screen
below:
zabbix-installation-complete
Click on the Finish button. You will be taken to Zabbix front-end login page shown
below:
Username: Admin
Password: zabbix
Zabbix-login-page
After you successfully login, you will see the Zabbix dashboard as shown below:
Zabbix-dashboard
Conclusion
And that's it! You can now begin adding your hosts to the monitoring server to keep an
eye on their performance. In this guide, we have shown you how to install Zabbix server
on Ubuntu 20.04 system.
Tags MonitoringUbuntuZabbix
How to Install
Zabbix on Ubuntu 18.04
Install Zabbix
Agent on Ubuntu 20.04
How to Install
iRedMail Server on Ubuntu 14.04/15.04
Leave a Comment
Comment
Name Email Website
We’d love to connect with you on any of the following social media
platforms.
Related Tutorials
LINUX CLI
Follow us on Linkedin
FREE NEWSLETTER
Copyright © 2021 BTreme. All rights reserved Terms of Service / Privacy / Contact