Notifications

Matthieu Parisot mat at avedya.com
Wed Dec 4 01:07:37 CET 2002


MessageOK, got it!
I didn't got that I could play with both service_notification_options and
notification_options;
The solution is so to put :
notification_options w,u,c,r
in service definition
and
service_notification_options c,r
in contact definition;

Thanks!

  -----Message d'origine-----
  De : nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net]De la part de Carroll, Jim
P [Contractor]
  Envoyé : mardi 3 décembre 2002 18:55
  À : 'Matthieu Parisot'; nagios-users at lists.sourceforge.net
  Objet : RE: [Nagios-users] Notifications


  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                           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/20021204/a8a550ad/attachment.html>


More information about the Users mailing list