[ZBX-7958] Duplicate Applications can't be assigned to same host if case is different. Created: 2014 Mar 18 Updated: 2017 May 30 Resolved: 2014 Mar 18 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Frontend (F) |
Affects Version/s: | 2.2.1, 2.2.2 |
Fix Version/s: | None |
Type: | Incident report | Priority: | Trivial |
Reporter: | Yannick Moussette | Assignee: | Unassigned |
Resolution: | Won't fix | Votes: | 0 |
Labels: | applications | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Zabbix 2.2.1 on CentOs 6.5 using MySql database backend. |
Issue Links: |
|
Description |
when assigning different templates that add items to the same application, if the Application name's case is not respected. In Example, if I was to link a template that defines Application "os" (lowercase) to a host that already had the "OS" (uppercase) application, we get the following error message: Error in query [INSERT INTO applications (name,hostid,applicationid) VALUES ('os','10106','597') ] [Duplicate entry '10106-os' for key 'applications_2'] If I was to change the template to use uppercase "OS" instead, I would not get the error message, and the template would be succesfully linked. I think this is mostly a standardization issue: Either Applications are case-sensitive and allow for same-name applications with different "case" to co-exist (Application, APPLICATION, application), or they are case-insensitive, and as such should be |
Comments |
Comment by Aleksandrs Saveljevs [ 2014 Mar 18 ] |
|
Comment by Yannick Moussette [ 2014 Mar 18 ] |
Understood, I'll try altering my database as outlined in Thanks, Yannick. |
Comment by Yannick Moussette [ 2014 Mar 18 ] |
Confirmed, doing the following to change the MySQL database to case-sensitive database does resolve the issue. Adding an identical but "case-different" Application creates a new Application with respect to the "case" used. The problem being resolved, is having multiple similar Applications with different "case" something that is wanted, or should they all be "Merged" with similar Application, irregardless of case? I used these commands, as per 1- Stop Zabbix Server For anyone reading this, please refer to Thanks, Yannick. |
Comment by richlv [ 2014 Mar 18 ] |
zabbix entities are mostly case-sensitive, so this works as intended - thanks for confirming |