Nagios for Dummies

Fernando Gomes Lima flima at slb.com
Wed May 28 14:41:28 CEST 2003


	Hi Pascal,

Yes, the libexec directory exists and I set the permissions to 777 (I'm
really desperate to discover why isn't working), and change the owner from
root to Nagios.

Is there anything else that I missing?

Thanks,
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)



-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Pascal
Miquet
Sent: terça-feira, 27 de maio de 2003 17:10
To: flima at slb.com
Cc: Nagios users
Subject: Re: [Nagios-users] Nagios for Dummies


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




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