Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to set zabbix to send alarm repeatedly within a specified time

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Overview

Zabbix is an enterprise-level open source solution based on WEB interface that provides distributed system monitoring and network monitoring capabilities.

Zabbix can monitor various network parameters to ensure the safe operation of the server system, and provides a flexible notification mechanism to enable system administrators to quickly locate / solve various problems.

Zabbix consists of two parts, zabbix server and optional component zabbix agent.

Zabbix server can provide remote server / network status monitoring, data collection and other functions through SNMP,zabbix agent,ping, port monitoring and other methods. It can run on platforms such as Linux,Solaris,HP-UX,AIX,Free BSD,Open BSD,OS X.

Advantages of Zabbix:

1 supports distributed monitoring

(2) it has its own drawing function, which can obtain numerical data and generate graphs automatically.

3 Web configuration mode, easy to operate and use. It is very fast to add monitoring items or machines.

When there is an alarm, no matter in any interface, a small window will pop up to give an alarm, and there will be an alarm sound prompt at the same time, at the same time, you can quickly check the monitoring items.

5 it comes with rich built-in functions, and it also supports the call of scripts and nagios scripts.

6 when there is a problem, you can automatically execute the command remotely (you need to set the execution permission on agent)

Disadvantages of Zabbix:

1 it is not convenient to modify in batches, it can be assisted by database.

2 after in-depth, there are very few Chinese materials, most of the questions need to see the official documents and forums.

(3) lack of data summary function, if you can't view the average value of a set of servers, you can consider secondary development.

4 compared with cacti, zabbix has poorer drawing function and more complex traffic acquisition.

Installation and deployment

Close SeLinux

Temporary shutdown: setenforce 0

Vi / etc/selinux/config

Permanent shutdown: turn off the firewall

3.1.1. Temporary shutdown

Systemctl stop firewalld.service

The default step is 1-3, that is, from 1 to 3. Once the failure occurs, the sendEmail.sh script is executed to send an alarm email to the zabbix user and the zabbix administrator group.

If the failure lasts for 1 hour, it will only be sent 3 times, and the first 3 mailboxes will be sent to zabbix users with an interval of 0 seconds.

If you change it to 1-0, it means there is no limit. Infinite transmission

The interval is 60 seconds by default. Then 60 emails will be sent in an hour.

If you need SMS alarm, you can create a new action and select the SMS script.

You can also add new "actions", such as sending the above three alarms to zabbix.

You can also set the 30th-35th alarm (that is, 30 seconds after the alarm accident has occurred) and send it to another user.

In this way, two "actions" have been created, and I have only created one operation above

As shown below:

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report