Excellent, it worked. How can I get this to work using googletalk. I passed the same parameters but this is the error I got.<div><br class="webkit-block-placeholder"></div><div><div>/usr/local/bin/notify_via_jabber <a href="mailto:emailaddress@gmail.com">emailaddress@gmail.com</a> "I am alive"</div>
<div>Cannot connect (Invalid argument).</div><div><br class="webkit-block-placeholder"></div><div>These were the settings in my notify_via_jabber file</div><div><br class="webkit-block-placeholder"></div><div><div>use constant RECIPIENT => $ARGV[0];</div>
<div>use constant SERVER => '<a href="http://talk.gmail.com">talk.gmail.com</a>';</div><div>use constant PORT => 5222;</div><div>use constant USER => emailaddress';</div><div>use constant PASSWORD => 'password';</div>
<div>use constant RESOURCE => 'resource';</div><div>use constant MESSAGE => $ARGV[1];</div><div>use constant MAXWAIT => 2 ;</div><div><br class="webkit-block-placeholder"></div><div>Am I doing anything wrong?</div>
<div><br class="webkit-block-placeholder"></div></div><div><br class="webkit-block-placeholder"></div><br><div class="gmail_quote">On Wed, Mar 19, 2008 at 1:48 PM, Wojciech Kocjan <<a href="mailto:wojciech@kocjan.org">wojciech@kocjan.org</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Dnia 19-03-2008 o 11:31:28 Alex Dehaini <<a href="mailto:alexdehaini@gmail.com">alexdehaini@gmail.com</a>> napisał(a):<br>
<div class="Ih2E3d">> How can I test it using the commandline and see the debugging output?<br>
<br>
</div>Hi,<br>
<br>
You need to:<br>
1/ Change username and password in the script<br>
(you'll need a separate account for your Nagios notifications)<br>
<br>
2/ Make sure you have authorized your normal and nagios notifications<br>
account - in other words run 2 copies of your favorite Jabber client, add<br>
and authorize yourself both ways and make sure that you can send messages<br>
both ways.<br>
<br>
2/ Run;<br>
./notify_via_jabber <a href="mailto:your.id@your.jabberserver.com">your.id@your.jabberserver.com</a> "I am alive!"<br>
<br>
This should be a good test.<br>
<br>
You probably noticed the script doesn't have much debugging options ;)<br>
<br>
--<br>
<font color="#888888">Wojciech Kocjan<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Alex Dehaini<br>Developer<br>Site - <a href="http://www.alexdehaini.com">www.alexdehaini.com</a><br>Email - <a href="mailto:alexdehaini@gmail.com">alexdehaini@gmail.com</a>
</div>