Notifications configuration

Marc Powell marc at ena.com
Tue Mar 3 21:29:09 CET 2009


On Mar 3, 2009, at 10:45 AM, Burton Simonds wrote:

> I am setting up my first nagios instance, and I am trying to figure
> out how to set up the notifications.   I would like to have any
> service that is a warning send an email, while any service that is
> critical send a page.  I can not find in the configurations where I
> can set that threshold.
>
> Can someone please point me in the right direction?

Nagios doesn't implement that type of logic. Some options that come to  
mind --

1) Create a contact per status. contact1 that sends e-mails only does  
so for critical services; contact2 that sends pages only does so for  
warning services.
2) Have one contact but multiple notification commands  
(service_notification_commands service-notify-by-email,service-notify- 
by-pager). -by-email and -by-pager contain simple logic to only work  
for critical or warning respectively.
3) Create one contact with one notification command. That notification  
command contains the simple logic to send an e-mail or send a page  
depending on the notification type.
4) ...
5) Profit!

This kind of configuration is discussed somewhat frequently on the  
list. The archives might provide more information.

--
Marc


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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