Due to the same problem every day, N + alerts are triggered, which wastes short-message Resources. Therefore, according to the information on the Internet, the nagios alarm frequency is changed as follows: add escalations under/usr/local/nagios/etc/object at www.2cto.com. cfg configuration file, content: # host...
Every day, due to the same problem, N + alerts are triggered, which wastes short-message Resources. Therefore, according to the information on the Internet
The alarm frequency is changed by adding the escalations. cfg configuration file under/usr/local/nagios/etc/object at www.2cto.com with the following content: # host alarm define hostescalation {
Host_name 1.1.1.1, 1.1.1.2 # host names, separated by commas
First_notification 3 # Change the alarm frequency after the third alarm, that is, from the fourth alarm
Frequency will change
Last_notification 0 # alarm frequency reply after n, 0 is not restored
Icationication_interval 3 # Change the alarm interval to 3 minutes after the change
Contact_groups test_admin # notify the Contact Group
}
# Service alert www.2cto.com
Define serviceescalation {
Host_name 1.1.1.11.1.1.1, 1.1.1.2
Service_description PING
First_notification 3
Last_notification 0
Icationication_interval 3
Contact_groups test_admin
} After saving the file, go to nagios. add the following content to cfg: pai_file =/usr/local/nagios/etc/objects/escalations. after cfg is saved, reload the configuration file: www.2cto.com/sbin/service nagios reload to view the change in alarm frequency. The interval between the three alarms sent before is 5 minutes (the interval between the second and the first is 6 minutes.
Due to the time of the email system), the interval from the fourth alarm is changed to 3 minutes.
The time is relatively short, and it is enough to verify that the configuration takes effect. You can adjust the alarm interval according to your needs. I am currently the first three normal alarms, and the fourth alarm interval is 10.
An hourly alarm is triggered.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service