Service templates and inheritance
Posted: Fri Oct 09, 2015 9:14 am
I'm trying to determine the best/easiest way to add several similar hosts using the least amount of work. I thought the way to do this would be to create service templates and then assign those templates to a hostgroup. This sort of works.
I have a Service Template called "DISK - /". Assigning this to a hostgroup appears to work (that is, the Service is being checked on the hosts within that hostgroup). However, I want to be able to change the value of the Checkcommand Arguments on only some of these hosts. I thought the way to do this would be to create a Service with the Config Name of the host on which I wanted to change these arguments and add the "DISK - /" Service Template to this Service. When I do this, no matter what I modify, even the Description, it does not take affect within Nagios core.
What am I doing wrong here? Thanks.
Nagios XI 2014R2.7
I have a Service Template called "DISK - /". Assigning this to a hostgroup appears to work (that is, the Service is being checked on the hosts within that hostgroup). However, I want to be able to change the value of the Checkcommand Arguments on only some of these hosts. I thought the way to do this would be to create a Service with the Config Name of the host on which I wanted to change these arguments and add the "DISK - /" Service Template to this Service. When I do this, no matter what I modify, even the Description, it does not take affect within Nagios core.
What am I doing wrong here? Thanks.
Nagios XI 2014R2.7