VOOZH about

URL: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-zabbix-to-securely-monitor-remote-servers-on-centos-7

⇱ How To Install and Configure Zabbix to Securely Monitor Remote Servers on CentOS 7 | DigitalOcean


How To Install and Configure Zabbix to Securely Monitor Remote Servers on CentOS 7

Updated on May 29, 2019
Not using CentOS 7?
Choose a different version or distribution.
CentOS 7
πŸ‘ How To Install and Configure Zabbix to Securely Monitor Remote Servers on CentOS 7

The author selected the Open Source Initiative to receive a donation as part of the Write for DOnations program.

Introduction

Zabbix is open-source monitoring software for networks and applications. It offers real-time monitoring of thousands of metrics collected from servers, virtual machines, network devices, and web applications. These metrics can help you determine the current health of your IT infrastructure and detect problems with hardware or software components before customers complain. Useful information is stored in a database so you can analyze data over time and improve the quality of provided services, or plan upgrades of your equipment.

Zabbix uses several options for collecting metrics, including agentless monitoring of user services and client-server architecture. To collect server metrics, it uses a small agent on the monitored client to gather data and send it to the Zabbix server. Zabbix supports encrypted communication between the server and connected clients, so your data is protected while it travels over insecure networks.

The Zabbix server stores its data in a relational database powered by MySQL, PostgreSQL, or Oracle. You can also store historical data in nosql databases like Elasticsearch and TimescaleDB. Zabbix provides a web interface so you can view data and configure system settings.

In this tutorial, you will configure two machines. One will be configured as the server, and the other as a client that you’ll monitor. The server will use a MySQL database to record monitoring data and use Apache to serve the web interface.

Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.

Learn more about our products

About the author(s)

πŸ‘ Timothy Nolan
Timothy Nolan
Editor
Senior Technical Editor
See author profile

Former Senior Technical Editor at DigitalOcean, fiction writer and podcaster elsewhere, always searching for the next good nautical pun! Areas of expertise include Node.js, PostgreSQL, CSS, JavaScript.

Still looking for an answer?

Was this helpful?

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Hi everyone.

I have some question about that.

ItΒ΄s necesary 2 servers for this deploy?

Hi,

I installed the server but I keep seeing β€œZabbix server is running No localhost:10051”. Any clues on how to fix that?

Thank you.

Hello,

I have a problem at mysql -uroot -p command. It works before but when I tried it again to my newly created VM, it says: -bash: mysql: command not found

I tried to look for its path using whereis mysql then i dunno what to do next… Help? :(

mysql: /usr/lib64/mysql /usr/share/mysql

– Also, do you have a tutorial on using nginx instead of apache? :D

Thank you :)

Hi everyone, Thanks for this article. I am getting such an error. Root, Database etc. All the passwords are the same. Why can not I go through this step? http://prntscr.com/fubhsp

Note:I could not run these two commands. cd /usr/share/doc/zabbix-server-mysql-3.0.4/ Run the following command to set up the schema and import the data into the zabbix database. We’ll use zcat since the data in the file is compressed.

Hi,

After configuring my zabbix server and agent according to your tutorial I am getting errors in both zabbix server and agent as shown below:

In Zabbix Server Host Configuration Page: The color of ZBX Availability is changing into red from green and getting following error message on Zabbix Active Check monitoring:

β€œGet value from agent failed: TCP successful, cannot establish TLS to ][0.0.0.0]:10050]: connection closed by peer”

In Zabbix Server Log: failed to accept an incoming connection: from [Agent IP] TLS connection has been closed during handshake::

In Zabbix Agent log: **active check configuration update from [server IP: 10051] is working again active check configuration update from [server IP: 10051] started to fail (TCP successful, cannot establish TLS to [[server IP: 10051]] SSL_connect() timed out) ** Any help would be appreciated.

Thanks.

Thank you for your tutotial. I can install Zabbix Server and Agent. But the agent cannot transfer data to server. The ZBX icon in Zabbix host is grey. And the zabbix_agentd.log is blank. What should I do next ?

I got this issue as below:

ERROR 1118 (42000) at line 1284: Row size too large (> 8126). Changing some columns to TEXT or BLOB may help. In current row format, BLOB prefix of 0 bytes is stored inline.

πŸ‘ Creative Commons
This work is licensed under a Creative Commons Attribution-NonCommercial- ShareAlike 4.0 International License.
  • Deploy on DigitalOcean

    Click below to sign up for DigitalOcean's virtual machines, Databases, and AIML products.

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and AI-native businesses

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

The developer cloud

Scale up as you grow β€” whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

Β© 2026 DigitalOcean, LLC.Sitemap.