LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-09-2011, 03:37 PM   #1
LMW
Member
 
Registered: Oct 2010
Location: Russia / USA
Distribution: Arch Linux
Posts: 36

Rep: Reputation: 2
nagios web interface problem


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.
Attached Thumbnails
Click image for larger version

Name:	nagios.jpg
Views:	23
Size:	195.0 KB
ID:	6987  
 
Old 05-09-2011, 05:29 PM   #2
vkvs
LQ Newbie
 
Registered: May 2011
Posts: 23

Rep: Reputation: 2
Have you verified the binary files are set as +x ? Seems like its just reading file instead of executing it.
 
Old 05-10-2011, 12:30 AM   #3
LMW
Member
 
Registered: Oct 2010
Location: Russia / USA
Distribution: Arch Linux
Posts: 36

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by vkvs View Post
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?

Last edited by LMW; 05-10-2011 at 01:02 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to create another user for Nagios web interface bartsimpson Linux - Newbie 11 03-26-2014 09:49 AM
cannot find Nagios web interface (Nagios 3.2.0) and O/S = Fedora 10 gutiojj Linux - Newbie 7 02-04-2010 09:55 AM
[Nagios-User] Personalised Web Interface fabbie Linux - Software 7 12-05-2009 01:16 PM
Nagios Web Interface JPawlak Linux - Software 1 08-22-2003 04:49 PM
Nagios Web Interface sanfran49 Linux - Software 6 07-15-2003 11:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:03 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration