nagios web interface problem

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
LMW
Posts: 7
Joined: Mon May 09, 2011 2:04 am

nagios web interface problem

Post 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
Attachments
nagios.jpg
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: nagios web interface problem

Post 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/
Domotek
Posts: 2
Joined: Sat May 14, 2011 12:05 pm

Re: nagios web interface problem

Post 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!!
Locked