error when including resource.cfg

Morris, Patrick patrick.morris at hp.com
Thu Jun 5 06:16:34 CEST 2008


> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Andrew Edwards
> Sent: Wednesday, June 04, 2008 7:32 PM
> To: Thomas Guyot-Sionnest
> Cc: Nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] error when including resource.cfg
>
> I get the same result if I use the resource.cfg-sample provide with the
> install.
>
> $ nagios -v /usr/local/etc/nagios/nagios.cfg
>
> Nagios 3.0.2
> Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org)
> Last Modified: 05-19-2008
> License: GPL
>
> Reading configuration data...
>
> Error: Unexpected token or statement in file
> '/usr/local/etc/nagios/resource.cfg' on line 26.

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