Hello Zabbix experts,
I'm encountering a strange issue post 4.4.4 upgrade. My previous version was 4.2.6.
I wrote a loadable module to allow direct kafka feeding from Zabbix using history loadable module. Everythings where fine.
But after our upgrade to 4.4.4 version, I discovered that the function :
void DCconfig_get_items_by_itemids(DC_ITEM *items, const zbx_uint64_t *itemids, int *errcodes, size_t num);
do not returns DC_ITEM struct key_orig field alongside other fields... (like units etc...)
If I re-compile my loadablemodule using 4.2.6 sources it's working as expected. But when I compile the module using 4.4.4 sources of Zabbix I encoutner the issue..
Here under an extract of my log :
With 4.2.6 sources :
21726:20200123:122327.988 [sentinelHistoryLoader.so] Handling host key [xxxxx], itemid : [55086]
21726:20200123:122327.988 [sentinelHistoryLoader.so] Handling item key [web.test.fail[LicenseAdministrationWebsite_Availability]], value : [0], itemid : [55086]
21726:20200123:122327.988 [sentinelHistoryLoader.so] Handling host key [xxxxx], itemid : [65214]
21726:20200123:122327.988 [sentinelHistoryLoader.so] Handling item key [web.test.rspcode[Tosca_EventMonitor_ Website,Tosca_EventMonitor_ Website]], value : [200], itemid : [65214]
21726:20200123:122327.988 [sentinelHistoryLoader.so] Handling host key [xxxx], itemid : [65210]
21726:20200123:122327.988 [sentinelHistoryLoader.so] Handling item key [web.test.fail[Tosca_EventMonitor_ Website]], value : [0], itemid : [65210]
21726:20200123:122327.988 [sentinelHistoryLoader.so] Handling host key [xxxx], itemid : [65252]
21726:20200123:122327.988 [sentinelHistoryLoader.so] Handling item key [web.test.rspcode[LicenseAdministrationWebsite_Availability,License Administration Availability]], value : [200], itemid : [65252]
21726:20200123:122327.988 [sentinelHistoryLoader.so] Handling host key [xxx], itemid : [65248]
21726:20200123:122327.988 [sentinelHistoryLoader.so] Handling item key [web.test.fail[LicenseAdministrationWebsite_Availability]], value : [0], itemid : [65248]
21726:20200123:122327.988 sentinelHistoryLoader.so Kafka flush RC opm_metric_zabbix: Success, RC : 0
With 4.4.4 sources :
25963:20200123:122507.862 [sentinelHistoryLoader.so] Finished syncing int values
25956:20200123:122508.761 [sentinelHistoryLoader.so] Syncing 2 int values
25956:20200123:122508.762 [sentinelHistoryLoader.so] Handling host key [xxxxx], itemid : [55082]
25956:20200123:122508.763 [sentinelHistoryLoader.so] Handling item key [], value : [0], itemid : [55082]
25956:20200123:122508.763 [sentinelHistoryLoader.so] Handling host key [xxxxx], itemid : [52507]
25956:20200123:122508.763 [sentinelHistoryLoader.so] Handling item key [], value : [0], itemid : [52507]
25956:20200123:122508.763 sentinelHistoryLoader.so Kafka flush RC opm_metric_zabbix: Success, RC : 0
the key_orig from DC_ITEM struct is always empty..
Did anyone encountered that kind of issue ?
Thanks for your help.
Regards.
Emmanuel
I'm encountering a strange issue post 4.4.4 upgrade. My previous version was 4.2.6.
I wrote a loadable module to allow direct kafka feeding from Zabbix using history loadable module. Everythings where fine.
But after our upgrade to 4.4.4 version, I discovered that the function :
void DCconfig_get_items_by_itemids(DC_ITEM *items, const zbx_uint64_t *itemids, int *errcodes, size_t num);
do not returns DC_ITEM struct key_orig field alongside other fields... (like units etc...)
If I re-compile my loadablemodule using 4.2.6 sources it's working as expected. But when I compile the module using 4.4.4 sources of Zabbix I encoutner the issue..
Here under an extract of my log :
With 4.2.6 sources :
21726:20200123:122327.988 [sentinelHistoryLoader.so] Handling host key [xxxxx], itemid : [55086]
21726:20200123:122327.988 [sentinelHistoryLoader.so] Handling item key [web.test.fail[LicenseAdministrationWebsite_Availability]], value : [0], itemid : [55086]
21726:20200123:122327.988 [sentinelHistoryLoader.so] Handling host key [xxxxx], itemid : [65214]
21726:20200123:122327.988 [sentinelHistoryLoader.so] Handling item key [web.test.rspcode[Tosca_EventMonitor_ Website,Tosca_EventMonitor_ Website]], value : [200], itemid : [65214]
21726:20200123:122327.988 [sentinelHistoryLoader.so] Handling host key [xxxx], itemid : [65210]
21726:20200123:122327.988 [sentinelHistoryLoader.so] Handling item key [web.test.fail[Tosca_EventMonitor_ Website]], value : [0], itemid : [65210]
21726:20200123:122327.988 [sentinelHistoryLoader.so] Handling host key [xxxx], itemid : [65252]
21726:20200123:122327.988 [sentinelHistoryLoader.so] Handling item key [web.test.rspcode[LicenseAdministrationWebsite_Availability,License Administration Availability]], value : [200], itemid : [65252]
21726:20200123:122327.988 [sentinelHistoryLoader.so] Handling host key [xxx], itemid : [65248]
21726:20200123:122327.988 [sentinelHistoryLoader.so] Handling item key [web.test.fail[LicenseAdministrationWebsite_Availability]], value : [0], itemid : [65248]
21726:20200123:122327.988 sentinelHistoryLoader.so Kafka flush RC opm_metric_zabbix: Success, RC : 0
With 4.4.4 sources :
25963:20200123:122507.862 [sentinelHistoryLoader.so] Finished syncing int values
25956:20200123:122508.761 [sentinelHistoryLoader.so] Syncing 2 int values
25956:20200123:122508.762 [sentinelHistoryLoader.so] Handling host key [xxxxx], itemid : [55082]
25956:20200123:122508.763 [sentinelHistoryLoader.so] Handling item key [], value : [0], itemid : [55082]
25956:20200123:122508.763 [sentinelHistoryLoader.so] Handling host key [xxxxx], itemid : [52507]
25956:20200123:122508.763 [sentinelHistoryLoader.so] Handling item key [], value : [0], itemid : [52507]
25956:20200123:122508.763 sentinelHistoryLoader.so Kafka flush RC opm_metric_zabbix: Success, RC : 0
the key_orig from DC_ITEM struct is always empty..
Did anyone encountered that kind of issue ?
Thanks for your help.
Regards.
Emmanuel