In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
Preface
If you want to ask the veteran open source monitoring tools, it is zabbix. Kubernetes+Promethues+Cloud Alert practice sharing has been shared before. This article will continue to share Zabbix + Cloud Alert practice. On Zabbix Server, install Cloud Alert probe with one click, push the alarm generated by Zabbix to Cloud Alert, and quickly realize phone call and SMS notification.
This article guide:
Zabbix Integration Cloud Alert installation steps
Analysis of the principle of Zabbix Integrated Cloud Alert
Zabbix integrated Cloud Alert troubleshooting
Summary
Zabbix Integration Cloud Alert installation steps
1. Create a zabbix application in the Cloud Alert interface and get the appkey. Those who are not registered can register on the official website.
two。 Install the CA probe on the zabbix server end
a. Change to the zabbix script directory:
Cd / usr/local/zabbix-server/share/zabbix/alertscripts
Add: check the zabbix script directory method: vi / etc/zabbix/zabbix_server.conf view AlertScriptsPath
b. Get the Cloud Alert agent package: (note: this article is written in August 2019. Future installers may be updated. Please go to the official website to help download the latest package.)
Wget https://download.aiops.com/ca_agent/zabbix/ca_zabbix_release-2.1.0.tar.gz
c. Decompress and install. tar-xzf ca_zabbix_release-2.1.0.tar.gz cd cloudalert/bin bash install.sh-fill in the appkey generated when you create a new application.
d. When prompted "installation is successful", the installation is successful.
Analysis of the principle of Zabbix Integrated Cloud Alert
On the Zabbix Server side (note: there is no need to repeat installation on the Zabbix Agent side), installing the Cloud Alert probe is essentially installing a push script on the Zabbix. After the Zabbix generates an alarm, you can actively call the Cloud Alert script and push it to the Cloud Alert.
The steps to install the Cloud Alert probe are simple: download, decompress and install the probe; enter the zabbix management / monitoring / web login address, administrator user name and password according to the prompts. In essence, the Cloud Alert probe does the following:
Create Media Type / Media types:cloudalert media
Create user group / User Groups:cloudalert group create user / Users:cloudalert, set Media, notify cloudalert media, and set all permissions: Zabbix Super Admin
Create trigger action / actions:cloudalert action (the cloudalert action will contain the appkey generated by cloudalert, which is not only the key identification of alarm, but also the bridge between Zabbix and Cloud Alert)
The above is the process of installing the probe, and you can define the alarm content pushed by tips:Zabbix to Cloud Alert. To change the right value of the Default message json string of Operations in cloudalert action, please refer to the official API document of Cloud Alert.
Zabbix integrated Cloud Alert troubleshooting
After understanding the principle, troubleshooting is actually very simple, and the integration is not successful, nothing more than the following three situations:
1. Error report during installation: Zabbix management address or username and password entered incorrectly
Solution: enter the correct address (correct example: http:// host domain name: Port / zabbix), user name, password.
two。 Error during installation: media type (Media types) or user group (User Groups) or user (Users) or action (actions) already exists
Solution 1: what exists, what can be manually deleted.
Solution 2: after understanding the principle, there is no need to reinstall the problem, just modify it. Of course, if you are lazy, please refer to solution 1.
3. No alarm will be received after integration
Solution: check the probe log: / usr/local/zabbix-server/share/zabbix/alertscripts/cloudalert/logs to solve the problem. Refer to the official investigation documents in detail.
If you don't want to read the document and don't want to find the mistake, go to the support staff directly.
Summary
This paper describes in detail the installation steps of Zabbix integrated Cloud Alert, in-depth analysis of the Cloud Alert probe, and troubleshooting solutions after problems. I hope it can help you to quickly connect the Zabbix alarm to Cloud Alert, and use the Cloud Alert platform to quickly reduce the noise, dispatch and notify the alarm (phone, SMS, Wechat, email, APP).
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.