Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[dev.icinga.com #10790] "Problems - Service Grid" does not work with host names that contain only digits #2182
This issue has been migrated from Redmine: https://dev.icinga.com/issues/10790
Created by wanchai on 2015-12-07 21:08:40 +00:00
The "Problems - Service Grid" page does not work if there are host objects that have names consisting only of digits. The SQL displayed on the screen contains "WHERE ... AND so.name1 in (2001, 2002)" at the end. 2001 and 2002 are host names, so the query should probably read "WHERE ... AND so.name1 in ('2001', '2002')", i.e. quotes are missing.
Environment: icinga2 2.4.1, icingaweb2 2.1.0 running on Debian 8.
2015-12-16 10:37:30 +00:00 by aklimov d087ae2
Updated by aklimov on 2015-12-11 17:28:51 +00:00
Please tell your RDBMS, its version, the whole SQL "displayed on the screen" and the exact URL you requested.
Updated by wanchai on 2015-12-15 17:57:21 +00:00
Please see the attached files for the error messages. My DB is PostgreSQL 9.4.5. The URL is
The messages looks slightly different now, but that's because they came from another server. Same environment, though.
Here we have WHERE ... AND so.name1 IN (2000, 'debian8', 'win7'). I suppose so.name1 is a string and the set it's tested against contains one integer and two strings.