Page 1 of 1

Default user for web interface

Posted: Tue Jan 03, 2012 4:47 pm
by raingary
We have installed Nagios 3.3 and want to implement a requirement wherein everybody can access the web interface without the prompt for a user/passwd and only when someone make some changes in the configuration or execute commands it should prompt for the user/passwd.

Any pointers would be helpful as i can create a read user but the requirement is to have without the prompt for user/passwd.

Re: Default user for web interface

Posted: Tue Jan 03, 2012 5:14 pm
by lmiltchev
The first part is easy, however turning off all authentication is not a good idea under any circumstances.

In the "cgi.cfg" file (/usr/local/nagios/etc/cgi.cfg), you change the "use_authentication" to "0":

Code: Select all

use_authentication=0
Next, you comment out the lines that require authentication for the Nagios directories in the "/etc/httpd/conf.d/nagios.conf" file (everything bellow the "# Order deny,allow").

Restart Nagios and the web server.

I don't know of any way to accomplish the second part of your question. You can create different type of accounts - "view only", "administrator with no contact information", "administrator with limited access", etc. But don't believe you can have it set up the way you described it.

Re: Default user for web interface

Posted: Tue Jan 03, 2012 5:24 pm
by LHammonds
I agree with what lmiltchev said about it not being a good idea.

The less you have to modify the installation from the default, the easier it will be to maintain and upgrade.

I'd recommend setting up a viewer-only account...something called "viewer" with the password also set to "viewer"

If necessary, you could communicate this by creating a landing page on your intranet that says
login with ID of viewer and password of viewer when you click this link --> Nagios Monitor
LHammonds

Re: Default user for web interface

Posted: Wed Jan 04, 2012 11:58 am
by mguthrie
The other solution would be to have an alternative front-end for the read-only users, and then leave the actual Core interface for authorized users.

http://exchange.nagios.org/directory/Ad ... ll/details
http://exchange.nagios.org/directory/Ad ... er/details
http://exchange.nagios.org/directory/Ad ... HP/details
http://exchange.nagios.org/directory/Ad ... ye/details