Nagios and IM notification

Alex Dehaini alexdehaini at gmail.com
Thu Oct 25 19:39:13 CEST 2007


Andy,

If you get it working, do let me know. I was reading a book where you can
implement IM notification by installing a jabber IM server on the same box
as nagios. I will look it up and try and install it and let you know.



On 10/25/07, Andy Harrison <aharrison at gmail.com> wrote:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 10/25/07, Alex Dehaini  wrote:
> > Hi everyone.
> >
> > I have been using nagios for a couple of months and it's a wonderful
> NMS. I
> > have successfully implemented email and SMS notification. I was
> wondering
> > how I could send notifications using Instant Messaging particularly
> yahoo IM
> > service.
> >
> > Basically, what I would like to see is this. A service or host goes
> down,
> > nagios sends a notification to my yahoo IM, it appears as an offline if
> I am
> > offline or a pop-up message if I am online. Can this be done?
>
>
> I wrote one myself using the Net::OSCAR perl module, but I found that
> it was extremely unreliable.  The biggest thing is that you can't
> simply write a script that logs into aim, sends a message, then logs
> out.  You'll get dinged for logging in too many times if you connect
> more than about 8 times per hour (or something like that).
>
> Eventually what I'm going to do is write a script that runs as a
> daemon connected to aim all the time.  I'll just have a nagios
> notification script plop a message file into a directory and have the
> daemon watch for that directory for files and just send the contents
> of each file in an instant message and then delete them.
>
> It's just harder to write something that stays connected all the time.
> I don't have any experience programming for event loops like that.
>
> - --
> Andy Harrison
> public key: 0x67518262
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (GNU/Linux)
> Comment: http://firegpg.tuxfamily.org
>
> iD8DBQFHIMn1NTm8fWdRgmIRAtfQAKC7H1MPlf/a996/WmWu09PeE0j1LgCg7XHj
> NyDnTuqXgR1l1o63jhKM1M4=
> =LY/m
> -----END PGP SIGNATURE-----
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>



-- 
Alex Dehaini
Developer
Site - www.alexdehaini.com
Email - alexdehaini at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20071025/b17486f6/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list