error when including resource.cfg

Andrew Edwards aedwards at sandvine.com
Fri Jun 6 15:41:57 CEST 2008


Okay, I see the problem now.  I had specified resource.cfg as a cfg_file
instead of a resource_file.

Thanks for the help,
Andrew

-----Original Message-----
From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Marc
Powell
Sent: Friday, June 06, 2008 8:15 AM
To: Nagios Users Mailinglist
Subject: Re: [Nagios-users] error when including resource.cfg


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

-------------------------------------------------------------------------
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