Different monitoring times/escalations, same services

Guy Knights g.knights at qut.edu.au
Tue Dec 20 07:23:51 CET 2005


I've set up nagios 2.0 with a number of hosts, hostgroups, services, 
servicegroups and service escalations. However, I'm having trouble 
working out how I can go about configuring some of these services so 
that the notification/escalation pattern is different at different times.

For example, we have this service:

define service{
   name                         
generic-template-library-high-priority-service
   servicegroups                weekday-high-priority-services
   max_check_attempts           2
   normal_check_interval        1
   retry_check_interval         1
   check_period                 libsys-operating-hours
   notification_interval        2
   notification_period          libsys-operating-hours
   notification_options         w,u,c
   contact_groups               libsys-DEC
   register                     0
}

define service{
   host_name            jasper
   service_description  Check process [httpd]
   check_command        library_check_nrpe-check_procs_name!1:99!1:149!httpd
   use                  generic-template-library-high-priority-service
}

The servicegroup that this service is a member of follows a particular 
escalation pattern during our operating hours. However, on the weekend, 
we'd like the notification/escalation pattern to be completely 
different, as we don't want the person on call to be bombarded with text 
messages if they can't get to a PC to acknowledge the service problem.

The number of services we want to monitor on the weekend is also much 
smaller than during the week. I can't, at the moment, see any other way 
to set up the notification schedule for on-call monitoring without 
creating multiple copies of services marked as "Check process [httpd] - 
weekday" and "Check process [httpd] - weekend" (for example).

Does anyone have any suggestions as to how I can set this up? If I could 
just override notification timings in servicegroup descriptions, I think 
this would be the answer, but I'm almost certain that isn't possible.

Any help would be greatly appreciated!

Thanks,
Guy





-- 
Guy Knights
Computer Systems Officer
Queensland University of Technology
Victoria Park Road
Kelvin Grove, QLD
Ph: (07) 3864 3350
Fax: (07) 3864 5890
Email: g.knights at qut.edu.au





-------------------------------------------------------
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
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