I am getting this error in web interface and command prompt

root@server3 [/usr/local/nagios/bin]# ./nagios -v nagios.cfg

Nagios 2.0b4
Copyright (c) 1999-2005 Ethan Galstad (http://www.nagios.org) Last Modified: 08-02-2005
License: GPL

Reading configuration data...

Error: Command 'check-host-alive' has already been defined
Error: Could not register command (config file '/usr/local/nagios/etc/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.


***This is the last portion of my httpd.conf file (restarted httpd 3 times after adding this to the httpd.conf***


ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin <Directory "/usr/local/nagios/sbin">
AllowOverride AuthConfig
Options ExecCGI
Order allow,deny
Allow from all
</Directory>

Alias /nagios /usr/local/nagios/share
<Directory "/usr/local/nagios/share">
Options None
AllowOverride AuthConfig
Order allow,deny
Allow from all
</Directory>

<Directory /usr/local/nagios/sbin>
AllowOverride AuthConfig
order allow,deny
allow from all
Options ExecCGI
</Directory>

<Directory /usr/local/nagios/share>
AllowOverride AuthConfig
order allow,deny
allow from all
</Directory>



***This is the default Nagios.cfg file as well (only top portion to show default settings***

log_file=/usr/local/nagios/var/nagios.log
cfg_file=/usr/local/nagios/etc/checkcommands.cfg
cfg_file=/usr/local/nagios/etc/misccommands.cfg
cfg_file=/usr/local/nagios/etc/minimal.cfg
object_cache_file=/usr/local/nagios/var/objects.cache
resource_file=/usr/local/nagios/etc/resource.cfg
status_file=/usr/local/nagios/var/status.dat
nagios_user=nagios
nagios_group=nagios
check_external_commands=0
command_check_interval=-1
command_file=/usr/local/nagios/var/rw/nagios.cmd


Why am I getting all these errors above? I also get 404 error in Nagios web interface when I click any link

My specs:

PHP 4.4.0
Apache 1.33x
Mysql 4.1
Latest stable Nagios
APF firewall
BFD intrusion protection
LSM / SIM

I commented out miscommands and checkommands in nagios.cfg (did not find any command.cfg in that file) and restarted Nagios. I still get this error anytime I click on the links in the web interface:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@domain.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.


I did the pre-flight check as well. All looks good at least on that part.

root@server3 [/usr/local/nagios/etc]# /usr/local/nagios/bin/nagios -v nagios.cfg

Nagios 2.0b4
Copyright (c) 1999-2005 Ethan Galstad (http://www.nagios.org) Last Modified: 08-02-2005
License: GPL

Reading configuration data...

Running pre-flight check on configuration data...

Checking services...
Checked 5 services.
Checking hosts...
Checked 1 hosts.
Checking host groups...
Checked 1 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 1 contacts.
Checking contact groups...
Checked 1 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 8 commands.
Checking time periods...
Checked 1 time periods.
Checking extended host info definitions...
Checked 0 extended host info definitions.
Checking extended service info definitions...
Checked 0 extended service info definitions.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check



This is what I find in the server error log:

Oct 3 07:21:42 server3 nagios: HOST NOTIFICATION: nagios-admin;localhost;DOWN;host-notify-by-email;/bin/ping -n -U -w 10 -c 1 127.0.0.1 Oct 3 07:21:42 server3 nagios: Warning: Attempting to execute the command "/usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: PROBLEM\nHost: localhost\nState: DOWN\nAddress: 127.0.0.$ Oct 3 07:23:42 server3 nagios: SERVICE ALERT: localhost;PING;UNKNOWN;HARD;1;/bin/ping -n -U -w 10 -c 5 127.0.0.1