[EMAIL PROTECTED] schrieb am 13.12.2005 13:08:32:
> i've 17 service definitions defined for various hosts and hostgroups
> since now. and i want to send sms notifications when a service goes
down.
> but the problem is TWO people want to get notifications when a
> service goes DOWN and comes BACK.
> not many sms' in 5-10 or 60 minutes. just ONE when service out, and
> the SECOND when service IN again.
> how do i have to define nofity-by-sms service definition to achieve
> this goal ?[just one when out and one when in again]
Let's say you have 2 Contactgroups:
I-WANT-DOWN-AND-UP and I-ONLY-WANT-DOWN
define serviceescalation {
hostgroup_name HTTP-HOSTGROUP
service_description HTTP
contact_groups I-WANT-DOWN-AND-UP,I-ONLY-WANT-DOWN
first_notification 1
last_notification 1
notification_interval 10
escalation_period daylight_hours
escalation_options c
}
define serviceescalation {
hostgroup_name HTTP-HOSTGROUP
service_description HTTP
contact_groups I-WANT-DOWN-AND-UP
first_notification 1
last_notification 0
notification_interval 10
escalation_period daylight_hours
escalation_options r
}
This sends exactly 1 SMS to both contactgroups if the service
goes critical. If the host ever recovers, it sends the recovery
only to the I-WANT-DOWN-AND-UP group. Note that every critical
notification after the first isn't affected by this escalations
anymore and therefore the contact defined in the base service
gets paged (usually with mail).
regards
sash
--------------------------------------------------
Sascha Runschke
Netzwerk Administration
IT-Services
ABIT AG
Robert-Bosch-Str. 1
40668 Meerbusch
Tel.:+49 (0) 2150.9153.226
Mobil:+49 (0) 173.5419665
mailto:[EMAIL PROTECTED]
http://www.abit.net
http://www.abit-epos.net
---------------------------------
Sicherheitshinweis zur E-Mail Kommunikation /
Security note regarding email communication:
http://www.abit.net/sicherheitshinweis.html
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Nagios-users mailing list
[email protected]
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