Page 1 of 2

Possible permissions problem with the Xi interface

Posted: Thu Oct 11, 2012 6:32 am
by Brian_M
Hello,

First I must apologize about the length of this beast of a post ;-)

I'm currently running 2011r3.3 on a CentOs 6.3 minimum install (with Gnome). I have configured the groupings as such:

Hostgroups: The country the host physically sits in.
Servicegroups: The service the host is providing to the region.

Each servicegroup and hostgroup has a generic admin account so that they may monitor all services throughout the region (e.g. dco_admins can log in and see all domain controllers regardless of hostgroup assignment, cz_admins can see all hosts in the Czech Republic regardless of servicegroup assignment). In the past, these regular user accounts could not see hosts / services they were not explicitly authorized to view. Now when a dco_admin logs in, they see all the domain controllers in the DCO service group (correct), but clicking on hostgroup summary, the screen displays all countries along with complete status of every host / service in each country as opposed to only domain controllers. The user can then click on a specific country, and they have a complete list of hosts / services, but see a "no matching services" message on everything but the domain controllers.

If this same user then clicks on the "hostgroup grid", they see all hosts and services regardless of their location / service, and the "no matching services" message is not displayed....they can simply see everything in the system just like an administrative account.

This appears to be happening on all user accounts - when this behavior started I'm not sure, but after the initial install a dco_admin could only see domain controllers. If they clicked on any of the hostgroup links, they would be presented with a list of all domain controllers sorted by country and could not see any information on hosts that were not domain controllers.

Hope this explanation was sufficient to describe the problem.

Thanks,
Brian

Re: Possible permissions problem with the Xi interface

Posted: Thu Oct 11, 2012 8:40 am
by CGraham
I'm attaching a screenshot of the user settings I put in place for an admin who didn't want to see anyone else's alerts.

Re: Possible permissions problem with the Xi interface

Posted: Thu Oct 11, 2012 8:59 am
by Brian_M
Thanks for looking into it, but those settings had no effect for me. My default was just "user" with no additional privileges. :-(

Re: Possible permissions problem with the Xi interface

Posted: Thu Oct 11, 2012 9:01 am
by mguthrie
We did come across a permissions bug last week where some users were seeing the Configure tab when they weren't supposed to be. We corrected it in the 2012r1.0 release, but I'm wondering if these could be related. Here's the patched file if you want to test the fix on your installation without the full upgrade.

Make a backup first, and then replace the following file with the one that is attached.

/usr/local/nagiosxi/html/includes/utils-objects.inc.php

Let us know if that fixes the issue.

Re: Possible permissions problem with the Xi interface

Posted: Thu Oct 11, 2012 9:02 am
by CGraham
Do you have any escalations configured?

Re: Possible permissions problem with the Xi interface

Posted: Thu Oct 11, 2012 9:17 am
by Brian_M
None - host and service escalations are all blank.
CGraham wrote:Do you have any escalations configured?

Re: Possible permissions problem with the Xi interface

Posted: Thu Oct 11, 2012 9:22 am
by Brian_M
Same results I'm afraid. I see the change management guys have me scheduled to do the 2012r1 update and OS patches this weekend....i'll try the update and see if the problem is corrected. Either way, I"ll update this thread.

Thanks again for the help!

-Brian
mguthrie wrote:We did come across a permissions bug last week where some users were seeing the Configure tab when they weren't supposed to be. We corrected it in the 2012r1.0 release, but I'm wondering if these could be related. Here's the patched file if you want to test the fix on your installation without the full upgrade.

Make a backup first, and then replace the following file with the one that is attached.

/usr/local/nagiosxi/html/includes/utils-objects.inc.php

Let us know if that fixes the issue.

Re: Possible permissions problem with the Xi interface

Posted: Thu Oct 11, 2012 9:49 am
by scottwilkerson
Yes, please do let us know.

Thanks.

Re: Possible permissions problem with the Xi interface

Posted: Mon Oct 15, 2012 6:14 am
by Brian_M
Hello Gentlemen,

I'm still experiencing the same behavior after the successful upgrade to 2012r1.0 (see attachments). I'm now logged in as dco_admin and see the following:

Hostgroup Overview:
dco.jpg
Hostgroup Grid:
dco2.jpg
dco_admin account settings:
dco3.jpg

scottwilkerson wrote:Yes, please do let us know.

Thanks.

Re: Possible permissions problem with the Xi interface

Posted: Mon Oct 15, 2012 9:19 am
by scottwilkerson
Can you open a ticket by sending your latest config snapshot to [email protected] along with a link to this thread and the results of the following command

Code: Select all

ps -ef|grep bin/nagios