Cloudera Manager alert script to Telegram Group
# cd /opt/cloudera/cm/
# git clone https://github.com/kholis/cm-alert-telegram
# mv cm-alert-telegram alert
# Please edit this
BOT_TOKEN="XXXXXXXX"
CHAT_ID="1234567890"
CM_PORT=7180 # Secure: 7183, NonSecure: 7180
#export https_proxy=http://proxy.corporate.com:8080
# chown -R cloudera-scm:cloudera-scm /opt/cloudera/cm/alert
- Goto
CM > Cloudera Management Service > Configuration
then search:alert.script.path
- Fill with
/opt/cloudera/cm/alert/cm2tele.sh
- Save changes.
- Restart "Alert Publisher" instances.
$ bash -x cm2tele.sh alert.json
Tested in Cloudera CM 7.x.x (CDP7)