I’ve got roughly 30 Ubuntu servers. We’ve been using monit for some time, but now our SMTP server is starting to go down the pan, and we’re not getting alerts from our servers for sometimes up to 15 minutes after the event, which is pretty pointless sometimes
as we start getting errors from other systems before the monit emails arrive.
So, what I’d like to accomplish is to remove the alert function, or replace the alert function with exec /path/to/myscript.rb.
myscript.rb is going push the messages in the first instance to slack, so we get them in real time.
The first server I’m trying this out on is a bit old though.
Ubuntu 10.04.4 LTS
Whats the easiest way to accomplish this/Is it possible?
Thanks in advance