IM notification
Alex Dehaini
alexdehaini at gmail.com
Wed Mar 19 15:00:06 CET 2008
Excellent, it worked. How can I get this to work using googletalk. I passed
the same parameters but this is the error I got.
/usr/local/bin/notify_via_jabber emailaddress at gmail.com "I am alive"
Cannot connect (Invalid argument).
These were the settings in my notify_via_jabber file
use constant RECIPIENT => $ARGV[0];
use constant SERVER => 'talk.gmail.com';
use constant PORT => 5222;
use constant USER => emailaddress';
use constant PASSWORD => 'password';
use constant RESOURCE => 'resource';
use constant MESSAGE => $ARGV[1];
use constant MAXWAIT => 2 ;
Am I doing anything wrong?
On Wed, Mar 19, 2008 at 1:48 PM, Wojciech Kocjan <wojciech at kocjan.org>
wrote:
> Dnia 19-03-2008 o 11:31:28 Alex Dehaini <alexdehaini at gmail.com>
> napisał(a):
> > How can I test it using the commandline and see the debugging output?
>
> Hi,
>
> You need to:
> 1/ Change username and password in the script
> (you'll need a separate account for your Nagios notifications)
>
> 2/ Make sure you have authorized your normal and nagios notifications
> account - in other words run 2 copies of your favorite Jabber client, add
> and authorize yourself both ways and make sure that you can send messages
> both ways.
>
> 2/ Run;
> ./notify_via_jabber your.id at your.jabberserver.com "I am alive!"
>
> This should be a good test.
>
> You probably noticed the script doesn't have much debugging options ;)
>
> --
> Wojciech Kocjan
>
--
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/20080319/dfd026aa/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-------------- 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