Are you wondering how many alternative ways to get notifications from your nagios/icinga exists, other than plain email messages? And what if you actually are monitoring your email or DNS infrastructure and you don’t want to use a third-party email account dedicated to our precious notices?
An alternative and effective method to deliver the short status notification is via Twitter messages, using a protected account (for privacy).
Register a new standard Twitter account and make sure to enable in the settings:
We need to install on the monitoring server a command-line Twitter client, such as Twidge:
Do the one-time configuration procedure with the user you prefer:
Move the generated configuration file from your home folder somewhere into the nagios/icinga configuration folder:
Now add two new custom commands in the nagios/icinga configuration:
1 2 3 4 5 6 7 8
Now you need to use such commands as host and service notifications, like here:
1 2 3 4 5 6 7 8 9 10
Reload and enjoy!