Greetings,
I've installed nagios 3.0.6 from debian lenny repos. I can reach login screen and main page, but if I click on any left-menu section I get following page (see attachment).
My nginx config is:
Code:
server {
listen 80;
server_name myserver.com;
access_log /var/log/nginx/nagios_access.log;
location / {
root /usr/share/nagios3/htdocs;
index index.html;
rewrite ^/nagios3/(.*)$ /$1 break;
auth_basic "Nagios login";
auth_basic_user_file /etc/nagios3/htpasswd.users;
}
location /nagios3/stylesheets {
alias /etc/nagios3/stylesheets;
}
location ~ \.cgi$ {
root /usr/lib/cgi-bin/nagios3;
rewrite ^/cgi-bin/nagios3/(.*)$ /$1;
include /usr/local/nginx/conf/fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_param SCRIPT_FILENAME /usr/lib/cgi-bin/nagios3$fastcgi_script_name;
auth_basic "Nagios login";
auth_basic_user_file /etc/nagios3/htpasswd.users;
fastcgi_param AUTH_USER $remote_user;
fastcgi_param REMOTE_USER $remote_user;
}
}
I've also installed spawn-fcgi and fcgiwrap. As far as I understood, they are required to run dynamic content, because nginx can't do that by default. But I've got stuck on that error above.