This article will show you how to create a new read only Nagios user for web access.
This is a three steps process which you will need to:
- Use a web tool to create the user with an encrypted password
- Add the user to the Nagios web access database
- Edit the cgi.cfg to grant access to the new user
1. Step one go to http://www.htaccesstools.com/htpasswd-generator/
And generate a user and a password and click Create htpasswd.file
2.Copy the live and copy it to htpasswd.users located at /user/local/nagios/etc
3.Once done open your cgi.cfg and the two lines in Red under the first two lines.
authorized_for_all_services=nagiosadmin
authorized_for_all_hosts=nagiosadmin
authorized_for_all_services=nagiosweb
authorized_for_all_hosts=nagiosweb
When done try it (there is no need to restart Nagios)