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

Incorrect type for net.if checks

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Major Major
    • 1.8.3
    • 1.6.6
    • Server (S)
    • None

      11991:20091021:104038 Item [c7proxy25:net.if.out[em0,bytes]] error: Type of received value [22890672986915.000000] is not suitable for value type [Numeric (float)]
      11991:20091021:104042 Item [c7fl01.is74.ru:net.if.in[eth0,bytes]] error: Type of received value [417324563695209.000000] is not suitable for value type [Numeric (float)]
      11991:20091021:104042 Item [ns3.is74.ru:net.if.in[eth0,bytes]] error: Type of received value [1027792344644.000000] is not suitable for value type [Numeric (float)]
      11991:20091021:104042 Item [ns3.is74.ru:net.if.out[eth0,bytes]] error: Type of received value [1136415884523.000000] is not suitable for value type [Numeric (float)]
      11991:20091021:104054 Item [c7ids01.is74.ru:net.if.in[eth1,bytes]] error: Type of received value [251076685457392.000000] is not suitable for value type [Numeric (float)]

      Patch:
      Index: src/libs/zbxsysinfo/sysinfo.c
      ===================================================================
      — src/libs/zbxsysinfo/sysinfo.c (revision 8111)
      +++ src/libs/zbxsysinfo/sysinfo.c (working copy)
      @@ -539,8 +539,8 @@
      {
      #if defined(HAVE_POSTGRESQL) || defined(HAVE_ORACLE) || defined(HAVE_SQLITE3)
      /* field with precision 16, scale 4 [NUMERIC(16,4)] */

      • register double pg_min_numeric = (double)-1E12;
      • register double pg_max_numeric = (double)1E12;
        + register double pg_min_numeric = (double)-1E16;
        + register double pg_max_numeric = (double)1E16;

      if (value <= pg_min_numeric || value >= pg_max_numeric)
      return FAIL;

            Unassigned Unassigned
            dotneft Alexey Pustovalov
            Votes:
            7 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: