@dchurch: Hi,
I having a weird issue with overriding default threshold for a service. i have defined a service template called cp_windows_servers_base_template and assigned the cp_windows_servers_base_template and assigned to cp_windows_basic_service_checks service so all hosts in CP_Windows_Servers will have all the base thresholds.
For some hosts i'm trying to override defaults thresholds, so created cp_windows_sql_servers_memory_usage_template assigned to cp_windows_sql_servers_memory_usage service so all hosts in CP_Windows_MS_SQL_Servers threshold be override.
But overriding is not working for these 2 template and all others working fine. Also override is working for one host in CP_Windows_MS_SQL_Servers. What am i doing wrong here? can you please help? I added all config's below.
Service base template:
Code: Select all
define service {
name cp_windows_servers_base_template
hostgroup_name CP_Windows_Servers
service_description Every Windows server inherits checks from this template
max_check_attempts 5
check_period 24x7
notification_interval 720
notification_period cp-standard-timeperiod
register 0
}
Service template to override base thresholds:
Code: Select all
define service {
name cp_windows_sql_servers_memory_usage_template
hostgroup_name CP_Windows_MS_SQL_Servers
service_description MS SQL Servers Memory Override
max_check_attempts 5
check_period 24x7
notification_interval 720
notification_period cp-standard-timeperiod
register 0
}
Base Service Definitions:
Code: Select all
define service {
service_description Memory Usage
use cp_windows_servers_base_template
check_command check_xi_ncpa!-t 'NCPA221token' -P 5693 -M memory/virtual -u Gi -w 85 -c 90!!!!!!!
register 1
}
override service definition:
Code: Select all
define service {
service_description Memory Usage
use cp_windows_sql_servers_memory_usage_template
check_command check_xi_ncpa!-t 'NCPA221token' -P 5693 -M memory/virtual -u Gi -w 97 -c 99!!!!!!!
register 1
}
Hostgroup definitions for both the templates:
Code: Select all
define hostgroup {
hostgroup_name CP_Windows_MS_SQL_Servers
alias CP Windows MS SQL Servers
members host1, host2,host3, etc.
}
define hostgroup {
hostgroup_name CP_Windows_Servers
alias All CP Windows Servers
members host1, host2,host3, etc.