Nagvis Authenticate Error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dhinesh
Posts: 15
Joined: Tue Nov 12, 2013 4:58 am

Nagvis Authenticate Error

Post by dhinesh »

Hi,
While I'm trying to access Nagvis, got the below error.

Unable to authenticate user. The environment variable PHP_AUTH_USER is not set or empty.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagvis Authenticate Error

Post by slansing »

Please see this thread and verify/make the changes specified by lmiltchev, let us know if it helps:

http://support.nagios.com/forum/viewtop ... 35&p=62339
dhinesh
Posts: 15
Joined: Tue Nov 12, 2013 4:58 am

Re: Nagvis Authenticate Error

Post by dhinesh »

Hi.,
I"m unable to open the thread.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagvis Authenticate Error

Post by tmcdonald »

I will directly quote what is relevant from that thread:
lmiltchev wrote:Make sure you have all these lines commented out in the "/etc/httpd/conf.d/nagvis.conf" file:

Code: Select all

# AuthName "NagVis Access"
# AuthType Basic
# AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users
# Require valid-user
Then, add the following lines on the bottom of the file (under the "</Directory>" line):

Code: Select all

RewriteEngine   on
RewriteLock     var/log/rewrite.lck
RewriteLog      /dev/null
RewriteLogLevel 0
RewriteRule     /nagvis/ - [E=REMOTE_USER:nagiosadmin]
Open the "/usr/local/nagvis/etc/nagvis.ini.php" file in a text editor, and comment out this line:

Code: Select all

logonenvvar="PHP_AUTH_USER"
so that it will look like this:

Code: Select all

; logonenvvar="PHP_AUTH_USER"
Restart apache:

Code: Select all

service httpd restart
Let me know if this worked.
Former Nagios employee
dhinesh
Posts: 15
Joined: Tue Nov 12, 2013 4:58 am

Re: Nagvis Authenticate Error

Post by dhinesh »

Thanks...
It is working fine now.. :D
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagvis Authenticate Error

Post by slansing »

Awesome! Sorry that I posted a link from a section you cannot view, glad its all figured out now.
Locked