Nagios for Dummies
Pascal Miquet
p.miquet at hafiba.fr
Tue May 27 22:10:27 CEST 2003
Hello,
Mine is the same, and works fine for me.
Are you sure that the $USER1$ directory exist and has right permissions
??
Regards
Pascal Miquet
Le mar 27/05/2003 à 17:02, Fernando Gomes Lima a écrit :
>
> Hi guys,
>
> I still receiving the error messages. Here is the message when i try to
> start Nagios:
>
> Attached I'm sending the resource.cfg file and the output of
> /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
>
> I appreciate to receive some help from you guys that work and has some
> knowledge of Nagios instead others that use the list to sell services. I
> work on security environment and always helped others (you can check on
> phoneboy (list to Firewall-1 users)) in trouble situation.
>
> Best Regards,
> - Fernando the dummy without shame to learn and ask ;-)
>
>
> Nagios 1.0
>
> Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org)
>
> Last Modified: 11-24-2002
>
> License: GPL
>
> Reading configuration data...
>
> Error: Unexpected token or statement in file
> '/usr/local/nagios/etc/resource.cfg' on line 24.
>
>
>
> ***> One or more problems was encountered while processing the config
> files...
>
> Check your configuration file(s) to ensure that they contain valid
> directives and data defintions. If you are upgrading from a previous version
> of Nagios, you should be aware that some variables/definitions may have been
> removed or modified in this version. Make sure to read the HTML
> documentation on the main and host config files, as well as the 'Whats New'
> section to find out what has changed.
>
> And on my resource.cfg (that has only one line uncommented (that's on 24th
> line position)) has the following statement:
>
> ###########################################################################
> #
> # RESOURCE.CFG - Sample Resource File for Nagios 1.0
> #
> # You can define $USERx$ macros in this file, which can in turn be used
> # in command definitions in your host config file(s). $USERx$ macros are
> # useful for storing sensitive information such as usernames, passwords,
> # etc. They are also handy for specifying the path to plugins and
> # event handlers - if you decide to move the plugins or event handlers to
> # a different directory in the future, you can just update one or two
> # $USERx$ macros, instead of modifying a lot of command definitions.
> #
> # The CGIs will not attempt to read the contents of resource files, so
> # you can set restrictive permissions (600 or 660) on them.
> #
> # Nagios supports up to 32 $USERx$ macros ($USER1$ through $USER32$)
> #
> # Resource files may also be used to store configuration directives for
> # external data sources like MySQL...
> #
> ###########################################################################
> # Sets $USER1$ to be the path to the plugins
> $USER1$=/usr/local/nagios/libexec <== Line 24!!!
> # Sets $USER2$ to be the path to event handlers
> #$USER2$=/usr/local/nagios/libexec/eventhandlers
> # Store some usernames and passwords (hidden from the CGIs)
> #$USER3$=someuser
> #$USER4$=somepassword
>
>
> Fernando Gomes
> SchlumbergerSema
> Network & Infrastructure Solutions
> Security Engineer
> flima at slb.com
>
> Trab: +55 21 3824 6954
> Cel. : +55 21 9888 9046
> (GMT: -03:00)
>
>
> ----
>
>
> Nagios 1.0
> Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org)
> Last Modified: 11-24-2002
> License: GPL
>
> Reading configuration data...
>
> Error: Unexpected token or statement in file '/usr/local/nagios/etc/resource.cfg' on line 24.
>
>
> ***> One or more problems was encountered while processing the config files...
>
> Check your configuration file(s) to ensure that they contain valid
> directives and data defintions. If you are upgrading from a previous
> version of Nagios, you should be aware that some variables/definitions
> may have been removed or modified in this version. Make sure to read
> the HTML documentation on the main and host config files, as well as the
> 'Whats New' section to find out what has changed.
>
-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
_______________________________________________
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