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.
Default user for web interface
Re: Default user for web interface
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":
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.
In the "cgi.cfg" file (/usr/local/nagios/etc/cgi.cfg), you change the "use_authentication" to "0":
Code: Select all
use_authentication=0Restart 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!
Re: Default user for web interface
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
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
LHammondslogin with ID of viewer and password of viewer when you click this link --> Nagios Monitor
Re: Default user for web interface
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
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