Unable to define empty check_command

Andreas Ericsson ae at op5.se
Sun Jan 8 19:23:52 CET 2006


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                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click




More information about the Developers mailing list