[Nagios-users] Error: Could not read object configuration data!

2011-05-16 Thread Adam Heinz
Running nagios-3.2.3-8.fc14.x86_64 rpm, clicking most links in the
leftnav result in the Error: Could not read object configuration
data!  First things first, from every FAQ I've read:

# nagios -v /etc/nagios/nagios.cfg
Total Warnings: 0
Total Errors:   0

# /etc/init.d/nagios status
nagios (pid 17797) is running...

# tail /var/log/nagios/nagios.log
[1305566224] Nagios 3.2.3 starting... (PID=17796)
[1305566224] Local time is Mon May 16 17:17:04 UTC 2011
[1305566224] LOG VERSION: 2.0
[1305566225] Finished daemonizing... (New PID=17797)
[1305566585] SERVICE ALERT: localhost;HTTP;CRITICAL;SOFT;1;HTTP
CRITICAL - Invalid HTTP response received from host: !DOCTYPE HTML
PUBLIC -//IETF//DTD HTML 2.0//EN

So it's running check_http no problem with a nominal failure (nothing
at /, so 403).  Same behavior when I run check_http from the command
line, so all that appears to be working as expected.

Reading 
http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg19610.html
makes me wonder if I have some sort of file permissions issue such
that nagios is running fine, but apache is unable to read certain
files when it executes CGI.  I haven't figured out how to turn up the
log level for CGI.  Turning Apache's LogLevel up to debug hasn't shown
me anything interesting.

Any ideas?

--
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] Error: Could not read object configuration data! -

2010-12-31 Thread Mister IT Guru
On 31/12/2010 13:51, Jim Avery wrote:
 On 31 December 2010 13:37, Mister IT Gurumisteritg...@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@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


Re: [Nagios-users] Error: Could not read object configuration data! [SOLVED]

2010-12-31 Thread Mister IT Guru
On 31/12/2010 14:34, Hugo van der Kooij wrote:
   On Fri, 31 Dec 2010 14:11:24 +, Mister IT Guru
   misteritg...@gmx.com  wrote:
 The file /etc/init.d/nagios has the entry
 config=/etc/nagios/nagios.cfg
   Please verify that the nagios user has the required rights to read
   /etc/nagios and subordinate files and directories.

   Also make sure that you do not have SELINUX running or created the
   required exceptions yourself.

   Hugo.

Can you believe it? Frikking SELINUX! I've now turned this off to get 
this rig up and running, and it's working. Thank you Hugo. I guess now 
it's my turn to learn how to get SELINUX and nagios to play nice, I'll 
set that up on my test rig in the new year.

Thanks

--
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@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


Re: [Nagios-users] Error: Could not read object configuration data!

2008-06-06 Thread Chantal Rosmuller
Thanks your remark helped solve the problem,object_cache_file= was not defined 
in nagios.conf

On Thursday 05 June 2008 18:35:20 Marc Powell wrote:
 On Jun 5, 2008, at 9:09 AM, Chantal Rosmuller wrote:
  Yes it is, but I changed the permissions already and they are ok
  now, at least
  I think they should be okay:
 
 
  servername:~# ls -la /etc/nagios2

 The CGI's are actually trying to read the cached object data file and
 other files under var.

 object_cache_file=/usr/local/nagios/var/objects.cache

 They don't have to be group www-data, just readable by the web server.
 (i.e. 664).

 --
 Marc

 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php
 ___
 Nagios-users mailing list
 Nagios-users@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



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@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


[Nagios-users] Error: Could not read object configuration data!

2008-06-05 Thread Chantal Rosmuller
Hi list,

after upgrading from 1.4 to 2.6 on a debian system the webinterface is not 
working anymore, if I click on a menu link I get:

Error: Could not read object configuration data!

the nagios documentation says:

   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). 

I tried 1 but no errors
same for option 2
3, I didn't compile but I used aptitude, so I guess that cannot be the 
problem?


-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] Error: Could not read object configuration data!

2008-06-05 Thread Chantal Rosmuller
On Thursday 05 June 2008 13:18:13 Chantal Rosmuller wrote:
 Hi list,

 after upgrading from 1.4 to 2.6 on a debian system the webinterface is not
 working anymore, if I click on a menu link I get:

 Error: Could not read object configuration data!

 the nagios documentation says:

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).

 I tried 1 but no errors
 same for option 2
 3, I didn't compile but I used aptitude, so I guess that cannot be the
 problem?


 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php
 ___
 Nagios-users mailing list
 Nagios-users@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 nagios daemon is running by the way.



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] Error: Could not read object configuration data!

2008-06-05 Thread Frank J. Gómez
Is it possible that the upgrader changed permissions/ownership of some
config file(s) in /etc/nagios/?

On Thu, Jun 5, 2008 at 8:02 AM, Chantal Rosmuller [EMAIL PROTECTED]
wrote:

 On Thursday 05 June 2008 13:18:13 Chantal Rosmuller wrote:
  Hi list,
 
  after upgrading from 1.4 to 2.6 on a debian system the webinterface is
 not
  working anymore, if I click on a menu link I get:
 
  Error: Could not read object configuration data!
 
  the nagios documentation says:
 
 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).
 
  I tried 1 but no errors
  same for option 2
  3, I didn't compile but I used aptitude, so I guess that cannot be the
  problem?
 
 
  -
  Check out the new SourceForge.net Marketplace.
  It's the best place to buy or sell services for
  just about anything Open Source.
  http://sourceforge.net/services/buy/index.php
  ___
  Nagios-users mailing list
  Nagios-users@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 nagios daemon is running by the way.



 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php
 ___
 Nagios-users mailing list
 Nagios-users@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

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] Error: Could not read object configuration data!

2008-06-05 Thread Chantal Rosmuller
Yes it is, but I changed the permissions already and they are ok now, at least 
I think they should be okay:


servername:~# ls -la /etc/nagios2
total 192
drwxr-xr-x   4 nagios www-data  4096 2008-06-05 15:00 .
drwxr-xr-x 125 root   root  8192 2008-06-05 11:02 ..
-rw-r--r--   1 nagios www-data  1598 2008-05-13 13:18 apache2.conf
-rw-r--r--   1 nagios root 13261 2008-06-05 14:01 cgi.cfg
-rw-r--r--   1 nagios www-data  1830 2008-06-05 10:46 checkcommands.cfgd
drwxr-xr-x   2 nagios www-data  4096 2008-06-05 11:05 conf.d
-rw-r--r--   1 nagios www-data  1926 2008-06-05 10:46 contactgroups.cfg
-rw-r--r--   1 nagios www-data  3945 2008-06-05 10:46 contacts.cfg
-rw-r--r--   1 nagios www-data  1662 2008-06-05 10:46 dependencies.cfg
-rw-r--r--   1 nagios www-data  2256 2008-06-05 10:46 escalations.cfg
-rw-r--r--   1 nagios www-data  4585 2008-06-05 15:00 hostgroups.cfg
-rw-r--r--   1 nagios www-data 11072 2008-06-05 12:56 hosts.cfg
-rw-r--r--   1 nagios www-data 13544 2008-06-05 10:46 minimal.cfg
-rw-r--r--   1 nagios www-data  6542 2008-06-05 13:06 misccommands.cfg
-rw-r--r--   1 nagios www-data 21702 2008-06-05 12:35 nagios.cfg
-rw-r--r--   1 nagios www-data  4692 2008-06-05 10:46 nrpe.cfg
-rw-r--r--   1 nagios www-data 0 2008-06-05 10:46 nrpe_local.cfg
-rw-r-   1 nagios www-data  3100 2008-06-05 10:46 resource.cfg
-rw-r--r--   1 nagios www-data  6363 2008-06-05 10:46 services.cfg
drwxr-xr-x   2 nagios www-data  4096 2007-03-04 23:56 stylesheets
-rw-r--r--   1 nagios www-data  1863 2008-06-05 10:46 timeperiods.cfg


On Thursday 05 June 2008 16:03:36 Frank J. Gómez wrote:
 Is it possible that the upgrader changed permissions/ownership of some
 config file(s) in /etc/nagios/?

 On Thu, Jun 5, 2008 at 8:02 AM, Chantal Rosmuller [EMAIL PROTECTED]

 wrote:
  On Thursday 05 June 2008 13:18:13 Chantal Rosmuller wrote:
   Hi list,
  
   after upgrading from 1.4 to 2.6 on a debian system the webinterface is
 
  not
 
   working anymore, if I click on a menu link I get:
  
   Error: Could not read object configuration data!
  
   the nagios documentation says:
  
  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).
  
   I tried 1 but no errors
   same for option 2
   3, I didn't compile but I used aptitude, so I guess that cannot be the
   problem?
  
  
   ---
  -- Check out the new SourceForge.net Marketplace.
   It's the best place to buy or sell services for
   just about anything Open Source.
   http://sourceforge.net/services/buy/index.php
   ___
   Nagios-users mailing list
   Nagios-users@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 nagios daemon is running by the way.
 
 
 
  -
  Check out the new SourceForge.net Marketplace.
  It's the best place to buy or sell services for
  just about anything Open Source.
  http://sourceforge.net/services/buy/index.php
  ___
  Nagios-users mailing list
  Nagios-users@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



-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] Error: Could not read object configuration data!

2008-06-05 Thread Frank J. Gómez
I'm by no means an expert -- just taking shots in the dark here, but...

Can you run checks from the command line?  If so, it suggests a problem
specific to the CGI.  If not, it would seem the problem is with Nagios per
se.

On Thu, Jun 5, 2008 at 10:09 AM, Chantal Rosmuller [EMAIL PROTECTED]
wrote:

 Yes it is, but I changed the permissions already and they are ok now, at
 least
 I think they should be okay:


 servername:~# ls -la /etc/nagios2
 total 192
 drwxr-xr-x   4 nagios www-data  4096 2008-06-05 15:00 .
 drwxr-xr-x 125 root   root  8192 2008-06-05 11:02 ..
 -rw-r--r--   1 nagios www-data  1598 2008-05-13 13:18 apache2.conf
 -rw-r--r--   1 nagios root 13261 2008-06-05 14:01 cgi.cfg
 -rw-r--r--   1 nagios www-data  1830 2008-06-05 10:46 checkcommands.cfgd
 drwxr-xr-x   2 nagios www-data  4096 2008-06-05 11:05 conf.d
 -rw-r--r--   1 nagios www-data  1926 2008-06-05 10:46 contactgroups.cfg
 -rw-r--r--   1 nagios www-data  3945 2008-06-05 10:46 contacts.cfg
 -rw-r--r--   1 nagios www-data  1662 2008-06-05 10:46 dependencies.cfg
 -rw-r--r--   1 nagios www-data  2256 2008-06-05 10:46 escalations.cfg
 -rw-r--r--   1 nagios www-data  4585 2008-06-05 15:00 hostgroups.cfg
 -rw-r--r--   1 nagios www-data 11072 2008-06-05 12:56 hosts.cfg
 -rw-r--r--   1 nagios www-data 13544 2008-06-05 10:46 minimal.cfg
 -rw-r--r--   1 nagios www-data  6542 2008-06-05 13:06 misccommands.cfg
 -rw-r--r--   1 nagios www-data 21702 2008-06-05 12:35 nagios.cfg
 -rw-r--r--   1 nagios www-data  4692 2008-06-05 10:46 nrpe.cfg
 -rw-r--r--   1 nagios www-data 0 2008-06-05 10:46 nrpe_local.cfg
 -rw-r-   1 nagios www-data  3100 2008-06-05 10:46 resource.cfg
 -rw-r--r--   1 nagios www-data  6363 2008-06-05 10:46 services.cfg
 drwxr-xr-x   2 nagios www-data  4096 2007-03-04 23:56 stylesheets
 -rw-r--r--   1 nagios www-data  1863 2008-06-05 10:46 timeperiods.cfg


 On Thursday 05 June 2008 16:03:36 Frank J. Gómez wrote:
  Is it possible that the upgrader changed permissions/ownership of some
  config file(s) in /etc/nagios/?
 
  On Thu, Jun 5, 2008 at 8:02 AM, Chantal Rosmuller [EMAIL PROTECTED]
 
  wrote:
   On Thursday 05 June 2008 13:18:13 Chantal Rosmuller wrote:
Hi list,
   
after upgrading from 1.4 to 2.6 on a debian system the webinterface
 is
  
   not
  
working anymore, if I click on a menu link I get:
   
Error: Could not read object configuration data!
   
the nagios documentation says:
   
   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).
   
I tried 1 but no errors
same for option 2
3, I didn't compile but I used aptitude, so I guess that cannot be
 the
problem?
   
   
   
 ---
   -- Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@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 nagios daemon is running by the way.
  
  
  
  
 -
   Check out the new SourceForge.net Marketplace.
   It's the best place to buy or sell services for
   just about anything Open Source.
   http://sourceforge.net/services/buy/index.php
   ___
   Nagios-users mailing list
   Nagios-users@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



 -
 Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php
 ___
 Nagios-users mailing list
 Nagios-users@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

-
Check out the new SourceForge.net Marketplace.
It's 

Re: [Nagios-users] Error: Could not read object configuration data!

2008-06-05 Thread Chantal Rosmuller
Thanks,

The nagios server sends out email alerts so it is a cgi problem


On Thursday 05 June 2008 16:20:47 Frank J. Gómez wrote:
 I'm by no means an expert -- just taking shots in the dark here, but...

 Can you run checks from the command line?  If so, it suggests a problem
 specific to the CGI.  If not, it would seem the problem is with Nagios per
 se.

 On Thu, Jun 5, 2008 at 10:09 AM, Chantal Rosmuller [EMAIL PROTECTED]

 wrote:
  Yes it is, but I changed the permissions already and they are ok now, at
  least
  I think they should be okay:
 
 
  servername:~# ls -la /etc/nagios2
  total 192
  drwxr-xr-x   4 nagios www-data  4096 2008-06-05 15:00 .
  drwxr-xr-x 125 root   root  8192 2008-06-05 11:02 ..
  -rw-r--r--   1 nagios www-data  1598 2008-05-13 13:18 apache2.conf
  -rw-r--r--   1 nagios root 13261 2008-06-05 14:01 cgi.cfg
  -rw-r--r--   1 nagios www-data  1830 2008-06-05 10:46 checkcommands.cfgd
  drwxr-xr-x   2 nagios www-data  4096 2008-06-05 11:05 conf.d
  -rw-r--r--   1 nagios www-data  1926 2008-06-05 10:46 contactgroups.cfg
  -rw-r--r--   1 nagios www-data  3945 2008-06-05 10:46 contacts.cfg
  -rw-r--r--   1 nagios www-data  1662 2008-06-05 10:46 dependencies.cfg
  -rw-r--r--   1 nagios www-data  2256 2008-06-05 10:46 escalations.cfg
  -rw-r--r--   1 nagios www-data  4585 2008-06-05 15:00 hostgroups.cfg
  -rw-r--r--   1 nagios www-data 11072 2008-06-05 12:56 hosts.cfg
  -rw-r--r--   1 nagios www-data 13544 2008-06-05 10:46 minimal.cfg
  -rw-r--r--   1 nagios www-data  6542 2008-06-05 13:06 misccommands.cfg
  -rw-r--r--   1 nagios www-data 21702 2008-06-05 12:35 nagios.cfg
  -rw-r--r--   1 nagios www-data  4692 2008-06-05 10:46 nrpe.cfg
  -rw-r--r--   1 nagios www-data 0 2008-06-05 10:46 nrpe_local.cfg
  -rw-r-   1 nagios www-data  3100 2008-06-05 10:46 resource.cfg
  -rw-r--r--   1 nagios www-data  6363 2008-06-05 10:46 services.cfg
  drwxr-xr-x   2 nagios www-data  4096 2007-03-04 23:56 stylesheets
  -rw-r--r--   1 nagios www-data  1863 2008-06-05 10:46 timeperiods.cfg
 
  On Thursday 05 June 2008 16:03:36 Frank J. Gómez wrote:
   Is it possible that the upgrader changed permissions/ownership of some
   config file(s) in /etc/nagios/?
  
   On Thu, Jun 5, 2008 at 8:02 AM, Chantal Rosmuller [EMAIL PROTECTED]
  
   wrote:
On Thursday 05 June 2008 13:18:13 Chantal Rosmuller wrote:
 Hi list,

 after upgrading from 1.4 to 2.6 on a debian system the webinterface
 
  is
 
not
   
 working anymore, if I click on a menu link I get:

 Error: Could not read object configuration data!

 the nagios documentation says:

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).

 I tried 1 but no errors
 same for option 2
 3, I didn't compile but I used aptitude, so I guess that cannot be
 
  the
 
 problem?
 
  ---
 
-- Check out the new SourceForge.net Marketplace.
 It's the best place to buy or sell services for
 just about anything Open Source.
 http://sourceforge.net/services/buy/index.php
 ___
 Nagios-users mailing list
 Nagios-users@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 nagios daemon is running by the way.
 
  -
 
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Nagios-users mailing list
Nagios-users@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
 
  -
  Check out the new SourceForge.net Marketplace.
  It's the best place to buy or sell services for
  just about anything Open Source.
  http://sourceforge.net/services/buy/index.php
  ___
  Nagios-users mailing list
  Nagios-users@lists.sourceforge.net
  https://lists.sourceforge.net/lists/listinfo/nagios-users
 
  ::: Please include Nagios version, 

[Nagios-users] Error: Could not read object configuration data!

2008-01-29 Thread doug fink
FAQ ID F0332 describes the problem I am having, but I do not understand the
meaning or how to check/verify the third item (3.)
Specifically I do not understand  (default text file or template-based
file)  Are these separate configure options?

I can start over and re-configure everything, but wanted to understand if I
am missing something before doing so.
I am running Red Hat Enterprise Linux ES release 32.4.21-9.EL, Nagios
2.10, Pluggins  1.4.11, and gd 2.0.36.
--
FAQ ID F0332
Title:Error: Could not read object configuration data!

Description:When clicking on any of the links on the left hand side you get:
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).

--

1. nagios -v looks good. ( Total Warnings: 0 Total Errors:   0 )
2. log file shows   ( no errors )
[1201628088] Nagios 2.10 starting... (PID=2331)
[1201628088] LOG VERSION: 2.0
[1201628088] Finished daemonizing... (New PID=2332)

( daemon is running.)
nagios2332 1  0 11:34 ?00:00:00 /usr/local/nagios/bin/nagios
-d /usr/local/nagios/etc/nagios.cfg

3.   ?

Everything seemed to install properly. The directories/files/permissions all
look good. I can successfully run the check_ping and check_http. I do
recall seeing a warning in regards to gd.  I believe I read that it could be
ignored somewhere. I hope that is the case. /usr/local/lib  and
/usr/local/include exist,  and have files in them.

(gd)
./configure

(nagios)
 ./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin
--with-htmurl=/nagios/ --with-nagios
-user=nagios --with-nagios-group=nagios --with-command-group=nagcmd
--with-gd-lib=/usr/local/lib --with-gd-inc=/
usr/local/include

(pluggins)
./configure --enable-redhat-pthread-workaround --prefix=/usr/local/nagios
--with-cgiurl=/nagios/cgi-bin

doug
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] Error: Could not read object configuration data!

2008-01-29 Thread Marc Powell


 -Original Message-
 From: [EMAIL PROTECTED] [mailto:nagios-users-
 [EMAIL PROTECTED] On Behalf Of doug fink
 Sent: Tuesday, January 29, 2008 5:08 PM
 To: nagios-users@lists.sourceforge.net
 Subject: [Nagios-users] Error: Could not read object configuration
data!
 
 
 FAQ ID F0332 describes the problem I am having, but I do not
understand
 the meaning or how to check/verify the third item (3.)
 Specifically I do not understand  (default text file or template-based
 file)  Are these separate configure options?

It's a holdover from the Netsaint/Nagios-1 days. You're using
template-based.
 
 I am running Red Hat Enterprise Linux ES release 32.4.21-9.EL,
Nagios
 2.10, Pluggins  1.4.11, and gd 2.0.36.

Is SELinux enabled? That could be a problem if you haven't given proper
access to the nagios files from httpd.


 1. nagios -v looks good. ( Total Warnings: 0 Total Errors:   0 )
 2. log file shows   ( no errors )
 [1201628088] Nagios 2.10 starting... (PID=2331)
 [1201628088] LOG VERSION: 2.0
 [1201628088] Finished daemonizing... (New PID=2332)
 
 ( daemon is running.)
 nagios2332 1  0 11:34 ?00:00:00
 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg
 
 3.   ?

PROFIT?!
 
 Everything seemed to install properly. The
directories/files/permissions
 all look good. I can successfully run the check_ping and check_http.
I

What are the permissions on /usr/local/nagios/var/objects.cache,
status.dat and directories above. They should be such that your web
server can read them. Typically the files are 644 and 664 nagios:nagios
respectively, directories 755. Again, SELinux could be getting you here
if you have the normal file permissions set correctly. Also, does
objects.cache have content fairly closely matching your config (all
templates expanded)?

--
Marc


-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
___
Nagios-users mailing list
Nagios-users@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


Re: [Nagios-users] Error: Could not read object configuration data!

2007-10-31 Thread Jaimie Livingston
Not to be silly, but have to checked your available disk space on the volume 
that your nagios logs are stored? If you're running low on log space, many odd 
things can happen.


- Jaimie Livingston (jaimielives)

---
This thread is located in the archive at this URL:
http://www.nagiosexchange.org/nagios-users.34.0.html?tx_maillisttofaq_pi1[showUid]=5964


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Nagios-users mailing list
Nagios-users@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


[Nagios-users] Error: Could not read object configuration data!

2007-10-30 Thread Siwei Zhang
Hi there,

 

We have problems with our Nagios recently. It was running fine and all
the sudden it shows empty status.

After we restart Nagios and click on the GUI it says:

Error: Could not read object configuration data!

We didn’t change anything. I checked the configuration using “./nagios
–v ../etc/nagios.cfg”

It shows no errors. However, the status.dat is empty and nagios.lock is
empty also.

What could be wrong? Thanks for the help.

 

Kevin 

 

 


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] Error: Could not read object configuration data!

2007-10-30 Thread Siwei Zhang
I found out that there is a file called ‘perfdata.log’ in
/usr/local/nagios/var/ directory.

If I remove it then I can start Nagios again. What is wrong?

 

  _  

From: Siwei Zhang 
Sent: Tuesday, October 30, 2007 10:14 AM
To: 'nagios-users'
Subject: Error: Could not read object configuration data!

 

Hi there,

 

We have problems with our Nagios recently. It was running fine and all
the sudden it shows empty status.

After we restart Nagios and click on the GUI it says:

Error: Could not read object configuration data!

We didn’t change anything. I checked the configuration using “./nagios
–v ../etc/nagios.cfg”

It shows no errors. However, the status.dat is empty and nagios.lock is
empty also.

What could be wrong? Thanks for the help.

 

Kevin 

 

 


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/___
Nagios-users mailing list
Nagios-users@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

Re: [Nagios-users] Error: Could not read object configuration data!

2007-10-30 Thread Joerg Linge
Am Dienstag, 30. Oktober 2007 18:36 schrieb Siwei Zhang:
 I found out that there is a file called ‘perfdata.log’ in
 /usr/local/nagios/var/ directory.
 
 If I remove it then I can start Nagios again. What is wrong?

Do you use the PNP Perfdata Grapher ?

Jörg

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now  http://get.splunk.com/
___
Nagios-users mailing list
Nagios-users@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