Ad Widget

Collapse

Problems with snmp data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dotneft
    Senior Member
    • Nov 2008
    • 699

    #1

    Problems with snmp data

    There is a problem with snmp elements (after migration 1.6.1->trunk(6425))

    Type: SNMPv2 agent
    Type of information: Numeric (float or integer)
    Data type: decimal

    other settings default.
    With other types information all OK.

    An example:
    real value: 166
    Displayed value: 13834357133799325696


    log file:
    Code:
    1921:20081209:002538 AV loop OID [.1.3.6.1.4.1.9.10.19.1.1.5.0] Type [2] ' INTEGER: 166'
    1921:20081209:002538 End get_value () 1921:20081209:002538 Query [begin;] 
    1921:20081209:002538 In process_new_value (vpn. NumVPNTunnels) 
    1921:20081209:002538 In add_history (key:vpn. NumVPNTunnels, value_type:0, type:2) 
    1921:20081209:002538 In add_history (itemid:48367, DOUBLE:13834357133799325696.000000) 1
    921:20081209:002538 In add_history ()
    Last edited by dotneft; 08-12-2008, 21:33.
  • dotneft
    Senior Member
    • Nov 2008
    • 699

    #2
    Problem in 6378 rev - - [DEV-266] added support of octal and hexadecimal data

    Comment

    • dotneft
      Senior Member
      • Nov 2008
      • 699

      #3
      problem in check_snmps.c

      in funtion get_snmp
      Code:
      zbx_snprintf(buf, sizeof(buf), ZBX_FS_UI64, (unsigned long)*vars->val.integer);
      
      
      if (*vars->val.integer < 0)
      zbx_snprintf(buf, sizeof(buf), ZBX_FS_DBL, (double)*vars->val.integer);
      else
      zbx_snprintf(buf, sizeof(buf), ZBX_FS_UI64, (unsigned long)*vars->val.integer);

      Comment

      • dotneft
        Senior Member
        • Nov 2008
        • 699

        #4
        missed post
        Last edited by dotneft; 08-12-2008, 23:08.

        Comment

        • richlv
          Senior Member
          Zabbix Certified Trainer
          Zabbix Certified SpecialistZabbix Certified Professional
          • Oct 2005
          • 3112

          #5
          is this problem still there in trunk ?
          Zabbix 3.0 Network Monitoring book

          Comment

          • dotneft
            Senior Member
            • Nov 2008
            • 699

            #6
            Originally posted by richlv
            is this problem still there in trunk ?
            this problem with UINT64 in 32 bit OSs
            I do not know exactly what versions of the problem has started: (
            BUT if 64 bit operating systems, such problems will not be with any version of zabbix

            Comment

            Working...