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

Cannot enable/disable HTTP templated item if interface id is very large

XMLWordPrintable

    • Sprint 58 (Nov 2019), Sprint 59 (Dec 2019)
    • 0.25

      I have 2 hosts, one has small interfaceid, another one has large interfaceid:

      select h.host,h.hostid,i.interfaceid from hosts h left join interface i on h.hostid = i.hostid where h.host like '%WEB%' ;
      +-------+--------+-----------------+
      | host  | hostid | interfaceid     |
      +-------+--------+-----------------+
      | WEB 1 |  10305 | 100100000372716 |
      | WEB 2 |  10308 |           12347 |
      +-------+--------+-----------------+
      2 rows in set (0.00 sec)
      

      On the first host if i try to enable/disable the templated http agent check item, i get following error:

      Details Cannot update item
      Invalid parameter "/interfaceid": a number is too large. [items.php:864 → CFrontendApiWrapper->update() → CApiWrapper->__call() → CFrontendApiWrapper->callMethod() → CApiWrapper->callMethod() → CFrontendApiWrapper->callClientMethod() → CLocalApiClient->callMethod() → call_user_func_array() → CItem->update() → CItemGeneral->checkInput() → CItemGeneral->validateHTTPCheck() → CApiService::exception() in include/classes/api/services/CItemGeneral.php:1911]
      

      It sems only templated http agent check items are affected.

            iivs Ivo Kurzemnieks
            kaspars.mednis Kaspars Mednis
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: