Undefined index: REMOTE_USER in /usr/local/nagi
Posted: Wed Nov 22, 2017 12:35 am
Hi,
A weird error has just developed on my system. It's a newer (< week old) and was working properly before.
Yes, the htpassword has been set.
What's happening is the system is no longer asking for me to authenticate and I'm getting the following in my web logs:
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg shows:
Total Warnings: 0
Total Errors: 0
The config file for apache has:
Any ideas?
TTFN
A weird error has just developed on my system. It's a newer (< week old) and was working properly before.
Yes, the htpassword has been set.
Code: Select all
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadminCode: Select all
PHP Notice: Undefined index: REMOTE_USER in /usr/local/nagios/share/main.php on line 26, referer: http://la1pup00/nagios/Total Warnings: 0
Total Errors: 0
The config file for apache has:
Code: Select all
<IfVersion >= 2.3>
<RequireAll>
# Require all granted
Require ip 127.0.0.1
Require local
Require host localhost
Require host labas.net
Require host la1pup00.labas.net
Require ip 76.72.150.36
Require ip 46.101.25.142
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</RequireAll>
</IfVersion>
TTFN