sending notifications to windows instant messe nger
Neil
neil-on-nagios at restricted.dyndns.org
Sat Jun 26 20:16:34 CEST 2004
I tried your got and the code on the website, when I try to login using my
first hotmail account, my other GUI hotmail account which is connected in
WindowsXP doesn't change the status to ONLINE. Message doesn't get sent too
but without any errors? I have even tcpdump my connection on port 1863, and
if I intentionally change my password to a wrong one, the python module
tells me incorrect password which means, it's properly working.
Any ideas?
Thanks.
Sam Terburg - Luna.nl writes:
> after reading this i got curious.
> clicking the link specified i found http://msnp.sourceforge.net/
> below is a simple script that just sends 1 message.
> i'm planning on writing a more intelligent script that can alse receive
> messages, which will be interpreted into nagios commands, so that you can
> acknowledge the critical_notification nagios just send you by simply
> replying with 'acknowledged'.
>
> the login (and sending the message) takes about 8 seconds. quite long.
> so i should probably write a client/server version.
> i'll post it to the list when i got it all working.
> but that could take a month or so. i don't have mush time.
>
> Greetings,
>
> Sam Terburg
> Luna.nl
>
>
>
> #!/usr/bin/python2.2
>
> import msnp
> import time
>
> class MsnListener(msnp.SessionCallbacks):
> def state_changed(self, state):
> if state == msnp.States.ONLINE:
> msn.start_chat('sam at luna.nl')
> def chat_started(self, chat):
> chat.send_message('a message')
> global hasSend
> hasSend=True
>
>
> msn = msnp.Session(MsnListener())
> msn.login('nagios_luna at hotmail.com', '*****')
>
> hasSend=False
>
> while not hasSend:
> msn.process(chats=True)
> time.sleep(1)
>
>
> ----- Original Message -----
> From: "Neil" <neil-on-nagios at restricted.dyndns.org>
> To: "Tedman Eng" <teng at dataway.com>
> Cc: <nagios-users at lists.sourceforge.net>
> Sent: Saturday, June 26, 2004 08:17
> Subject: [Nagios-users] Re: sending notifications to windows instant messe
> nger
>
>
>> Hi Tedman,
>>
>> I actually found the perl module but there is very few documentation about
>> it. I'm still trying to understand how it works but it's really tough.
>>
>> This is the link where I found Perl MSN module:
>> http://www.hypothetic.org/docs/msn/resources/projects.php
>>
>> If you have any more information, that will be really awesome.
>>
>> Thanks again.
>>
>>
>> Tedman Eng writes:
>>
>> > I have done so with IRC and a perl IRC module. I'm no perl monk, but
> the
>> > sample script provided with the module got me far enough to be able to
> send
>> > a message via Nagios, which is really all that's needed. There are perl
>> > modules for MSN Messenger as well, which could probably just as easily
> be
>> > adapted to send messages from Nagios.
>> >
>> >
>> >> -----Original Message-----
>> >> From: Neil [mailto:neil-on-nagios at restricted.dyndns.org]
>> >> Sent: Friday, June 25, 2004 1:03 PM
>> >> To: nagios-users at lists.sourceforge.net
>> >> Subject: [Nagios-users] sending notifications to windows instant
>> >> messenger
>> >>
>> >>
>> >> Hey guys,
>> >>
>> >> has anyone of you successfully implemented sending of
>> >> notification to a
>> >> Windows Instant Messenger? If so, can you send some links on
>> >> how I can
>> >> implement it. I found answers in Nagios FAQ but only for AOL
>> >> and Yahoo
>> >> Messenger.
>> >>
>> >> Thanks in advance.
>> >>
>> >> Neil
>> >>
>> >>
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by Black Hat Briefings & Training.
> Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
> digital self defense, top technical experts, no vendor pitches,
> unmatched networking opportunities. Visit www.blackhat.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
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.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
More information about the Users
mailing list