Adding MSN notifications to Argus
I am a user of Argus as a monitoring software. Since it's very flexible and easy to extend, I wanted to add MSN alerts, the same way I had added SMS alerts a while ago. It was easier than I thought!
Install msnlib
-
Install the example msnbot, modified so do_work is like this:
def do_work(): """ Here you do your stuff and send messages using m.sendmsg() This is the only place your code lives """ # wait a bit for everything to settle down (sync taking efect # basically) time.sleep(15) msg=sys.stdin.read() for d in sys.argv[3].split('+'): print m.sendmsg(d,msg) # give time to send the messages time.sleep(30) # and then quit quit()
-
Define a custom notification in argus like this:
Method "msn" { command: /usr/local/bin/msnbot alerts@mycompany mypass %R >/tmp/XXX 2>&1 send: %M\n }
-
Wherever you want MSN notifications, add this (on notify or escalate directives, using as many guys MSN addresses as you need):
msn:admin1@hotmai1.com+admin2@hotmai1.com
That's it.
this is really interesting viewpoint on the subject i might add
Man ... Beautiful . Amazing ... I will bookmark your website and use the your RSS feed also
nice