Error: Could not read object configuration data! -

Mister IT Guru misteritguru at gmx.com
Fri Dec 31 15:11:24 CET 2010


On 31/12/2010 13:51, Jim Avery wrote:
> On 31 December 2010 13:37, Mister IT Guru<misteritguru at gmx.com>  wrote:
>> 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.
>>
>> I have run the following command
>>
>> ]# /usr/bin/nagios -v /etc/nagios/nagios.cfg
>> ..
>> ..
>> Total Warnings: 0
>> Total Errors:   0
>>
>> Things look okay - No serious problems were detected during the pre-flight
>> check
>>
>> The nagios interface 'works' but I have the above error. I have noticed that
>> the log file does not update /var/log/nagios/nagios.log, which makes me
>> think that something is not 100% correct.
>>
>> I'm running Centos 5.5, and I installed the version of nagios available in
>> the repo, then realised that it was an old, and installed RPMForge.
>>
>> I'm stumped as to what can be causing this error, any tips?
> I'm not sure what you mean by "... and installed RPMForge".
>
> If you installed Nagios from the source tarball using the quickstart
> instructions at
> http://nagios.sourceforge.net/docs/3_0/quickstart-fedora.html , then
> the nagios config file nagios.cfg would be under
> /usr/local/nagios/etc/ and the command to verify the config should
> then be ..
>
>    /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
>
> I would stop the Nagios daemon, check the start script under
> /etc/init.d to make sure you know how it is starting, check where it
> is looking for the config and run the verify command again making sure
> you are using the right config location.
>
> hth,
>
> Jim
RPMForge is a repository it has the latest nagios rpms. The path I gave 
is the correct path for the config, and the binaries.
The file /etc/init.d/nagios has the entry config="/etc/nagios/nagios.cfg"

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
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