NagVis: Disable authentication for users

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.
Locked
Ravil
Posts: 43
Joined: Thu Feb 20, 2014 9:30 pm

NagVis: Disable authentication for users

Post by Ravil »

Hello. I have Nagios Core 3.5 and NagVis 1.7.10 (on CentOS 6.5). I need disable authentication for user "operator" (read-only user) and save authentication for user "admin". is it possible?
I try edit config /etc/httpd/conf.d/nagvis.conf:

Code: Select all

RewriteEngine on
RewriteLock var/log/rewrite.lck
RewriteLog /dev/null
RewriteLogLevel 0

RewriteRule     /nagvis/ - [E=REMOTE_USER:operator]
But it disable authenticatioin for all users, which connect to nagvis-server.
Help, please!
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NagVis: Disable authentication for users

Post by abrist »

That current edit should force all users to authenticate as "operator". Was that your intention?
Have you taken a look at the documentation on the nagvis website?
http://www.nagvis.org/docs/general/faq#anchor2
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Ravil
Posts: 43
Joined: Thu Feb 20, 2014 9:30 pm

Re: NagVis: Disable authentication for users

Post by Ravil »

abrist wrote:That current edit should force all users to authenticate as "operator". Was that your intention?
Have you taken a look at the documentation on the nagvis website?
http://www.nagvis.org/docs/general/faq#anchor2
I have two users: admin and operator. I need to connect without authentication for operators and connect with authentication for admin.
Yes, I looked this documentation, but it disable authenticate for all users. Is it possible to keep the authentication for the admin?
Sorry for bad english :)
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NagVis: Disable authentication for users

Post by abrist »

No. It is an all or nothing configuration. Either choose 1 user to log everybody in as, or you will need to authenticate if more than 1 user is needed.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked