Nagios 4 on Raspbian Buster
Posted: Thu Apr 23, 2020 5:30 pm
I'm wanting to play around with Nagios a little and decided my Pi4 was a good candidate. I used the Software Manager in Buster to install Nagios 4 and all seemed to go well. But when I tried to access the webpage (http://<host addr>/nagios4, I got a 404 error from Apache. After doing some research and digging around, I ran systemctl status apache2.service, which produced:
:~ $ systemctl status apache2.service
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2020-04-22 20:30:24 CDT; 20h ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 3672 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
Apr 22 20:30:24 NAS systemd[1]: Starting The Apache HTTP Server...
Apr 22 20:30:24 NAS apachectl[3672]: AH00526: Syntax error on line 37 of /etc/apache2/conf-enabled/nagios4-cgi.conf:
Apr 22 20:30:24 NAS apachectl[3672]: Invalid command 'AuthDigestDomain', perhaps misspelled or defined by a module n
Apr 22 20:30:24 NAS apachectl[3672]: Action 'start' failed.
Apr 22 20:30:24 NAS apachectl[3672]: The Apache error log may have more information.
Apr 22 20:30:24 NAS systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Apr 22 20:30:24 NAS systemd[1]: apache2.service: Failed with result 'exit-code'.
Apr 22 20:30:24 NAS systemd[1]: Failed to start The Apache HTTP Server.
So then I pulled up the conf file shown from that output, and shows:
<Files "cmd.cgi">
AuthDigestDomain "Nagios4"
AuthDigestProvider file
AuthUserFile "/etc/nagios4/htdigest.users"
AuthGroupFile "/etc/group"
AuthName "Nagios4"
AuthType Digest
Require all granted
#Require valid-user
</Files>
</DirectoryMatch>
<Directory /usr/share/nagios4/htdocs>
So, what is that parameter supposed to set to (Invalid command 'AuthDigestDomain', perhaps misspelled or defined by a module n)? Thanks.
:~ $ systemctl status apache2.service
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2020-04-22 20:30:24 CDT; 20h ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 3672 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
Apr 22 20:30:24 NAS systemd[1]: Starting The Apache HTTP Server...
Apr 22 20:30:24 NAS apachectl[3672]: AH00526: Syntax error on line 37 of /etc/apache2/conf-enabled/nagios4-cgi.conf:
Apr 22 20:30:24 NAS apachectl[3672]: Invalid command 'AuthDigestDomain', perhaps misspelled or defined by a module n
Apr 22 20:30:24 NAS apachectl[3672]: Action 'start' failed.
Apr 22 20:30:24 NAS apachectl[3672]: The Apache error log may have more information.
Apr 22 20:30:24 NAS systemd[1]: apache2.service: Control process exited, code=exited, status=1/FAILURE
Apr 22 20:30:24 NAS systemd[1]: apache2.service: Failed with result 'exit-code'.
Apr 22 20:30:24 NAS systemd[1]: Failed to start The Apache HTTP Server.
So then I pulled up the conf file shown from that output, and shows:
<Files "cmd.cgi">
AuthDigestDomain "Nagios4"
AuthDigestProvider file
AuthUserFile "/etc/nagios4/htdigest.users"
AuthGroupFile "/etc/group"
AuthName "Nagios4"
AuthType Digest
Require all granted
#Require valid-user
</Files>
</DirectoryMatch>
<Directory /usr/share/nagios4/htdocs>
So, what is that parameter supposed to set to (Invalid command 'AuthDigestDomain', perhaps misspelled or defined by a module n)? Thanks.