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.
Not Found
The requested URL /nagios/cgi-bin/config.cgi was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
OK this seems logical...BUT
I have no docs about creating them, neither to download & create them nor any existing "*cgi*" directory installed nor any procedure talking about it.... So I am just stuck here.
What to do as next step ? where is the rest of documentation to follow ????
regards.
Of cours I needed it by Febuary 2019 ... in production ... else it wouldn't be fun...
During the build process for Nagios, it should of created the config.cgi script when you ran the make command and the "make install" should of installed it.
The "make install-webconf" command should install the Web interface configuration files so you can access the GUI so make sure that command was ran.
What OS and release are you installing Nagios on?
Can you run these commands as root and post the output here?
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Core"
AuthType Basic
AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
Require valid-user
Require all denied
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Core"
AuthType Basic
AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
Require valid-user
Require all denied
</Directory>
Make sure the file exists and that the contents are correct.
If you change anything in that file, restart Apache by running
If you still get the error when trying to access the Web interface, look in the Apache error logs in the following folder for any errors and resolve them if possible or post them here.