Page 1 of 1

Inherit Arguments in a service check

Posted: Fri Oct 25, 2019 11:52 am
by bosecorp
Hi

I have a service check that has 3 arguments, one of them is unique in different for every service check, the other 2 are the same across the board.

So what I want is I want to use a service template to control the other 2 arguments. but inheritance doesn't seem to work for the 2 arguments

can you help please?

Re: Inherit Arguments in a service check

Posted: Fri Oct 25, 2019 2:19 pm
by scottwilkerson
Unfortunately this will not work as the template inheritance works on a per object definition line and the command and arguments are all part of the check_command line in the object definition.

So, even though they appear separate in the CCM to make it easier to view, the underlying Nagios Core engine sees them as a single item.

Re: Inherit Arguments in a service check

Posted: Fri Oct 25, 2019 3:25 pm
by bosecorp
thanks.

you can close the ticket

Re: Inherit Arguments in a service check

Posted: Fri Oct 25, 2019 3:33 pm
by scottwilkerson
bosecorp wrote:thanks.

you can close the ticket
Locking thread