Lighttpd

Wiki

Nagios is a system and network monitoring application. It watches hosts and services that you specify, alerting you when things go bad and when they get better. Nagios has a web interface that allows you to check and modify configuration via the web. There's a documentation that explains how to set up Nagios with Apache. http://nagios.sourceforge.net/docs/2_0/installweb.html

Nagios comes with CGI scripts that are compiled binaries. We need to make sure that Lighty doesn't try to run them thru Perl.

$HTTP["url"] =~ "^/nagios/cgi-bin" {
cgi.assign = ( "" => "" )
}

In order to see and modify the configuration you need to set up CGI authentication. The general steps to enable CGI authentication would be creating your /etc/nagios/passwd file and adding the following lines to your lighttpd.conf: