PROBLEME SOLVED Re: Error: Could not read object configuration data!

Ovig Degrouard ovig.degrouard at jouy.inra.fr
Fri Jan 14 17:49:10 CET 2005


Thank you for all your answers!
I've found and solved the problem.
I hadn't got the good rights for objects.cache.

O. Degrouard



Andreas Ericsson wrote:

> Ovig Degrouard wrote:
>
>> The return of syntax chekc is ok. There is no erros.
>> Now i've build a new nagios from CVS tarball (2.0b1)
>>
>> I ve exactly the same error when i try to execute one CGI as status.cgi
>>
>>
>>
>>
>> Error: Could not read object configuration data!
>>
>> Here are some things you should check in order to resolve this error:
>>
>>   1. Verify configuration options using the -v command-line option to
>> check for errors.
>>   2. Check the Nagios log file for messages relating to startup or 
>> status
>> data errors.
>>   3. Make sure you've compiled the main program and the CGIs to use the
>> same object data storage options (i.e. default text file or 
>> template-based
>> file).
>>
>>
>
> su - thewebuserofyoursystem
> cd ~nagios
> cat var/objects.cache
>
> Read error message and take appropriate actions.
>
>>
>>
>> Step 1 is ok : no errors un cfg files
>> Step 2 : Some error mesg about services not configured.
>> [1105715151] SERVICE ALERT: localhost;HTTPS;CRITICAL;HARD;1;Connection
>> refused
>> [1105715271] SERVICE ALERT: localhost;HTTPS;WARNING;HARD;1;HTTP WARNING:
>> HTTP/1.1 403 Forbidden
>>
>>
>>
>> But i don't think this is the problem.
>>
>> I think the problem was about access to the "object data storage": 
>> right,
>> location or maybe suexec ...
>>
>> So i've another question:
>> - Where nagios store the results of information collect ? In which 
>> file ?
>>
>> thanks
>>
>>
>>
>>
>>
>> Mark Nadir wrote:
>>
>>> My suggestion would be to do exactly what the error message says and 
>>> run a verification check on your nagios configuration by running
>>>
>>> /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
>>>
>>> {assuming that you installed in the default location}
>>>
>>> Once that is done, look at the output of the error message and drop 
>>> it here if needed.
>>>
>>> Mark Nadir.
>>
>>
>>
>>
>>
>>>
>>> Ovig Degrouard wrote:
>>>
>>>> Hello,
>>>>
>>>> I have a problem with nagios 2.0a1 running with apache 2.0 on 
>>>> mandrake 10.1.
>>>> It has been installed with urpmi. There are no errors messages in 
>>>> apache logs.
>>>> Nagios is running on the server and nrpe on one client. The nagios 
>>>> cfg files seems to be OK.
>>>> The error message is:
>>>>
>>>>
>>>>  Whoops!
>>>>
>>>> *Error: Could not read object configuration data!*
>>>>
>>>> Here are some things you should check in order to resolve this error:
>>>>
>>>>   1. Verify configuration options using the *-v* command-line 
>>>> option to
>>>>      check for errors.
>>>>   2. Check the Nagios log file for messages relating to startup or
>>>>      status data errors.
>>>>   3. Make sure you've compiled the main program and the CGIs to use 
>>>> the
>>>>      same object data storage options (i.e. default text file or
>>>>      template-based file).
>>>>
>>>> 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.
>>>>
>>>>
>>>> Thank you,
>>>>
>>>> O. Degrouard
>>>>
>>>>
>>>>
>>>> -------------------------------------------------------
>>>> The SF.Net email is sponsored by: Beat the post-holiday blues
>>>> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
>>>> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
>>>> _______________________________________________
>>>> 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
>>>>
>>>
>>>
>>>
>>
>>
>>
>> -------------------------------------------------------
>> The SF.Net email is sponsored by: Beat the post-holiday blues
>> Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
>> It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
>> _______________________________________________
>> 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
>>
>



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
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