Adding Nagios users
Nagios automatically creates the nagiosadmin
user with full access rights to the system, but if you're operating in a larger environment, you will likely want to provide additional user accounts for other users to connect to. This will allow you to use a finer grained access control as well as making your life easier, as employees come and go in the company.
How to do it…
Create the user account:
htpasswd /etc/nagios3/htpasswd.users user
Alternatively, you can reconfigure Apache to use system authentication for Nagios by editing
/etc/apache2/conf-available/nagios3
to read:<IfModule mod_authnz_external.c> AddExternalAuth pwauth /usr/sbin/pwauth SetExternalAuthMethod pwauth pipe </IfModule> <DirectoryMatch (/usr/share/nagios3/htdocs|/usr/lib/cgi-bin/nagios3|/etc/nagios3/stylesheets)> Options FollowSymLinks DirectoryIndex index.php index.html AllowOverride AuthConfig Order Allow,Deny Allow From All...