(no subject)
Terry
td3201 at yahoo.com
Tue Jul 22 19:46:13 CEST 2003
Hi,
I have a service that has a scheduled maintenence
period from 1am-4am. During this maintenence period,
I still want notifications to go out but only to a
certain contact, not the normal contact. Then when
the maintenence period is over, I want it to go back
to normal.
Right now, I am accomplishing this with two services.
I want to consolidate them into 1:
I have two timeperiods for this piece:
define timeperiod{
timeperiod_name nonmaintenence
alias Non-Maintenence Period
sunday 00:00-01:00,04:15-23:59
monday 00:00-01:00,04:15-23:59
tuesday 00:00-01:00,04:15-23:59
wednesday 00:00-01:00,04:15-23:59
thursday 00:00-01:00,04:15-23:59
friday 00:00-01:00,04:15-23:59
saturday 00:00-01:00,04:15-23:59
}
define timeperiod{
timeperiod_name maintenence
alias Maintenence Period
sunday 01:00-04:15
monday 01:00-04:15
tuesday 01:00-04:15
wednesday 01:00-04:15
thursday 01:00-04:15
friday 01:00-04:15
saturday 01:00-04:15
}
Here are my services:
define service{
use
generic-service
host_name foows01
service_description
SLS-Non-Maintenence
is_volatile 0
check_period nonmaintenence
max_check_attempts 1
contact_groups
warning,critical
notification_interval 5
notification_period nonmaintenence
notification_options w,u,c,r
check_command check_sls!foo
}
define service{
use
generic-service
host_name foows01
service_description
SLS-Maintenence
is_volatile 0
check_period maintenence
max_check_attempts 1
contact_groups
warning-critical-no-pager
notification_interval 5
notification_period maintenence
notification_options w,u,c,r
check_command check_sls!foo
}
>From this information, you can see that I am sending
the notifications to different groups based on the
service being ran. Basically, I want to send out
notifications based on the timeperiod....is this
possible?
Thanks!
=====
Terry
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
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