Hide hosts from user in status cgi
Posted: Thu Nov 08, 2012 3:44 pm
Using latest Nagios core on Ubuntu 12.04 (precise)
I have created a user in htpasswd.users. I think set this user up to be a contact for 2 hosts. The first host is the only host in host group A. The second host is one of many hosts in host group B. When I log into the Nagios core website as this new user, and I go to Host Groups page, I expected to see both host group A and B, with one host showing in each group. The Nagios core documentation states that for status.cgi "If you are an authenticated contact you can view all hosts and services for which you are a contact.". However I only see host group A. I'm guessing that is because all the hosts in host group A (there is only one) have that user set as a contact. How can I configure Nagios so that this user sees his 2 hosts?
I could create a new host group based on B that contains just the one host for the user. But then the admin user who has permission to view all hostgroups will have to see all these 'work around' host groups.
I have created a user in htpasswd.users. I think set this user up to be a contact for 2 hosts. The first host is the only host in host group A. The second host is one of many hosts in host group B. When I log into the Nagios core website as this new user, and I go to Host Groups page, I expected to see both host group A and B, with one host showing in each group. The Nagios core documentation states that for status.cgi "If you are an authenticated contact you can view all hosts and services for which you are a contact.". However I only see host group A. I'm guessing that is because all the hosts in host group A (there is only one) have that user set as a contact. How can I configure Nagios so that this user sees his 2 hosts?
I could create a new host group based on B that contains just the one host for the user. But then the admin user who has permission to view all hostgroups will have to see all these 'work around' host groups.