resource.cfg and $USER1$
Joe Rhett
jrhett at isite.net
Thu Nov 20 20:54:43 CET 2003
Is test.cfg listed under "resource_file test.cfg" and not as a normal
include? I ask because the logic for reading the resource_file is discrete
in the source code I've examined. It has its own rules. Definitions
probably don't work in any other file.
(note that I've only been hackng nagios source for 2 days, so forgive me
when I put my foot in my mouth)
On Thu, Nov 20, 2003 at 11:41:19AM -0800, Quanah Gibson-Mount wrote:
>
>
> --On Thursday, November 20, 2003 10:47 AM -0800 Joe Rhett
> <jrhett at isite.net> wrote:
>
> >>This is the exact error:
> >>
> >>[1069268128] Error: Unexpected token or statement in file
> >>'/opt/nagios/etc/resource.cfg' on line 24.
> >>
> >>Line 24 is:
> >>
> >>$USER1$=/opt/nagios/libexec
> >
> >What are the lines before it? Are you sure there's not a syntax error
> >somewhere in where?
>
> Yes.
>
> mon-dev:/opt/nagios/etc# /usr/local/bin/setuidgid nagios
> /opt/nagios/bin/nagios -s /opt/nagios/etc/nagios.cfg
>
> Nagios 1.1
> Copyright (c) 1999-2003 Ethan Galstad (nagios at nagios.org)
> Last Modified: 06-02-2003
> License: GPL
>
> Error: Unexpected token or statement in file '/opt/nagios/etc/test.cfg' on
> line 1.
>
> ***> One or more problems was encountered while reading configuration
> data...
> mon-dev:/opt/nagios/etc# cat test.cfg
> $USER1$=/opt/nagios/libexec
>
> mon-dev:/opt/nagios/etc# ls -l test.cfg
> -rw-r--r-- 1 nagios nagios 28 Nov 20 11:38 test.cfg
>
> Permissions are correct (same as they are on all the other files).
>
> It simply does not work.
>
> --Quanah
>
> --
> Quanah Gibson-Mount
> Principal Software Developer
> ITSS/TSS/Computing Systems
> ITSS/TSS/Infrastructure Operations
> Stanford University
> GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html
--
Joe Rhett Chief Geek
JRhett at Isite.Net Isite Services, Inc.
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
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