In order for the Web front end to work correctly, Nagios needs the configuration file
cgi.cfg. Nagios' example file can initially be taken over one-to-one, since the paths contained in it were set correctly during installation:
nagios@linux:/etc/nagios$ cp sample/cgi.cfg-sample ./cgi.cfg
Important: the file
cgi.cfg must be located in the same directory as the file
nagios.cfg, because the CGI programs have been compiled in this path permanently. If
cgi.cfg is located in a different directory, the Web server must also be given an environment variable with the correct path, called
NAGIOS_CGI_CONFIG. How this is set in the case of Apache is described in the corresponding online documentation.
Out of the box, several ...