resource.cfg and $USER1$

Quanah Gibson-Mount quanah at stanford.edu
Thu Nov 20 20:41:19 CET 2003



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


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