"URL /nagios/< was not found" after Ubuntu 18.04.01 upgrade
Posted: Mon Oct 22, 2018 1:06 am
Upgrading to Ubuntu 18.04.1 broke my Nagios installation.

Fair warning, this is a venerable installation, running back 5+ years at least, so there may be some odd leftovers of prior versions or setups, although I've done my best to clean them up.
I've done some investigation after reading similar posts, but have come to the end of things to try.
My Apache nagios.conf:
apache2 error log (seems clean to me)
The nagios service starts and stops, but hammers me with errors I can't suppress so I have manually stopped the service for the moment.
Suggestions appreciated.

Fair warning, this is a venerable installation, running back 5+ years at least, so there may be some odd leftovers of prior versions or setups, although I've done my best to clean them up.
I've done some investigation after reading similar posts, but have come to the end of things to try.
My Apache nagios.conf:
Code: Select all
# 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.
#<VirtualHost *:80>
#ServerName nagios.doodle.local
#ServerAlias nagios
#ServerAdmin [email protected]
#DocumentRoot /usr/local/nagios/share
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
ScriptAlias /cgi-bin "/usr/local/nagios/sbin"
Alias /nagios "/usr/local/nagios/share"
<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>
<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>
#</VirtualHost>
Code: Select all
[Sun Oct 21 21:37:11.445137 2018] [so:warn] [pid 4420] AH01574: module dav_module is already loaded, skipping
[Sun Oct 21 21:37:11.451992 2018] [mpm_prefork:notice] [pid 4421] AH00163: Apache/2.4.29 (Ubuntu) SVN/1.9.7 configured -- resuming normal operations
[Sun Oct 21 21:37:11.452026 2018] [core:notice] [pid 4421] AH00094: Command line: '/usr/sbin/apache2'
[Sun Oct 21 21:40:18.576733 2018] [mpm_prefork:notice] [pid 4421] AH00169: caught SIGTERM, shutting down
[Sun Oct 21 21:43:40.349109 2018] [so:warn] [pid 2314] AH01574: module dav_module is already loaded, skipping
[Sun Oct 21 21:43:40.364410 2018] [mpm_prefork:notice] [pid 2617] AH00163: Apache/2.4.29 (Ubuntu) SVN/1.9.7 configured -- resuming normal operations
[Sun Oct 21 21:43:40.364456 2018] [core:notice] [pid 2617] AH00094: Command line: '/usr/sbin/apache2'
Suggestions appreciated.