Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
When going to my Nagios webpage I'm seeing a red 'X' and a message saying "Unable to get process data". Everything on else on the homepage looks fine, but when clicking on "Hosts" or "Services" links I get to a page saying: "Error: Could not read host and service status information!:
The Nagios log seems fine, however the httpd error_log states this error several times:
"AH01276: Cannot serve directory /var/www/html/: No matching DiretoryIndex (index.html, index.html.var, index.php, index.php) found, and server-generated directory index forbidden by Options directive"
Nothing is is /var/www/html/ and I'm not sure why Nagios is looking there. I'm not seeing anything pointing to it. Let me know if you'd like to see any config files.
Nagios should have installed a few files in /var/www/html. Take a look at your install log and see if you missed anything. If it were me, I'd start over with a fresh VM.
A previous employee had installed Nagios 3.5.1 on another VM. We are currently using this VM in production (planning on moving to new VM with Nagios v4). This old VM doesn't have anything in /var/www/html either
You should have something in your http configuration directory for nagios.conf that describes where to find Nagios. Check /etc/httpd/conf.d and see if there is a nagios.conf file there. If so, can you post its contents?
# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
#
# This file contains examples of entries that need
# to be incorporated into your Apache web server
# configuration file. Customize the paths, etc. as
# needed to fit your system.
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
<IfVersion >= 2.3>
<RequireAll>
Require all granted
# Require host 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</RequireAll>
</IfVersion>
<IfVersion < 2.3>
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</IfVersion>
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
# SSLRequireSSL
Options None
AllowOverride None
<IfVersion >= 2.3>
<RequireAll>
Require all granted
# Require host 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</RequireAll>
</IfVersion>
<IfVersion < 2.3>
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</IfVersion>
</Directory>