The conventional thing in a monitoring environment is to notify problems to your staff over E-Mail. Other than E-Mails also SMS are a very common notification type. But is this all we can offer to notify people about problems in our IT?
Obviously, there is more than that. Two very handy examples are:
- Notifications over the Telegram App (CLI)
- Notifications over the Office 365 Web API (Microsoft Teams)
As you are most probably aware, the WhatsApp-similar application “Telegram”, allows you to send messages to your contacts, groups and also channels. Other then WhatsApp, Telegram has an installable command line interface (CLI) through which you may script the sending of messages from a computer. You have to download and install the Telegram binaries on your monitoring server. After that, you define the notification command in the monitoring in this way:
Host Notification: telegram-cli -W -e "msg $CONTACTEMAIL$ Host '$HOSTNAME$' is $HOSTSTATE$ - Info: $HOSTOUTPUT$ - Time: $SHORTDATETIME$"
Service Notification: telegram-cli -W -e "msg $CONTACTEMAI$ NetEye - $NOTIFICATIONTYPE$ - $SERVICEDESC$ - $HOSTNAME$ - $HOSTADDRESS$ - $SERVICESTATE$ - $SHORTDATETIME$ - $SERVICEOUTPUT$"
Obviously before being able to do this, you have to register your monitoring host as a Telegram sender (the same as you would do it on your smartphone). For this you can use the same phone number you use for sending the SMS’s.