NagiosRecipe » History » Revision 2

Revision 1 (Anonymous, 2006-04-08 13:21) → Revision 2/13 (Anonymous, 2006-04-08 13:26)

= Setting up Nagios Web Interface with Lighty = 

 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. 

 This assumes that Nagios is installed in /usr/local/nagios. Nagios comes with CGI scripts that are compiled binaries. We need to make sure that Lighty doesn't try to run them thru Perl. Ensure that you have cgi module enabled in server.modules and then make sure that your cgi.assign looks like this: 

 cgi.assign                   = ( ".pl"    => "/usr/bin/perl", 
                                ".cgi" => "" ) 

 Add the following to /etc/lighttpd/lighttpd.conf: 
 alias.url =       ( 
                 "/nagios/cgi-bin" => "/usr/local/nagios/sbin", 
                 "/nagios" => "/usr/local/nagios/share"