New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dev.icinga.com #8696] Can't search for Icinga 2 custom variables #1461
Comments
Updated by elippmann on 2015-04-02 10:53:03 +00:00
|
Updated by elippmann on 2015-04-02 10:53:37 +00:00
Why would casting the column to be case insensitive not help? If someone configures community and Community it's perfectly ok for me to list both results when searching for community. Turning custom var keys to be case sensitive is pain in the ass. |
Updated by mhein on 2015-05-21 08:39:17 +00:00
|
Updated by mhein on 2015-05-21 13:29:54 +00:00
|
Updated by mhein on 2015-05-21 14:11:08 +00:00
|
Updated by mhein on 2015-05-21 14:55:03 +00:00
Applied in changeset dd65498. |
This issue has been migrated from Redmine: https://dev.icinga.com/issues/8696
Created by tgelf on 2015-03-12 08:17:06 +00:00
Assignee: mhein
Status: Resolved (closed on 2015-05-21 14:55:03 +00:00)
Target Version: 2.0.0-rc1
Last Update: 2015-05-21 14:55:03 +00:00 (in Redmine)
When searching for custom variables we upcase varnames as Icinga 1.x stores them that way. This means that _HOST_community will be COMMUNITY in the IDO. Custom vars in Icinga 2 are case sensitive, configuring vars.community AND vars.Community is perfectly valid.
So our upcase strategy fails here. Casting the column to case insensitive would not help either, for ovious reasons. We could introduce dot-separated varnames as virtual filter columns, that would be even better as they would look like in your config: vars.Community and vars.community. We should then of course also support vars.host.Community etc.
Cheers,
Thomas
Changesets
2015-05-21 12:34:43 +00:00 by mhein b9085c6
2015-05-21 12:42:09 +00:00 by mhein e8e3b94
2015-05-21 14:09:03 +00:00 by mhein 7c04664
2015-05-21 14:51:31 +00:00 by mhein dd65498
Relations:
The text was updated successfully, but these errors were encountered: