Problem with resource.cfg macro definiton

Gotner, James jgotner at fhcrc.org
Wed Apr 9 01:13:40 CEST 2003


Well, it seems that the problem wasnt permissions related, it just seems
that Nagios checks the cfg files in a random order, which gave me the
impression that changing permissions corrected my problem...  I'll give a
little background on my setup... 

RedHat 7.3 (2 seperate boxes)
I am using bash (tried running nagios -v from /bin/sh and still got the same
thing)
I am writing all config files using vim (tried with other editors also -
kate, vi)
I have Nagios 1.0 on one, and 1.0b6 on the other for testing purposes

ALL cfg files seem to exhibit this problem now with anything that isnt a
comment under both versions.  I even started to recreate a file without
comments, and I still get the error about an unexpected token or statement.
I have opened the files with a couple of editors to see if there was
anything that vim wasnt displaying, and still saw nothing.  I transfered the
files to a samba share and pulled them back down to have them rewritten
incase the files were corrupted, and that hasnt worked.  Is there a better
distro to use Nagios with, as the only thing I see in common is RH 7.3?  Are
there any suggestions on things to try?

James Gotner

Security Certified Network Professional
A+ Hardware/Software, Linux+, Network+, i-Net+ Certified Professional
Certified Internet Webmaster Associate

Original Message:

Hello,

   I have installed nagios and associated plugins, and have come across a
problem that I cannot resolve through searching the archives, or anywhere in
the manual.  When running ./nagios -v /usr/local/nagios/etc/nagios.cfg, I
receive an error to the effect of 'Error: unexpected token or statement in
file '/usr/local/nagios/etc/resource.cfg'  on line 24.  Well, line 24
defines the $USER1$ macro which is defined as:
$USER1$=/usr/lib/nagios/plugins

I mv'd the resource.cfg-sample file to my config directory as resource.cfg,
and only changed the location of the plugin directory ($USER$1) within it.
Is there something that I am overlooking here?  Thanks for any help..

James Gotner

Security Certified Network Professional
A+ Hardware/Software, Linux+, Network+, i-Net+ Certified Professional
Certified Internet Webmaster Associate





-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
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








-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
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