Default user for web interface

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
raingary
Posts: 9
Joined: Tue Nov 29, 2011 2:04 pm

Default user for web interface

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Default user for web interface

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
LHammonds
Posts: 23
Joined: Mon Jan 02, 2012 9:03 pm
Location: Behind you!!!

Re: Default user for web interface

Post 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
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Default user for web interface

Post 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
Locked