Annoying web login user issue

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Post Reply
colinjack
Posts: 16
Joined: Thu Nov 21, 2013 12:01 pm

Annoying web login user issue

Post by colinjack »

Firstly I must state that this is not a critical problem! It is just bugging me. :?

I have Nagios Core 4.4.14 running on a Raspberry Pi with PiHole - so using Lighty rather than Apache.
Everything is running fine except that although I only login as nagiosadmin on the web interface it says "Logged in as nagiosadmin, user, user (see attached).
This means that I have to set all authorized_for = settings to * rather than nagiosadmin in cgi.cfg otherwise I get permission errors.

My question is if I am logging in as nagiosadmin where on earth is it getting user from?

I have been through all the config files and can't find anything. Obviously I'm missing something but I have been trawling through for days.

I only have nagiosadmin in htpasswd.

Anybody able to help?

Thanks

Colin
Attachments
Capture.JPG
Capture.JPG (14.62 KiB) Viewed 12659 times
colinjack
Posts: 16
Joined: Thu Nov 21, 2013 12:01 pm

Re: Annoying web login user issue

Post by colinjack »

Found it!!

Lighttpd nagios.conf file had this:

setenv.add-environment = ( "REMOTE_USER" => "user" )

Removed it and all sweetness. :D

Colin
Post Reply