O'Reilly logo

Nagios, 2nd Edition by Wolfgang Barth

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required