Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-17214

Zabbix History Loadable module issue after upgrade to 4.4.4

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • 4.4.4
    • Server (S)
    • CentOS Linux release 7.6.1810 (Core)

      Hello s,

      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..

      Thanks for your help.

      Regards.
      Emmanuel

        1. load_config.c
          1 kB
        2. load_config.h
          0.5 kB
        3. sentinelHistoryLoader.c
          11 kB
        4. sentinelHistoryLoader.conf
          0.4 kB

            rvaliahmetovs Renats Valiahmetovs (Inactive)
            etelechea Emmanuel TELECHEA
            Team D
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: