Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
[dev.icinga.com #4002] new restrictions: overlapping counters wrong in status cronk compared to grid view #1122
This issue has been migrated from Redmine: https://dev.icinga.com/issues/4002
Created by mfriedrich on 2013-04-28 19:35:13 +00:00
I'm splitting the issue right now, as the original permission rewrite in #3715 would get bloated.
these tests were done using git next (1.9.0-beta):
example for overlapping servicegroups:
which is considered correct on the screenshot. but the host counters are wrong. i would expect that only
will be shown, so 3 hosts at all. instead, you can access all hosts which i consider wrong in this regards.
example for overlapping hostgroups:
example for overlapping service customvars:
example for overlapping host customvars:
and the most sophisticated example for hostgroups, servicegroups and customvars combined:
conclusion - mixing permissions does not work that well, at least not with oracle.
the complete configuration used for these overlapping tests can be found on core git in 'next' - tests/etc/3715.cfg
2013-04-30 15:44:21 +00:00 by mfrosch b982b4f
Updated by mfriedrich on 2013-04-28 20:04:44 +00:00
tests with mysql using the exact same configuration and restrictions as mentioned above.
all hosts (wrong again!), 26 services (should be 8 (description above)). grid view is ok.
14 hosts (should be 5), 14*7=89 services (should be 35). grid view is ok.
exact same behaviour as oracle, status counters wrong (6 hosts instead of 5, 42 services instead of 35, grid ok
status counter - all hosts (wrong!), 40 services (instead of 35). grid view is ok.
so basically, this is affects all rdbms (i would guess for pgsql right now, as it's late).
Updated by mfriedrich on 2013-04-28 20:05:22 +00:00
Updated by mfrosch on 2013-04-30 15:54:57 +00:00
This should be fixed with b982b4f - I fixed the distinct there.
Thats working as intended, not really possible to limit it with the current API
Could you describe this behavior and maybe retest it with the fixed summary counters?
In addition it will be great to test the contactgroup limitation also.
Updated by mfriedrich on 2013-04-30 16:11:34 +00:00
i've tested contactgroup restrictions yesterday with oracle - working fine.
regarding the combined restrictions - look for "hostgroups, servicegroups and customvars combined:" in the original issue. did not test any further as this did not work in the first place.
Updated by mfriedrich on 2013-05-04 11:37:54 +00:00
tests with the fix (now mysql)
tests with oracle will follow soon.
Updated by mfriedrich on 2013-05-04 12:04:38 +00:00
good things with oracle first:
but their restrictions are broken. that does not only affect overlapping, but is a general problem. i will open a new issue for that.
basically i think the original issue can be resolved. thanks for your hard work.