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.
Nagvis Authenticate Error
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Nagvis Authenticate Error
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
http://support.nagios.com/forum/viewtop ... 35&p=62339
Re: Nagvis Authenticate Error
Hi.,
I"m unable to open the thread.
I"m unable to open the thread.
Re: Nagvis Authenticate Error
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:Then, add the following lines on the bottom of the file (under the "</Directory>" line):Code: Select all
# AuthName "NagVis Access" # AuthType Basic # AuthUserFile /usr/local/nagiosxi/etc/htpasswd.users # Require valid-userOpen the "/usr/local/nagvis/etc/nagvis.ini.php" file in a text editor, and comment out this line:Code: Select all
RewriteEngine on RewriteLock var/log/rewrite.lck RewriteLog /dev/null RewriteLogLevel 0 RewriteRule /nagvis/ - [E=REMOTE_USER:nagiosadmin]so that it will look like this:Code: Select all
logonenvvar="PHP_AUTH_USER"Restart apache:Code: Select all
; logonenvvar="PHP_AUTH_USER"Let me know if this worked.Code: Select all
service httpd restart
Former Nagios employee
Re: Nagvis Authenticate Error
Thanks...
It is working fine now..
It is working fine now..
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Nagvis Authenticate Error
Awesome! Sorry that I posted a link from a section you cannot view, glad its all figured out now.