Hi guys,
Problem: unique service identification (service_description & host_name)
is not unique any longer once I include a template in services.cfg!
I have tried to simplify services.cfg by introducing additional template:
define service{
use generic-service
name qa-dst-service
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 120
retry_check_interval 1
contact_groups qa-dst-admins
notification_interval 120
notification_period 24x7
notification_options c,w,r
hostgroups lxg-group
register 0
}
Then I use this template in the definitions of several services which the same service_description but different host_name.
define service{
use qa-dst-service
host_name lxg0430
service_description runPairDST
check_command check_proc_qa-dst_by_ssh!runPairDST.sh!
}
define service{
use qa-dst-service
host_name lxg0440
service_description runPairDST
check_command check_proc_qa-dst_by_ssh!runPairDST.sh!
}
After verification of the configuration I get the following error:
Error: Service ‘runPairDST’ on host ‘lxg0440’ has already been defined.
Does it mean that I can not use identical service_description for the services running on different computers if I want to use a template?
Without a template everything works fine.
Hope for a productive answer,
Mess.