Blog |Follow Nick on Twitter| About
 

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.

  1. Create a new twitter account, something like "mymonitbot" and make the feed private.
  2. Set your "normal" twitter account to follow "mymonitbot"
  3. Now signup for an account with twittermail and give them mymonitbot's credentials.
  4. Edit /etc/monit.conf, and change set alert to your new twittermail e-mail address
    If necessary edit %0A/monit.html#alert_message_layout>monit's message layout
  5. restart monit

After a few seconds you'll get a tweet from your monit bot saying that monit was re-started :)

 

 
Nick Bettison ©