Setting up e-mail notifications.
Carroll, Jim P [Contractor]
jcarro10 at sprintspectrum.com
Wed Oct 16 18:01:51 CEST 2002
My $0.02:
- e-mail notification works quite well
- pager notification works quite well
- these are defined out-of-the-box in misccommands.cfg, which are in turn
leveraged in contacts.cfg
As far as sending alerts via ICQ/MSN/Yahoo Messenger/AIM, you basically have
to figure out how to pass a message from the command line.
I'm having a quick look at RH Linux 7.3 right now, and it includes micq, a
command line interface to ICQ. I've not played with it, so YMMV. If it
doesn't do exactly what you want, you might want to try wrapping it in an
expect script.
Other than that, you might want to browse Sourceforge or Freshmeat to see
what possible AIM/ICQ/MSN/YM/etc programs exist which support input from the
command line. (If I personally saw benefit to this approach, I'd be
investigating it. But paging/SMS work fine for what I/we need. :)
jc
> -----Original Message-----
> From: Frank.Michael at star21.de [mailto:Frank.Michael at star21.de]
> Sent: Wednesday, October 16, 2002 8:41 AM
> To: nagios-users at lists.sourceforge.net
> Subject: AW: [Nagios-users] Setting up e-mail notifications.
>
>
> i think you have to setup a contact in contacts.cfg and add
> this contact
> in a contactgroup.cfg and at least you add the group to your
> service.cfg! this is the way how email noticfication works at
> my nagios.
>
>
> # contact.cfg
> # 'michael email' contact definition
> define contact{
> contact_name michael
> alias Admin
> 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-email
> host_notification_commands host-notify-by-email
> email frank.michael at star21.de
> }
>
> #contactgroup.cfg
> # 'nagios-admins' contact group definition
> define contactgroup{
> contactgroup_name nagios-admins
> alias Nagios Administrators
> members michael
> }
> # service.cfg
> # Service definition
> define service{
> use generic-service ; Name
> of service template to use
> host_name <yourhost>
> service_description PING
> is_volatile 0
> check_period 24x7
> max_check_attempts 3
> normal_check_interval 5
> retry_check_interval 1
> contact_groups nagios-admins
> notification_interval 240
> notification_period 24x7
> notification_options c,r,u,w
> check_command check_ping!100.0,20%!500.0,60%
> }
>
> -----Ursprüngliche Nachricht-----
> Von: Jan-Hendrik Palic [mailto:jhp at addix.net]
> Gesendet: Mittwoch, 16. Oktober 2002 15:13
> An: nagios-users at lists.sourceforge.net
> Betreff: Re: [Nagios-users] Setting up e-mail notifications.
>
>
> On Wed, Oct 16, 2002 at 03:01:47PM +0200, Jan-Hendrik Palic wrote:
> >Hi ...
> >
> >On Wed, Oct 16, 2002 at 02:48:47PM +0200, Wibo Lammerts wrote:
> >>What would be a good way to set up notification? Does anyone have
> experience
> >>with notification through ICQ / Messenger / Pager? Any pitfalls?
> >
> >Email-Notification is easy to use. Use the standard config in
> >$PATH_TO_NAGIOS_INSTALL/etc/checkconfig.cfg for
> notification-by-email.
>
> I mean checkcommands.cfg ... sorry.
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: viaVerio will pay you up to
> $1,000 for every account that you consolidate with us.
> http://ad.doubleclick.net/clk;4749864;7604308;v?
> http://www.viaverio.com/consolidator/osdn.cfm
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
>
>
>
> ***********************************************************
> Oktober-Aktion bei STAR 21 NETWORKS
> ***********************************************************
>
> INTERNET ACCESS 3 und 6 Mbit/s vier Wochen gratis
>
> STAR 21 NETWORKS bietet allen Kunden, die sich im Monat
> Oktober für 3 oder 6 Mbit/s INTERNET ACCESS von
> STAR 21 NETWORKS entscheiden, die ersten vier Wochen
> Nutzung gratis.
>
> Alle weiteren Infos zu dieser Aktion unter:
> www.star21networks.de <http://www.star21networks.de/> , info at star21.de
> <mailto:info at star21.de> oder ueber
> unsere Service Hotline Tel. 0 800 - 1 00 73 40.
>
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by: viaVerio will pay you up to
> $1,000 for every account that you consolidate with us.
> http://ad.doubleclick.net/clk;4749864;7604308;v?
> http://www.viaverio.com/consolidator/osdn.cfm
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
>
-------------------------------------------------------
This sf.net email is sponsored by: viaVerio will pay you up to
$1,000 for every account that you consolidate with us.
http://ad.doubleclick.net/clk;4749864;7604308;v?
http://www.viaverio.com/consolidator/osdn.cfm
More information about the Users
mailing list