[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: monit and xmpp notifications

From: Jan-Henrik Haukeland
Subject: Re: monit and xmpp notifications
Date: Wed, 1 Dec 2004 15:57:04 +0100

On Dec 1, 2004, at 3:34 PM, Dirk-Jan C. Binnema wrote:

I use monit to manage some servers, but in addition to email alerts, I
would also like to be able to send IM (xmpp) alerts. I wrote a little
program called sendxmpp ( to
send such message (similar to mail(1)).

Now I'd like to know if I could integrate this somehow with monit. I
think it would be a winning combination. Of course I can use the email
alerts and procmail, but there should be a more elegant way?

This should be easy, simply add an exec statement in one of the if-tests. Upon an error monit will call the program defined in the exec statement *and* send an email. Such as in this example:

 check file httpd.conf path /usr/local/apache/conf/httpd.conf
     if changed sha1 checksum
        then exec "/usr/local/sendxmpp"

This brings up another idea. Should we create a way to add alert methods to monit based on the same delegation-pattern we use for protocol-tests? Okay, you _can_ do it by utilizing exec as shown above, but a more embedded option could be nice to have.

I.e. a way to write a small C-stub to delegate the alert functionality. Not sure how this interface will look in practice but I think the idea is interesting since there are lots of other alert transport mechanisms than SMTP today. I'm interested to know what others think about such an idea. What should be the input and output parameters to such a stub etc?

Jan-Henrik Haukeland
mobile +47 97141255

reply via email to

[Prev in Thread] Current Thread [Next in Thread]