LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-24-2011, 09:26 AM   #1
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
nagios new install doesn't find CGI scripts


Hello

A new installation of nagios on a headless server can be browsed but clicking on any of the LHS menu items (green "lights") except Home produces an error message like "The requested URL /cgi-bin/nagios3/config.cgi was not found on this server".

What I've tried:
  1. Netsearched for nagios with "The requested URL" with "was not found on this server". Got few hits, suggesting the problem is specific to this server.
  2. Checked the nagios Apache config file is symlinked from /etc/apache2/conf.d and has a sane ScriptAlias and DirectoryMatch.
  3. Checked the CGI script does exist and is readable (and executable, in case it matters).
The evidence:
Code:
root@CW8vDS:~# ls -l /etc/apache2/conf.d/nagios3.conf 
lrwxrwxrwx 1 root root 25 Oct 24 18:47 /etc/apache2/conf.d/nagios3.conf -> /etc/nagios3/apache2.conf
root@CW8vDS:~# ls -l /etc/nagios3/apache2.conf
-rw-r--r-- 1 root root 1904 Jul  4  2010 /etc/nagios3/apache2.conf
root@CW8vDS:~# grep -E -v '^[[:space:]]*#|^$' < /etc/nagios3/apache2.conf
ScriptAlias /cgi-bin/nagios3 /usr/lib/cgi-bin/nagios3
ScriptAlias /nagios3/cgi-bin /usr/lib/cgi-bin/nagios3
Alias /nagios3/stylesheets /etc/nagios3/stylesheets
Alias /nagios3 /usr/share/nagios3/htdocs
<DirectoryMatch (/usr/share/nagios3/htdocs|/usr/lib/cgi-bin/nagios3|/etc/nagios3/stylesheets)>
	Options FollowSymLinks
	DirectoryIndex index.php
	AllowOverride AuthConfig
	Order Allow,Deny
	Allow From All
	AuthName "Nagios Access"
	AuthType Basic
	AuthUserFile /etc/nagios3/htpasswd.users
	require valid-user
</DirectoryMatch>
root@CW8vDS:~# ls -l /usr/lib/cgi-bin/nagios3/config.cgi
-rwxr-xr-x 1 root root 206024 Jul  4  2010 /usr/lib/cgi-bin/nagios3/config.cgi
OS: Debian Squeeze 64 bit
nagios: installed by aptitude install nagios
Apache: as installed with the OS plus some port-based virtual servers.

What to check next?

Best

Charles

Last edited by catkin; 10-24-2011 at 09:28 AM. Reason: Put closing > on DirectoryMatch
 
Old 10-25-2011, 05:40 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578

Original Poster
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Solved. A virtual host on port 80 was masking the settings in /etc/nagios3/apache2.conf
 
  


Reply



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
Cant seem to run any cgi scripts in cgi-bin folder, confused? j.smith1981 Linux - Server 5 02-14-2011 05:38 AM
Nagios, Statusmap.cgi and Trend.cgi NOT FOUND edwardcode Linux - Software 24 06-10-2010 07:45 AM
cannot find Nagios web interface (Nagios 3.2.0) and O/S = Fedora 10 gutiojj Linux - Newbie 7 02-04-2010 08:55 AM
Nagios: statusmap.cgi & Trends.cgi files missing wlchak Linux - Software 6 10-30-2009 06:47 AM
AD user login to Nagios - unable to execute CGI scripts in apache dbmacartney Linux - Server 1 10-07-2009 03:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:11 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