In a bid to reduce the size of my inbox, I’ve decided to move monit alerts to twitter.
Sadly monit doesn’t support any kind of alert scripting, but the solution is simple.
- Create a new twitter account, something like “mymonitbot” and make the feed private.
- Set your “normal” twitter account to follow “mymonitbot”
- Now signup for an account with twittermail and give them mymonitbot’s credentials.
/etc/monit.conf, and change set alert to your new twittermail e-mail address
If necessary edit monit’s message layout
- restart monit
After a few seconds you’ll get a tweet from your monit bot saying that monit was re-started