problems with the notify-via-jabber script
Eric Doutreleau
Eric.Doutreleau at int-evry.fr
Thu Oct 28 16:29:30 CEST 2004
hi
i'm trying to use the script notify-via-jabber i found in the FAQ in
nagios.org.
when i launch the script in command line it works perfectly and the
users are notified.
but it doesn't work through nagios.
i see that the notifications is sent in the history of notifications but
i got no messages in jabber.
here is my configuration
contacts.cfg
define contact{
contact_name jabber-rezo
alias rezo jabber
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,u,r
service_notification_commands notify-by-jabber
host_notification_commands host-notify-by-jabber
email grocanar at petra.int-evry.fr
}
here is my misccommand.cfg
define command{
command_name notify-by-jabber
command_line /usr/lib/nagios/notify/notify_via_jabber
$CONTACTEMAIL$
"***** Nagios *****\n\nNotification Type:
$NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost:
$HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time:
$DATETIME$\n\nAdditional Info:\n\n$OUTPUT$"
}
define command{
command_name host-notify-by-jabber
command_line /usr/lib/nagios/notify/notify_via_jabber
$CONTACTEMAIL$
"***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost:
$HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo:
$OUTPUT$\n\nDate/Time: $DATETIME$\n"
}
has someone succeed in making work this script?
thanks in advance for any help
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
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