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

Item preprocessing loses the fractional part of the number

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Fixed
    • Icon: Major Major
    • 3.4.0alpha1, 3.4 (plan)
    • 3.4.0alpha1
    • Server (S)
    • None
    • Sprint 10, Sprint 11
    • 0.5

      I'm attempt to convert int value to float with preprocessing "Custom multiplier" function.

      Item type configuration - float, custom multiplier value 0.1.

      Originally, item value fetched by SNMP, net-snmp return ASN_INTEGER value, which converted to STRING in zbx_snmp_set_result() and passed up.
      Later, when server process preprocessig operations, STRING converted to UINT64 with zbx_variant_set_numeric() and multiplied to 0.1 value. Incorrect result (without fraction) stored in tables as FLOAT.

      current (bad) - 248 * 0.1 = 24.00000
      should be - 248 * 0.1 = 24.80000

            Unassigned Unassigned
            lynxchaus Andrey Melnikov
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: