check_nt_disk

We’d like to configure two different notification groups for check_nt_disk. The first group we’d like to receive 80% warning alerts and the second group we’d like to get 90% critical alerts. Currently we’re doing this by configuring two different checks of the same disk (see below) Is there a way to accomplish this with only one check?

define service{
use generic-service ; Name of service template to use
host_name %hostname%
service_description DISK_C Warning
is_volatile 0
check_period 24x7
max_check_attempts 4
normal_check_interval 15
retry_check_interval 3
contact_groups Testing-1
notification_options w,r
notification_interval 15
notification_period 24x7
check_command check_nt_disk!C!80!90
}

define service{
use generic-service ; Name of service template to use
host_name %hostname%
service_description DISK_C Critical
is_volatile 0
check_period 24x7
max_check_attempts 4
normal_check_interval 15
retry_check_interval 3
contact_groups Testing-2
notification_options c,r
notification_interval 15
notification_period 24x7
check_command check_nt_disk!C!80!90
}

Sure, you could set either w or c as appropriate in the “service_notification_options” directive for each contact object definition
[blockquote]
service_notification_options: This directive is used to define the service states for which notifications can be sent out to this contact. Valid options are a combination of one or more of the following: w = notify on WARNING service states, u = notify on UNKNOWN service states, c = notify on CRITICAL service states, r = notify on service recoveries (OK states), and f = notify when the service starts and stops flapping. If you specify n (none) as an option, the contact will not receive any type of service notifications.[/blockquote]
nagios.sourceforge.net/docs/3_0/ … ml#contact

HTH

/S

thanks for the quick response. For some reason I was stuck thinking it would be a check configuration. I’ve created the needed two groups and all is well now.