How to override a command definition?

Liu Lantao liulantao at gmail.com
Mon May 17 10:18:20 CEST 2010



On 05/14/2010 11:06 AM, Scot Wilcoxon wrote:
> On Thu, 2010-05-13 at 21:25 -0500, Marc Powell wrote:
>   
>> On May 13, 2010, at 2:50 PM, Scot Wilcoxon wrote:
>>
>>     
>>> I'm trying to override the existing definition, because I'd rather not
>>> alter the configuration which is part of the installation package.
>>>       
>> Just comment out the original if you want to keep it there as a reference.
>>     
> I know how to alter the files, but I was hoping to leave the original
> config file alone so the system updates could replace it if necessary.
>
> Apparently Nagios is missing the ability to replace previous definitions
> (also demonstrated in the problem of "undefined" causing specific
> behavior but not being able to undefine, such as for a no-ping host).  I
> also haven't noticed a defined priority for configuration info,
> something which would be needed for an override.
>   
it's not a good idea to overide the 'previous' definition,
as a result of the config style as 'cfg_dir', nagios cannot decide which
is the 'previous' config file.

cfg_dir=/usr/local/nagios/etc/hosts


------------------------------------------------------------------------------

_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list