User Access


Hi All,
Can anyone tell me if it’s possible to restrict access to specific hosts or host groups when viewing via the web interface?

I would like to be able to give users view access to only hosts or groups relevant to that user.



I managed to solve this one myself with some help from a post by Aivan.

You create a contact with the alias being the same as the users login to nagios.
Then in cgi.cfg add a line like this:

authorized_for_[host group]_hosts=[user/alias]

(eg authorized_for_WINDOWS_hosts=bob

This will then give the user/alias “bob” access to the hosts in host group “WINDOWS”.