I'm trying to implement a nagios server.
Implementation :
VM on VMware with Centos 5.5 x64
Nagios install through rpmforge : version 3.2.3
When i run : /usr/bin/nagios -v /etc/nagios/nagios.conf, I get this :
Code: Select all
Nagios Core 3.2.3
Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 10-03-2010
License: GPL
Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config file '/etc/nagios/objects/commands.cfg'...
Processing object config file '/etc/nagios/objects/contacts.cfg'...
Processing object config file '/etc/nagios/objects/timeperiods.cfg'...
Processing object config file '/etc/nagios/objects/templates.cfg'...
Processing object config file '/etc/nagios/objects/localhost.cfg'...
Processing object config file '/etc/nagios/objects/hosts.cfg'...
Processing object config file '/etc/nagios/objects/services.cfg'...
Read object config files okay...
Running pre-flight check on configuration data...
Checking services...
Checked 10 services.
Checking hosts...
Checked 3 hosts.
Checking host groups...
Checked 1 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 2 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 24 commands.
Checking time periods...
Checked 5 time periods.
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
Code: Select all
nagios is stopped
Configuration validation failed [FAILED]
Here is the nagios.log :
Code: Select all
[Thu Aug 11 09:55:31 2011] Nagios 3.2.3 starting... (PID=14342)
[Thu Aug 11 09:55:31 2011] Local time is Thu Aug 11 09:55:31 CEST 2011
[Thu Aug 11 09:55:31 2011] LOG VERSION: 2.0
[Thu Aug 11 09:55:31 2011] Finished daemonizing... (New PID=14343)
Code: Select all
Whoops!
Error: Could not read object configuration data!
Here are some things you should check in order to resolve this error:
Verify configuration options using the -v command-line option to check for errors.
Check the Nagios log file for messages relating to startup or status data errors.
Make sure you read the documentation on installing, configuring and running Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at http://www.nagios.org.
Can anyone give some tips to go further in my troubleshooting.
Thanks in advance.