> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Andrew Edwards > Sent: Wednesday, June 04, 2008 7:32 PM > To: Thomas Guyot-Sionnest > Cc: [email protected] > 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 [email protected] 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
