Notify Jabber

Luke Sheldrick luke at an0key.co.uk
Sat Nov 22 08:30:09 CET 2008


Would seem, that having embedded perl enables kills the function, which makes sense. Does this sound right? can you add modules to nagios's perl?

On Sat, Nov 22, 2008 at 02:55:14AM +0000, Luke Sheldrick wrote:
> Hi,
> 
> Been trying to get this to work all night, and am stuck on where to go.
> 
> Background
> OS: FC9
> Nagios: 3.0.5-3
> Perl: 4:5.10.0-34
> Jabber Server(on remote host): Openfire 3.6.1
> 
> I've been trying to get notifications to jabber working, and using the code from http://nagios.sourceforge.net/download/contrib/notifications/notify_via_jabber slightly modified http://www.igniterealtime.org/community/message/144424 to change AuthSend to AuthIQAuth, as the jabber server I am using (OpenFire doesn't work with AuthSend).
> 
> The script is in /bin/jabbermail.pl.
> 
> My commands config has:
> 
> define command{
>         command_name    host-notify-by-jabber
>         command_line    /bin/jabbermail.pl $CONTACTEMAIL$ '$NOTIFICATIONTYPE$: $HOSTNAME$ is $HOSTSTATE$'
>         }
> 
> define command{
>         command_name    service-notify-by-jabber
>         command_line    /bin/jabbermail.pl $CONTACTEMAIL$ '$NOTIFICATIONTYPE$: $HOSTNAME$: $SERVICEDESC$ is $SERVICESTATE$'
>         }
> 
> and the contacts have been set to email &/or jabber notifications.
> 
> Running the script from the command line has no problems, however when nagios runs it, whilst nagios reports the command has run, not messages ever come through.
> 
> Hopefully someone has seen this before...
> 
> Cheers
> 
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> 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 is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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