LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 07-29-2013, 11:47 AM   #1
metalaarif
Member
 
Registered: Oct 2011
Location: Nepal
Distribution: RHEL, CentOS, Slackware
Posts: 127
Blog Entries: 1

Rep: Reputation: 2
Nagios CGI not executing


Hi guys,

I have installed nagios in slackware using slackbuilds. I have done everythings as the README file states. I installed nagios-plugins and checked if my HTTP was running or not using following commad
Quote:
bash-4.2# /usr/libexec/nagios/check_http -H localhost
HTTP OK: HTTP/1.1 200 OK - 299 bytes in 0.016 second response time |time=0.016028s;;;0.000000 size=299B;;;0
My problem is that whenever I log in to my browser http://localhost/nagios And if I try to access "Tactical Overview or Map", it prompts me to download and I know that the CGI script doesn't seem to be executing.

I checked my file which is located in "/etc/httpd/extra/nagios.conf", it looks like this
Quote:
ScriptAlias /nagios/cgi-bin "/usr/sbin/nagios"
<Directory "/usr/sbin/nagios">
Options ExecCGI
AllowOverride AuthConfig
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios/htpasswd.users
Require valid-user
</Directory>
Alias /nagios "/srv/httpd/htdocs/nagios"
<Directory "/srv/httpd/htdocs/nagios">
Options FollowSymLinks
AllowOverride AuthConfig
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios/htpasswd.users
Require valid-user
</Directory>
I have done "Include /etc/httpd/extra/nagios.conf" "/etc/httpd/httpd.conf" but doesn't seem to work.

I even gave 777 to "/usr/sbin/nagios" directory where .cgi scripts are located but no matter what i do, it doesn't work

Any Idea Guys??

Last edited by metalaarif; 07-29-2013 at 11:51 AM.
 
Old 07-29-2013, 02:11 PM   #2
kikinovak
Senior Member
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: Slackware, Slackware64
Posts: 1,951

Rep: Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972
Check your /etc/httpd/httpd.conf if mod_cgi is uncommented.

Code:
LoadModule cgi_module lib/httpd/modules/mod_cgi.so
Cheers,

Niki
 
1 members found this post helpful.
Old 07-30-2013, 04:00 AM   #3
metalaarif
Member
 
Registered: Oct 2011
Location: Nepal
Distribution: RHEL, CentOS, Slackware
Posts: 127
Blog Entries: 1

Original Poster
Rep: Reputation: 2
Thanks so much for your help, I have been trying to solve this problem to no avail but finally, I have managed to cheers.

This thread is SOLVED now.
 
  


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
Nagios :: Forbidden You dont have a permission to access /nagios/cgi-bin/ bala.linuxtech Linux - Software 4 07-07-2013 04:19 AM
Not Found The requested URL /nagios/cgi-bin/tac.cgi was not found on this server. amanamu Linux - Server 5 02-07-2013 04:45 AM
Nagios, Statusmap.cgi and Trend.cgi NOT FOUND edwardcode Linux - Software 24 06-10-2010 08:45 AM
Nagios: statusmap.cgi & Trends.cgi files missing wlchak Linux - Software 6 10-30-2009 07:47 AM
Executing from cgi theonebeyond Programming 4 10-05-2004 12:30 AM


All times are GMT -5. The time now is 10:07 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration