Restricting user for accessing details of remote hosts

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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Restricting user for accessing details of remote hosts

Post by slansing »

I am not quite sure what you are asking here, we have shown you how to configure this via assigning a user's contact to an object, or objects. At this time, that is really the only way to do this. Please show the output of what abrist asked so that we can verify if your user will have rights to see only what their contact is assigned to.
john.akash
Posts: 11
Joined: Tue Mar 11, 2014 6:46 am

Re: Restricting user for accessing details of remote hosts

Post by john.akash »

[root@nagios ~]# grep "authorized_for" /usr/local/nagios/etc/cgi.cfg
authorized_for_system_information=*
authorized_for_configuration_information=*
authorized_for_system_commands=*
authorized_for_all_services=*
authorized_for_all_hosts=*
authorized_for_all_service_commands=*
authorized_for_all_host_commands=*
#authorized_for_read_only=user1,user2

This the out put.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Restricting user for accessing details of remote hosts

Post by slansing »

You will want to place their username/contact under:

Code: Select all

authorized_for_read_only=
And make sure that it is assigned to the objects you want them to view. Also, make sure that that line is uncommented, as it appears it is in your post.
Locked