New user with error I cannot find on other sites

I am trying to install 2.0-0.b3.1.1 on Enterprise Linux 3. When I do nagios -v /etc/nagios/nagios.cfg I get:

Nagios 2.0b3
Copyright © 1999-2005 Ethan Galstad (www.nagios.org)
Last Modified: 04-03-2005
License: GPL

Reading configuration data…

Error: Command ‘check-host-alive’ has already been defined
Error: Could not register command (config file ‘/etc/nagios/minimal.cfg’, starting on line 76)

***> 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 regarding the config files, as well as the
 'Whats New' section to find out what has changed.

Any ideas?

Sounds like you have used 'Check_host_alive" more than once… check you other config files and you will find it !!!
That will getrid of the first error…

What does line 76 say in minimal.cfg ??? BEt it is 'check_host_alive" Comment it out !!! then try again…

G

I had this problem too. Several commands are defined in both the checkcommands.cfg and minimal.cfg. At first I commented out the duplicates in minimal.cfg, and then ended up removing it altogether so I could use separate cfg files for hosts, services, etc.

empty the etc directory (keep backup)
create a minimal.cfg file with only one host, one service, ona contactgroup and one contact.
when it works divide into more files to keep things clean.
whent this one works add more services and hosts… one at a time :slight_smile:

Luca