Includes using includes...

Marc Powell marc at ena.com
Thu Aug 14 16:11:28 CEST 2008


On Aug 14, 2008, at 7:56 AM, Caron, Chris wrote:

> Hi guys,
>
> I want to use the Nagios directive: ‘cfg_dir=/new/directory’ from  
> within a cfg_dir= defined already in the /etc/nagios/nagios.cfg file…

cfg_dir is only valid within nagios.cfg. There can be only one  
nagios.cfg so that would not be permitted.

> My proposed idea (an cfg_dir in a config file within a previously  
> defined cfg_dir) does not work… But I was curious on workarounds or  
> other great suggestions from others on ways around this.

Reading the code (xdata/xodtemplate.c/ 
xodtemplate_process_config_dir{}), nagios will only parse files with a  
'.cfg' extension within the cfg_dir so you may just be able to add a  
cfg_dir of '/opt' IFF the only files under that with a .cfg extension  
are nagios config files.

--
Marc
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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