Notification by Jabber
Ben Lisle
benl at flowcom.com.au
Wed Dec 17 00:54:10 CET 2003
I usually hate answering these questions with "read the FAQ", but
Nagios' is really helpful.
Anyway, check the FAQ, here -
http://www.nagios.org/faqs/viewfaq.php?faq_id=33&expand=false&showdesc=true
Download the script they've linked to their, modify it with your
details, then add a new definition in misccomands.cfg.
On Wed, 2003-12-17 at 10:44, Matt Cowger wrote:
> On that note..has anyone figured out how to do notifications via AIM?
>
> Ben Lisle wrote:
> > 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
-------------------------------------------------------
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