Page 1 of 1

nagios web interface problem

Posted: Mon May 09, 2011 2:29 am
by LMW
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: Select all

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.

Alex

Re: nagios web interface problem

Posted: Fri May 13, 2011 4:37 pm
by mguthrie
I haven't messed much with the install from the debian repos, but if you're still having issues with it I would recommend a source install from the tarball at nagios.org. The official nagios documentation is written for a source install.
http://nagios.sourceforge.net/docs/3_0/

Re: nagios web interface problem

Posted: Sun May 15, 2011 11:06 am
by Domotek
I'm not an expert NAGIOS but just out of curiosity does this happen when you connect through the LAN, the WAN or VPN or any of the connections???

I had a similar problem throug the WAN with my PHP server (The web page worked through the LAN but parts of it did not worked through the WAN) I had to play with some services and some credentials to make it worke...

Hope this helps a bit!!