How to connect a new host to Zabbix monitoring server


Buy Website Traffic | Increase Website Traffic | SEO Backlinks | Alexa Ranking

Picture: Jack Wallen

You may have your Zabbix monitor up and working (The best way to set up the Zabbix enterprise-grade monitor on Ubuntu Server 16.04), and it is monitoring the host server like a boss. Now it is time to join a distant server (or a number of servers) to that monitor, so you’ll be able to watch your whole Linux knowledge middle servers from one dashboard.

How do you try this?

It is a mixture of command line and web-based GUI work. I’ll show this course of to attach on an Ubuntu 16.04 server to the Zabbix monitor. I’ll assume you have already got the Zabbix monitor up and working (each machines are on the identical community) and that you’ve got entry to an account with sudo privileges. With that in hand, let’s make this occur.

SEE: Fast glossary: Software program-defined networking (Tech Professional Analysis)

Putting in the Zabbix agent

The very first thing that have to be accomplished is the set up of the Zabbix agent. Log into the distant machine you need monitored by Zabbix. Obtain a file that may set up the repository with the command:


Set up that file with the command:

sudo dpkg -i zabbix*all.deb

Set up the agent with the next instructions:

sudo apt-get replace
sudo apt-get set up zabbix-agent

Add the pre-shared Zabbix key

Zabbix helps certificate-based encryption. Nevertheless, for simplicity sake, we’ll use the pre-shared keys to safe our connection between agent and server. To do that, generate a pre-shared key with the command:

sudo sh -c "openssl rand -hex 32 > /and many others/zabbix/zabbix_agentd.psk"

Show the important thing with the command:

cat /and many others/zabbix/zabbix_agentd.psk

You may want to repeat that key, because it’ll be pasted into the web-based GUI later.

Configure the Zabbix agent

Subsequent comes the configuration of the Zabbix agent. All configuration choices are present in a single file. Challenge the command:

sudo nano /and many others/zabbix/zabbix_agentd.conf

The primary setting to alter is:

Change that to:


the place ZABBIX_MONITOR is the IP tackle of the Zabbix Monitor server.

Scroll down till you see the TLSConnect part. On the backside of that part, add the next:


Subsequent find the TLSAccept part and add the next to the underside:


Now find the TLSPSKIdentity part and add the next to the underside:

TLSPSKIdentity=PSK zero01

Lastly, find the TLSPSKFile part and add the next to the underside:

TLSPSKFile=/and many others/zabbix/zabbix_agentd.psk

Save and shut that file. Restart and allow the Zabbix agent with the instructions:

sudo systemctl begin zabbix-agent
sudo systemctl allow zabbix-agent

Including the host to the Zabbix Monitor

Log into your Zabbix server and click on on the Configuration tab after which the Hosts tab. Click on the Create host button close to the highest proper nook. Within the ensuing web page, (Determine A) change the Host title and IP ADDRESS sections to match the data on your distant server.

Determine A

Figure AFigure A

Including the brand new host to the Zabbix server.

Add the host to a gaggle (choose the Linux Servers group and click on the left-pointing arrow). Subsequent, click on on the Templates tab and sort Template OS Linux within the search subject after which click on Add to incorporate this template. Click on on the Encryption tab and choose PSK for each Connections to host and Connections from host (Determine B).

Determine B

Figure BFigure B

Configuring encryption for the distant server.

Within the PSK Id part, enter PSK zero01 and within the PSK subject, paste the PSK key you copied earlier. Lastly, click on the Add (or Replace) button so as to add the host.

Your distant host ought to present up with the whole lot inexperienced (indicating all is properly and the connection is encrypted (Determine C).

Determine C

Figure CFigure C

All is properly with our new connection.

All set

Your Zabbix Monitor is now conserving monitor of the distant server. You’ll be able to head to the dashboard and begin monitoring that server for points. Add your whole knowledge middle Linux servers as hosts to Zabbix, and you’re all set to observe from a single location.

Additionally see

Buy Website Traffic | Increase Website Traffic | SEO Backlinks | Alexa Ranking

Source link