[ZBX-13390] Zabbix Discovery Rule - Error for duplicate item prototype key gets lost when difference in upper / lower case Created: 2018 Jan 24 Updated: 2018 Mar 18 Resolved: 2018 Mar 18 |
|
| Status: | Closed |
| Project: | ZABBIX BUGS AND ISSUES |
| Component/s: | None |
| Affects Version/s: | 2.2.21 |
| Fix Version/s: | None |
| Type: | Incident report | Priority: | Minor |
| Reporter: | Stefan Moser | Assignee: | Unassigned |
| Resolution: | Won't fix | Votes: | 0 |
| Labels: | templates | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Description |
|
Please find an example template with a discovery rule attached. Steps to reproduce:
Full example call: ./zabbix_sender --zabbix-server <zbxserver> --host TEMPLATE_TEST_HOST --key ifx.mona.discovery.processes --value "{\"data\":[{\"{#NAME}\":\"Process.exe\",\"{#NAME_WITHOUT_EXTENSION}\":\"Process\"}, {\"{#NAME}\":\"process\",\"{#NAME_WITHOUT_EXTENSION}\":\"process\"} ]}" --verbose
Result: Expected: Note: Easy to reprodue by changing the call to: {\"data\":[{\"{#NAME}\":\"Process.exe\",\"{#NAME_WITHOUT_EXTENSION}\":\"process\"}, {\"{#NAME}\":\"process\",\"{#NAME_WITHOUT_EXTENSION}\":\"process\"} ]}
|
| Comments |
| Comment by Stefan Moser [ 2018 Jan 24 ] |
|
I noticed that the example calls got lost in translation after ticket creation - i added a txt that contains the example calls. |
| Comment by Glebs Ivanovskis (Inactive) [ 2018 Jan 27 ] |
|
I doubt this issue will be fixed in 2.2, it's in limited support status now. |
| Comment by Alexander Vladishev [ 2018 Mar 18 ] |
|
Your database is not configured as case-sensitive. You need use utf8_bin collate instead of *_ci. See documentation for more details. You can also open the log file of the Zabbix server and see the corresponding errors. Something like: 22238:20180318:233156.722 [Z3005] query failed: [1062] Duplicate entry '10106-perf_counter["\Process(process)\% Processor Time",15]' for key 'items_1' [insert into items (itemid,name,key_,hostid,type,value_type,data_type,delay,delay_flex,history,trends,status,trapper_hosts,units,multiplier,delta,formula,logtimefmt,valuemapid,params,ipmi_sensor,snmp_community,snmp_oid,port,snmpv3_securityname,snmpv3_securitylevel,snmpv3_authprotocol,snmpv3_authpassphrase,snmpv3_privprotocol,snmpv3_privpassphrase,authtype,username,password,publickey,privatekey,description,interfaceid,flags,snmpv3_contextname) values (23702,'Process.exe Process: CPU usage in % Agent','perf_counter["\\Process(Process)\\% Processor Time",15]',10106,7,0,0,300,'',7,365,0,'','%',0,0,'1','',null,'','','','','','',0,0,'',0,'',0,'','','','','',null,4,''),(23703,'process Process: CPU usage in % Agent','perf_counter["\\Process(process)\\% Processor Time",15]',10106,7,0,0,300,'',7,365,0,'','%',0,0,'1','',null,'','','','','','',0,0,'',0,'',0,'','','','','',null,4,''); ] I close this issue as "Won't Fix". |