LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   nagios web interface problem (https://www.linuxquestions.org/questions/linux-server-73/nagios-web-interface-problem-879705/)

LMW 05-09-2011 02:37 PM

nagios web interface problem
 
1 Attachment(s)
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.

vkvs 05-09-2011 04:29 PM

Have you verified the binary files are set as +x ? Seems like its just reading file instead of executing it.

LMW 05-09-2011 11:30 PM

Quote:

Originally Posted by vkvs (Post 4351404)
Have you verified the binary files are set as +x ? Seems like its just reading file instead of executing it.

As far as I can see, all files listed in nginx.conf have execution bit. Can you please specify what files exactly should be set to +x?


All times are GMT -5. The time now is 06:40 AM.