Blocking view access to all hosts and limit to specfic 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.
Locked
fm2ahmed
Posts: 32
Joined: Wed Oct 09, 2013 9:41 am

Blocking view access to all hosts and limit to specfic hosts

Post by fm2ahmed »

Hi,

I have setup a nagios user who as has got access to 22 hosts and that's fine it works and Nagios shows it up as well.

[img]
Nagios_hosts.jpg
[/img]


But when I go into hostgroups summary, it shows all hosts (48). Why??? I want it to show me same 22 instead of 48.

[img]
Nagios_hostsgroups.jpg
[/img]

Can you please help ASAP??

Regards,
Farooq Ahmed
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Blocking view access to all hosts and limit to specfic h

Post by tmcdonald »

What sort of access rights did you give this user? It doesn't seem odd at all that s/he could see how many hosts are in a hostgroup, but depending on the rights may or may not be able to view them specifically.
Former Nagios employee
fm2ahmed
Posts: 32
Joined: Wed Oct 09, 2013 9:41 am

Re: Blocking view access to all hosts and limit to specfic h

Post by fm2ahmed »

Hi,

When you say access right, what do u want me to check? and where?? in cgi.cfg??

Regards,
Farooq Ahmed
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Blocking view access to all hosts and limit to specfic h

Post by abrist »

This actually a bug that has been around quite a while. The user can see all members of a hostgroup from the hostgroup summary page, even if they only have rights to a select few. The user should still be restricted from drilling down into the details of objects they are not authorized for.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
fm2ahmed
Posts: 32
Joined: Wed Oct 09, 2013 9:41 am

Re: Blocking view access to all hosts and limit to specfic h

Post by fm2ahmed »

Hi,

Ok thanks for clarification.

Regards,
Farooq Ahmed
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Blocking view access to all hosts and limit to specfic h

Post by slansing »

Before we close this up I wanted to let you know that this is recorded for the developers to take a look at.
Locked