error when including resource.cfg

Marc Powell marc at ena.com
Fri Jun 6 14:14:50 CEST 2008


On Jun 5, 2008, at 11:21 PM, Andrew Edwards wrote:

> I have in my nagios.cfg
>
> cfg_dir=/usr/local/etc/nagios/objects/common
> cfg_dir=/usr/local/etc/nagios/objects/mfg
>
> but I do not include any parent dir's only these.  I then tried  
> copying
> the resource.cfg file into the commond dir and I get the same problem.
>
> Are there caviates to using the cfg_dir directive?  I used to have

Yes -- They must only contain things that would otherwise be defined  
as cfg_file in nagios.cfg. As Patrick pointed out, resource.cfg is not  
one of those types of files.

--
Marc

>
> -----Original Message-----
> From: Morris, Patrick [mailto:patrick.morris at hp.com]

>
> Have you, by any chance, told Nagios to load all files in
> /usr/local/etc/nagios using the cfg_dir directive, or told it to  
> load it
> using the cfg_file directive rather than the resource_file one? That
> would cause the error you're seeing.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
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