ERROR - Nagios XMPP Notification with Openfire

ERROR: Authorization failed: error - not-authorized

Obviously this means I am connected am communicating with the server.  So I flipped TLS variable on/off a few times.  I also turned on debug logging on my Openfire server and could see the connections.  With TLS "on" or set to "1", I received this error:

Can't use an undefined value as a HASH reference at /usr/lib/perl5/site_perl/5.8.8\
/XML/Stream.pm line 1165.

So I turned TLS off and started working with the not-authorized error.  Googled around and found the a fix that worked.  I had to edit the Protocol.pm perl module to fix the authentication error.  I found my file here...

/usr/lib/perl5/site_perl/5.8.8/Net/XMPP/Protocol.pm

and just commented out the line:

return $self->AuthSASL(%args);

Now I can annoy myself with all my Nagios alerts via IM as well as email!  Attached is the file with the text used for the commands.cfg entry and the perl script to send the notifications.