Notification by Jabber

Ben Lisle benl at flowcom.com.au
Wed Dec 17 00:19:49 CET 2003


Problem solved.  User error.  I obviously have to cut down on my crack
smoking each morning! :)

On Wed, 2003-12-17 at 08:46, Ben Lisle wrote:
> Hi,
> 
> I've gone through the FAQ and I'm using the Perl script for Jabber
> notifications.  It works wonderfully through the command line, however I
> think I have my misccommands.cfg a little screwed up as I'm not getting
> any host/server notifcations sent to my via Jabber.  Can someone have a
> quick look at the below information and tell me if it's right, or point
> me in the right direction?
> 
> Thanks!
> 
> Ben
> 
> ------
> 
> 
> # misccommands.cfg
> 
> # 'notify-via-jabber' command definition
> define command{
> 	command_name	notify-via-jabber
> 	command_line	 /usr/bin/printf "%b" "***** Nagios  *****\n\nNotification
> Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress:
> $HOSTADDRESS$\nInfo: $OUTPUT$\n\nDate/Time: $DATETIME$\n" |
> /opt/notify-via-jabber noc at jabber1.flow.com.au "Host $HOSTSTATE$ alert
> for $HOSTNAME$!" $CONTACTEMAIL$"
> 	}
> 
> # contacts.cfg
> 
> define contact{
> 	contact_name			noc-engineers
> 	alias				NOC Engineers
> 	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-via-jabber
> 	host_notification_commands	notify-via-jabber
> 	email				nocstaff at flowcom.com.au
> 	}
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
> Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&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



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&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