Error: Could not read host and service status information!

Andrews, Allison allison.andrews at epi.epson.com
Thu Mar 24 21:24:14 CET 2005


Error: Could not read host and service status information!

I had been running Nagios 1.2 for over a year with no problems, but the
system it was running on crashed and with only a backup of the configuration
files, I have been building a new Nagios system.  This is on SUSE 9.1.

I went through the instructions step by step and everything seemed to go
smoothly, but none of the .cgi screens will come up.  Instead I get the
"Error: Could not read host and service status information!" message.

Here's what I've checked and what I know so far.

There are no errors in the nagios or apache2 logs.
Nagios itself is working. I am getting the correct notifications in my
e-mails

Here are the ps -ef lines for the running apache2 and nagios applications:
wwwrun    9371  9368  0 09:32 ?        00:00:00 /usr/sbin/httpd2-prefork -f
/etc/apache2/httpd.conf
nagios    9397     1  0 09:32 ?        00:00:00 /etc/nagios/bin/nagios -d
/etc/nagios/etc/nagios.cfg

(Nagios was installed in /etc/nagios to match the directory setup of the
previous installation)

Here are the Alias lines from httpd.conf:
ScriptAlias /nagios/cgi-bin /etc/nagios/sbin
<Directory "/etc/nagios/sbin">
   AllowOverride AuthConfig
   Options ExecCGI
   Order allow,deny
   Allow from all
</Directory>

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

(I have also tried variations by adding/removing the trailing / with no
effect.)

Here are the important lines from cgi.cfg:
main_config_file=/etc/nagios/etc/nagios.cfg
physical_html_path=/etc/nagios/share
url_html_path=/nagios
use_authentication=1

All of the paths in nagios.cfg are correct.

/etc/passwd
wwwrun:x:30:8:WWW daemon apache:/var/lib/wwwrun:/bin/false
nagios:x:1001:100::/home/nagios:/bin/bash

/etc/group
nagios:x:101:nagios1,wwwrun,nagios,nobody
nagiocmd:!:1001:wwwrun,nagios,nobody

Here are the permissions on the appropriate directories:
/etc/nagios
drwxr-xr-x   8 nagios nagios    192 Mar 24 12:19 .
drwxr-xr-x  60 root   root     5776 Mar 24 09:29 ..
drwxrwxrwx   2 nagios nagiocmd  104 Mar 23 15:10 bin
drwxrwxrwx   2 nagios nagiocmd 1112 Mar 24 12:20 etc
drwxrwxrwx   2 nagios nagiocmd 1744 Mar 23 16:56 libexec
drwxrwxrwx   2 nagios nagiocmd  544 Mar 24 08:57 sbin
drwxrwxrwx   9 nagios nagiocmd  416 Mar 24 09:04 share
drwxrwxrwx   4 nagios nagiocmd  160 Mar 23 16:20 var
(I have set everything to 777 just to try to get things working)

/etc/nagios/sbin
drwxrwxrwx  2 nagios nagiocmd    544 Mar 24 08:57 .
drwxr-xr-x  8 nagios nagios      192 Mar 24 12:19 ..
-rwxr-xr-x  1 root   root        103 Mar 24 08:57 .htaccess
-rwxrwxrwx  1 nagios nagiocmd 147372 Mar 23 15:02 avail.cgi
-rwxrwxrwx  1 nagios nagiocmd 148360 Mar 23 15:02 cmd.cgi
-rwxrwxrwx  1 nagios nagiocmd 117452 Mar 23 15:02 config.cgi
-rwxrwxrwx  1 nagios nagiocmd 161476 Mar 23 15:02 extinfo.cgi
-rwxrwxrwx  1 nagios nagiocmd 109964 Mar 23 15:02 history.cgi
-rwxrwxrwx  1 nagios nagiocmd    103 Mar 23 18:35 htaccess
-rwxrwxrwx  1 nagios nagiocmd   9696 Mar 23 15:10 nagios-statd
-rwxrwxrwx  1 nagios nagiocmd 105900 Mar 23 15:02 notifications.cgi
-rwxrwxrwx  1 nagios nagiocmd 103784 Mar 23 15:02 outages.cgi
-rwxrwxrwx  1 nagios nagiocmd 106156 Mar 23 15:02 showlog.cgi
-rwxrwxrwx  1 nagios nagiocmd 150920 Mar 23 15:02 status.cgi
-rwxrwxrwx  1 nagios nagiocmd 119564 Mar 23 15:02 statuswml.cgi
-rwxrwxrwx  1 nagios nagiocmd 114632 Mar 23 15:02 statuswrl.cgi
-rwxrwxrwx  1 nagios nagiocmd 123244 Mar 23 15:02 summary.cgi
-rwxrwxrwx  1 nagios nagiocmd 128104 Mar 23 15:02 tac.cgi

/etc/nagios/var
drwxrwxrwx  4 nagios nagiocmd 160 Mar 23 16:20 .
drwxr-xr-x  8 nagios nagios   192 Mar 24 12:19 ..
drwxrwxr-x  2 nagios nagios    48 Mar 23 15:02 archives
-rw-r--r--  1 nagios users      0 Mar 24 09:32 nagios.log
drwxrwsr-x  2 wwwrun nagiocmd  80 Mar 24 09:32 rw
-rw-r--r--  1 nagios users      0 Mar 24 09:32 status.sav

/etc/nagios/var/rw
drwxrwsr-x  2 wwwrun nagiocmd  80 Mar 24 09:32 .
drwxrwxrwx  4 nagios nagiocmd 160 Mar 23 16:20 ..
prw-rw----  1 nagios nagiocmd   0 Mar 24 09:32 nagios.cmd

------------------

So far, nothing I have tried has made any difference.  Does anything stand
out to anyone that could be causing the problem?  I have checked all the
newsgroups I could find, and google, and nothing has budged the problem in
the slightest.

Any advice would be appreciated.

Allison Andrews
Unix Administrator
Epson Portland Inc






-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
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