Notifications

Carroll, Jim P [Contractor] jcarro10 at sprintspectrum.com
Tue Dec 3 18:54:45 CET 2002


I'm doing something similar here:  warning/critical/recover to all the admin
e-mail accounts, but only critical/recover to the virtual pager.
 
Basically you have to create separate contacts/contactgroups.  E.g.,
 
define contact{
        contact_name                    jcarro10
        alias                           Jim Carroll
        host_notification_period        24x7
        service_notification_period     24x7
        host_notification_options       d,r
        service_notification_options    c,w,r
        host_notification_commands      host-notify-by-email
        service_notification_commands   notify-by-email
        email
<mailto:jcarro10 at sprintspectrum.com> jcarro10 at sprintspectrum.com
        }

define contact{
        contact_name                    pager-devunix
        alias                           DEVUNIX on-call pager
        host_notification_period        24x7
        service_notification_period     24x7
        host_notification_options       d,r
        service_notification_options    c,r
        host_notification_commands      host-notify-by-epager
        service_notification_commands   notify-by-epager
        pager                           pager-devunix
        }

and then the "pager-devunix" on the "pager" definition line is defined in
/etc/aliases, thusly:
 
pager-devunix:  :include:/home/pager/oncall/DEVUNIX

which in turn resolves to the actual e-mail address for the pager.
 
(I have a script which modifies the DEVUNIX file through a simple menu.)
 
The virtual pager info was more than you bargained for, but hopefully you
can see how I split out the e-mails from the pages.
 
jc
 

-----Original Message-----
From: Matthieu Parisot [mailto:mat at avedya.com]
Sent: Tuesday, December 03, 2002 8:49 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Notifications


Hi list,
I'm using nagios-1.0b6, and I wonder if there is a way to associate service
or host status to differents contact targets;
For exemple, I would like to be notified by mail if the service is WARNING,
UNKNOWN or CRITICAL, and by SMS only if it's critical...
If I write a patch to nagios to do that, will it have a chance to be
integrated?
It's allready possible to do it using event handlers, but we loose contacts,
contacts groups and pre-defined command to alert via mail or SMS,
and we are forced to duplicate stuff. 
Did I miss something ?
Thanks for your futur answers....
 
Matthieu
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20021203/3ceb9612/attachment.html>


More information about the Users mailing list