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/02 Report--
1. Download the binary installation package
Cd / home/work/go/src/github.com/open-falcon wget https://dl.cactifans.com/open-falcon/falcon-mail-provider.tar.gzmkdir-p falcon-mail-providertar zxvf falcon-mail-provider.tar.gz-C falcon-mail-providercd falcon-mail-provider
2. Configuration file modification
{"debug": true, "http": {"listen": "0.0.0.0 listen", "token": ""}, "smtp": {"addr": "smtp.qiye.163.com:25", "username": "xxamp@xxamp.com", "password": "youpassword", "from": "xxamp@xxamp.com" "tls": false, anonymous: false, "skipVerify": true}}
3. Test configuration
. / control start [root@mgr falcon-mail-provider] #. / control tail2019/09/18 11:46:00 config.go:71: load configuration file cfg.json successfully2019/09/18 11:46:00 http.go:25: http listening 0.0.0.0 control tail2019/09/18 4000 [root@mgr falcon-mail-provider] # curl http://127.0.0.1:4000/sender/mail-d "tos=xingzhenxiang@qq.com,xingzhenxiang@163.com&subject=xx&content=yy" success [root@mgr falcon-mail-provider] #
4. Configure the configuration file cfg.json of the alarm module, modify the "mail": "url of the http://127.0.0.1:4000/sender/mail" option and restart
Sed-I's # http://127.0.0.1:10086/mail#http://127.0.0.1:4000/sender/mail#g' alarm/config/cfg.json [root@mgr open-falcon] # cat alarm/config/cfg.json {"log_level": "debug", "http": {"enabled": true, "listen": "0.0.0.0V9912"} "redis": {"addr": "127.0.0.1 maxIdle", "maxIdle": 5, "highQueues": ["event:p0", "event:p1", "event:p2"], "lowQueues": ["event:p3", "event:p4" "event:p5", "event:p6"], "userIMQueue": "/ queue/user/im", "userSmsQueue": "/ queue/user/sms", "userMailQueue": "/ queue/user/mail"}, "api": {"im": "http://127.0.0.1:10086/wechat"," "sms": "http://127.0.0.1:10086/sms"," mail ":" http://127.0.0.1:4000/sender/mail", "dashboard": "http://127.0.0.1:8081"," plus_api ":" http://127.0.0.1:8080", "plus_api_token": "default-token-used-in-server-side"}, "falcon_portal": {"addr": "root:@tcp (127.0.0.1 root:@tcp 3306) / alarms?charset=utf8&loc=Local", "idle": 10, "max": 100}, "worker": {"im": 10, "sms": 10 "mail": 50}, "housekeeper": {"event_retention_days": 7, "event_delete_batch": 100}} [root@mgr open-falcon] # / open-falcon restart alarm
5. Configure alarm template
5.1 enter the name of the template in the red box and click +
5.2 fill in the content
6. Configure monitoring template and hostgroup association
6.1
6.2
6.3
7. Alarm view is not resumed. It will take a few minutes for binding to be completed. It is recommended to check it in 10 minutes.
8. Email message. Xx is the test email message.
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.