2.13 CGI Configuration in cgi.cfg
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.[39]
Out of the box, several ...
Get Nagios, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.