Re: [Nagios-devel] Unable to define empty check_command

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] Unable to define empty check_command

Post by Guest »

Dmitry Sivachenko wrote:
> On Sun, Jan 08, 2006 at 01:24:03PM +0100, Andreas Ericsson wrote:
>
>>Dmitry Sivachenko wrote:
>>
>>>I am unable to entirely leave check_command parameter in the case when
>>>I derive this host definition from another which did use check_command.
>>>
>>
>>Create another template, identical in all aspects except for the lack of
>>a check_command and use that for the hosts that shouldn't have one.
>>
>>
>>>I want to be able to redefine check_command to empty value.
>>>
>>
>>You can not.
>>
>
>
> I see. But you suggest an ugly workaround.
>
> The ability to redefine check_command to an empty value permits to create
> much more elegant config files for nagios.
>

So patch it, or find a way to work around it.


> BTW, it is documented.
>

It is a bad phrasing in the documentation. "empty check_command" should
really read "no check_command variable at all", which is what it means.

--
Andreas Ericsson [email protected]
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked