Ad Widget

Collapse

Zabbix 7.0.6 not creating LLD items when item contains scandic letters etc.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • markosa
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Aug 2022
    • 104

    #1

    Zabbix 7.0.6 not creating LLD items when item contains scandic letters etc.

    Hi everyone. I've been banging my head to wall for a while.... I have zabbix agent (zabbix_agent2 Win64 (Zabbix) 6.0.26) running in windows machine, it returns LLD JSON like:
    [{"{#TESTHOST}": "Test_\u00c4XX\u00c4", "{#TESTSITE}": "\u00c4XX\u00c4"}, {"{#TESTHOST}": "Test_AXXA", "{#TESTSITE}": "AXXA"}] and only AXXA is created(LLD creates host's and hostgroups). I've also tried so that json has [{"{#TESTHOST}": "Test_ÄXXÄ", "{#TESTSITE}": "ÄXXÄ"}, {"{#TESTHOST}": "Test_AXXA", "{#TESTSITE}": "AXXA"}] with same result, only AXXA is created.
    JSON is generated in windows machine using python calls and data is returned to agent using either method:
    sys.stdout.buffer.write(json.dumps(unique_data,ens ure_ascii=False).encode('utf8'))
    sys.stdout.buffer.write(json.dumps(unique_data).en code('utf8'))
    Based on selected output method I can receive that data to proxy(7.0.6) as shown above when using zabbix_get for discovery-item.

    Anyone else seen this kind of behaviour? And possibly fixed it too....
Working...