On Fri, May 23, 2003 at 06:04:01AM -0500, Bryan K. Walton wrote......
> On Thu, May 22, 2003 at 11:55:24PM -0400, Kevin Coyner wrote:
> >
> > I can see the nagios web page at http://localhost/nagios/, and pages
> > like "View Config" and "Event Log" work fine. But all of the monitoring
> > pages that use cgi's give the err msg:
> >
> > Whoops! Error: Could not read host and service status information!
> >
> > I just can't see the monitoring pages on the web interface.
>
> Well, if you are positive Nagios is running, then it seems that the
> problem with purely with your webserver. Is that a new install also?
> You might check that you have cgis enabled on your server. For example,
> if you are using Apache2, you need to copy the file cgi.load from
> mods_available to mods_enabled.
Nagios is definitely running:
sumida:root:/var/log# cat syslog |grep nagios
May 23 06:37:41 sumida nagios: Auto-save of retention data completed
successfully.
May 23 07:12:31 sumida nagios: SERVICE ALERT:
holidayblue.com;PING;WARNING;SOFT;1;PING WARNING - Packet loss = 40%,
RTA = 26.00 ms
May 23 07:13:31 sumida nagios: SERVICE ALERT:
holidayblue.com;PING;OK;SOFT;2;PING OK - Packet loss = 0%, RTA = 24.50
ms
So as you suggest, it's probably in my Apache setup, which is version
1.3.27.
In /etc/apache/httpd.conf, I have:
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory /usr/lib/cgi-bin/>
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
</Directory>
and from /etc/nagios/apache.conf, I have:
ScriptAlias /cgi-bin/nagios /usr/lib/cgi-bin/nagios/
ScriptAlias /nagios/cgi-bin /usr/lib/cgi-bin/nagios/
<DirectoryMatch /usr/lib/cgi-bin/nagios/>
Options ExecCGI
AllowOverride AuthConfig
Order Allow,Deny
Allow From All
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios/htpasswd.users
require valid-user
</DirectoryMatch>
Alias /netsaint /usr/share/nagios/htdocs/
Alias /nagios /usr/share/nagios/htdocs/
<DirectoryMatch /usr/share/nagios/htdocs/>
Options FollowSymLinks
AllowOverride AuthConfig
Order Allow,Deny
Allow From All
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios/htpasswd.users
require valid-user
</DirectoryMatch>
I'm thinking this should cover it, but will definitely heed any pointers
from anyone.
Thanks
Kevin
Attachment:
pgpOE4nI0HJt2.pgp
Description: PGP signature