You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assignee: wanchai
Status: Resolved (closed on 2015-12-16 10:40:04 +00:00)
Target Version: 2.1.1
Last Update: 2015-12-16 11:03:03 +00:00 (in Redmine)
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.
Please see the attached files for the error messages. My DB is PostgreSQL 9.4.5. The URL is
/icingaweb2/monitoring/list/servicegrid?problems
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.
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
Assignee: wanchai
Status: Resolved (closed on 2015-12-16 10:40:04 +00:00)
Target Version: 2.1.1
Last Update: 2015-12-16 11:03:03 +00:00 (in Redmine)
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.
Attachments
Changesets
2015-12-16 10:37:30 +00:00 by aklimov d087ae2
The text was updated successfully, but these errors were encountered: