I tried Linux (CentOS 7) life and death monitoring (Ping) with monitoring server Zabbix

Introduction

The procedure for setting and checking the operation of life and death monitoring in Zabbix 4.4 is explained. Detailed settings in Zabbix are omitted here.

environment

--Host OS: Windows10 --Guest OS: CentOS7 x 2 --Monitoring server: Host name zabbix (IP address: 192.168.33.10) --Monitored server: Host name webserver (IP address: 192.168.33.20) --How to build a virtual machine: VirtualBox, Vagrant

Procedure (overview)

  1. Add a host to be monitored by Zabbix
  2. Apply template to monitored host in Zabbix
  3. Set the notification email address in case of failure in Zabbix
  4. Operation check (Zabbix management screen, email notification)

Procedure (details)

1. Add a host to be monitored by Zabbix

Zabbix host indicates the target to be monitored. In Zabbix, a host must belong to at least one host group, so create a group and make the host belong to it.

Add the monitored server webserver (192.168.33.20) from [Settings]-> [Host] of Zabbix.

2. Apply template to monitored host in Zabbix

A "template" is a collective definition of conditions and rules required for monitoring. Zabbix comes with a number of templates as standard. Of course, it is also possible to create individually customized templates.

This time, we will apply the template "Template Module ICMP Ping" that is prepared as standard and is most suitable for life and death monitoring to the web server. image.png

3. Set the notification email address in case of failure in Zabbix

Set the e-mail address you want to notify from [Administration] → [Media Type]. This time I set up Gmail.

image.png

In [Settings] → [Actions], set the execution conditions for email notification. This time, I set it so that an email notification will be sent when the "trigger severity" is "severe failure" or higher. image.png

4. Operation check (Zabbix management screen, email notification)

After completing the settings on Zabbix side, shut down the webserver on purpose and create a failure situation. In other words, it is in a state where communication from the monitoring server zabbix to the monitored server webserver is not possible (no ping response).

Confirm that Zabbix is failing

Check [Monitoring data] → [Failure]. The status is "Failure", and it was confirmed that the email notification action is working properly. image.png

Confirm that Gmail is notified of failure emails

When I checked Gmail, I was able to confirm that the failure email had arrived properly.

image.png

Summary

If you try the following things yourself, you will get an idea of the construction and operation of IT infrastructure and learn. Virtual machine construction → Monitoring server construction / monitoring settings → Operation check for failure occurrence

that's all

Recommended Posts

I tried Linux (CentOS 7) life and death monitoring (Ping) with monitoring server Zabbix
crond is dead, so talk about monitoring life and death with zabbix
AWS IoT device life and death monitoring
Build a CentOS Linux 8 environment with Docker and start Apache HTTP Server
I tried to make a periodical process with CentOS7, Selenium, Python and Chrome
I tried playing with PartiQL and MongoDB connected
I tried Jacobian and partial differential with python
I tried to operate Linux with Discord Bot
I tried to implement and learn DCGAN with PyTorch
I tried to automatically read and save with VOICEROID2
I tried adding system calls and scheduler to Linux
[CentOS 7.3] I tried bonding (active-backup) with two network interfaces.
I tried to implement Grad-CAM with keras and tensorflow
I tried to rewrite the WEB server of the normal Linux programming 1st edition with C ++ 14
I made a server with Python socket and ssl and tried to access it from a browser
I tried starting Django's server with VScode instead of Pycharm
I tried follow management with Twitter API and Python (easy)
I tried to make GUI tic-tac-toe with Python and Tkinter
[RHEL7 / CentOS7] I put in the log monitoring tool swatch and tried to notify by email
I tried fp-growth with python
I tried scraping with Python
I tried Learning-to-Rank with Elasticsearch!
I tried clustering with PyCaret
I tried to reintroduce Linux
I tried gRPC with Python
I tried scraping with python
I tried to visualize bookmarks flying to Slack with Doc2Vec and PCA
Environment construction of monitoring server Zabbix 4.4 on CentOS7 (Apache2.4 / PHP5.4 / MariaDB5.5)
I tried natural number expression and arithmetic processing only with list processing
Check server I / O device usage with the Linux iostat command
I tried to make a periodical process with Selenium and Python
I tried using PyEZ and JSNAPy. Part 4: Automate ISP setup with PyEZ and JSNAPy
I tried sending an email from the Sakura server with flask-mail
I tried to create Bulls and Cows with a shell program
I tried to easily detect facial landmarks with python and dlib
I compared hardware, software, OS, and Linux with a game console