In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
1. First set up a monitoring item, for example, I want to monitor the httpd service on 192.168.0.14
First create a global macro and define the port of the http. The reason for using the macro is that if the host behind the template modifies the port, you only need to change the value of the macro. Macros can be understood as variables.
two。 Create a new trigger
Stop the httpd service
You can see that the trigger has been triggered normally.
3. Build a new alarm medium, and I'll use email here.
Fill in the sender's mailbox configuration as required
Send a copy of the test to your own QQ Mail
4. Create a new account or configure the admin account with alarm media (that is, bind the sending mailbox)
Here I use the default admin account, because of the test, I found that the new account has a BUG, and the action log cannot be recorded later.
5. Define the action (automatically try to start httpd again after the port is closed and send alarm messages, etc.)
The first action.
The second action
Before configuring to recover the contents of the message
6. View Test
Deliberately shut down the httpd service first.
We see that the trigger detects that the http service is down, performs the first step, sends the first server failure alarm email to the administrator, and starts a remote command after waiting for one minute (this is defined by us, if there is no waiting time). After the remote command is sent, the httpd service is started successfully, and the trigger detects that the httpd has changed from a suspended state to a living state. Another email is sent that the server is back to normal, which completes the small function of zabbix's simple monitoring and repairing application.
Take another look at the information in the action log (report > action log)
Looking at the recipient's email, I use my own QQ Mail here.
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.