LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-05-2017, 10:49 AM   #1
ali_khan786
LQ Newbie
 
Registered: Aug 2017
Posts: 2

Rep: Reputation: Disabled
Unable to get process status on nagios web interface


I install nagios through ssh on opensuse machine. then i try to open web interface but i got this error.

Unable to get process status

the /var/log/apache2/error_log file show me this

client denied by server configuration: /usr/local/nagios/sbin/statusjson.cgi,
referer: http://localhost:5555/nagios/main.php

the apache conf for nagios are

/etc/apache2/conf.d/nagios.conf
are

ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"

<Directory "/usr/local/nagios/sbin">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
<IfVersion >= 2.3>
<RequireAll>
Require all granted
# Require host 127.0.0.1

AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</RequireAll>
</IfVersion>
IfVersion < 2.3>
Order allow,deny
Allow from all
# Deny from all
# Allow from 127.0.0.1

AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</IfVersion>
</Directory>

Alias /nagios "/usr/local/nagios/share"

<Directory "/usr/local/nagios/share">
# SSLRequireSSL
Options None
AllowOverride None

Order Allow,Deny
Allow from All
# Require all granted

# AuthName "Nagios Access"
# AuthType Basic
# AuthUserFile /usr/local/nagios/etc/htpasswd.users
# Require valid-user

I try my best to solve this error from last 2 days but nothing helps. if someone give me a tip or help how to get rid of this error. I would be thankful.
 
Old 08-05-2017, 04:04 PM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,513

Rep: Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009Reputation: 1009
Try this

try this:
Code:
AuthName "Nagios Access"
         AuthType Basic
         AuthUserFile /usr/local/nagios/etc/htpasswd.users
# Require valid-user
      </RequireAll>
      </IfVersion>
      IfVersion < 2.3>
          Order allow,deny
          Allow from all
    #     Deny from all
    #     Allow from 127.0.0.1
Comment out this duplication:
Code:
AuthName "Nagios Access"
      AuthType Basic
      AuthUserFile /usr/local/nagios/etc/htpasswd.users
      Require valid-user
And, did you install nagios from the opensuse package or from source?

Last edited by AwesomeMachine; 08-05-2017 at 04:07 PM.
 
Old 08-14-2017, 02:41 AM   #3
ali_khan786
LQ Newbie
 
Registered: Aug 2017
Posts: 2

Original Poster
Rep: Reputation: Disabled
Solved my problem.

Thanks a lot AwesomeMachine. I solve my problem by removing all version from this portion. # Require valid-user. . I am very thankful to you for your response. I am extremely sorry for very late reply. .
 
  


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
Unable to log in to Nagios web interface hodgey87 Linux - Software 4 12-17-2013 05:53 AM
Nagios Web Interface does not notify when nagios service is killed! learnerAlways Linux - Newbie 1 11-04-2011 12:23 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 Web Interface JPawlak Linux - Software 1 08-22-2003 03:49 PM
Nagios Web Interface sanfran49 Linux - Software 6 07-15-2003 10:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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