Different notifications
Janet Post
Janet.Post at excapsa.ca
Thu May 31 14:15:08 CEST 2007
Hello.
I have a similar configuration at my office. The trick is all in how
you set up the contacts. Set up your contacts with the notification
levels that they require separately, and than put them in a group
together, something like this:
Define contact {
Contact_name User-Email-Warn
Service_notification_options w,r
Service_notification_commands notify-by-email
...}
Define contact {
Contact_name User-SMS-Critical
Service_notification_options c
Service_notification_commands notify-by-sms-internet
...}
Remember that both of those contacts are the SAME user, but one gets
only warning (and recovery's) by email, and the other gets only
criticals by sms. Now you put both entries for this user into one
contact group:
Define contactgroup{
Contactgroup Email-and-SMS
Members User-Email-Warn,
User-SMS-Critical
...}
Hope this helps.
Janet.
________________________________
From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of shacky
Sent: May 31, 2007 6:56 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Different notifications
Hi.
I configured Nagios 2.9, but I have some doubts about the notifications.
I need some different types of notifications:
- by e-mail
- by SMS by Internet
- by SMS by a GMS modem
I created 6 commands (notify-by-email, host-notify-by-email,
notify-by-sms-internet, host-notify-by-sms-internet,
notify-by-sms-modem, host-notify-by-sms-modem).
The problem is that not all services have to use all 3 notifications.
Some services have to use the e-mail notification and never use the SMS
notification, other services have to use the e-mail notification for all
error states and the SMS notification only for critical errors and other
services have always to use the e-mail and SMS notifications for all
errors.
How to make this quite strange configuraton?
Thank you very much for your help!
Bye.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070531/1af2c413/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
-------------- next part --------------
_______________________________________________
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