2 hosts with almost identical names share servicechecks
Posted: Thu Sep 03, 2015 7:10 am
I have defined two hosts:
One service check:
But still I have the servicecheck on both hosts:

How can this be avoided?
Code: Select all
define host {
host_name A-ALMEX02
alias Exchange 2010 HUB/CAS ADS
display_name A-ALMEX02
address 172.20.0.65
check_command check-host-alive
initial_state o
max_check_attempts 3
check_interval 5
retry_interval 1
active_checks_enabled 1
passive_checks_enabled 0
check_period 24x7
check_freshness 1
event_handler host-notify-by-email
process_perf_data 1
contact_groups Standby_pool2
notification_interval 15
notification_period 24x7
notification_options d,u,r
notifications_enabled 1
register 1
}
define host {
host_name ALMEX02
alias Exchange 2010 HUB/CAS ADS
display_name ALMEX02
address 172.20.4.151
check_command check-host-alive
initial_state o
max_check_attempts 3
check_interval 5
retry_interval 1
active_checks_enabled 1
passive_checks_enabled 0
check_period 24x7
check_freshness 1
event_handler host-notify-by-email
process_perf_data 1
contact_groups Standby_pool2
notification_interval 15
notification_period 24x7
notification_options d,u,r
notifications_enabled 1
register 1
}Code: Select all
define service {
#NAGIOSQL_CONFIG_NAME Disk_usage_D
host_name ALMEX02
service_description Disk usage D: - 24x7 Pool 2
display_name Disk usage D: - 24x7 Pool 2
check_command check_snmp_storage!public!^D!90!95
initial_state o
max_check_attempts 3
check_interval 5
retry_interval 1
active_checks_enabled 1
check_period 24x7
check_freshness 1
event_handler_enabled 0
process_perf_data 1
notification_interval 5
notification_period 24x7
notification_options w,u,c,r,f
notifications_enabled 1
contact_groups Mail_Standby_Pool_2
notes_url /nagiosgraph/cgi-bin/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&db=diskgd%2Cbytesfree&db=diskgd%2Cbytesmax&period=day,week,month,year&expand_period=day,week,month,year
register 1
}

How can this be avoided?
