Ad Widget

Collapse

SNMP Octet string

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rboersma
    Junior Member
    • Jan 2010
    • 29

    #1

    SNMP Octet string

    Hi,

    I want to read a temp sensor on a qnap-nas. This is an octet string value stored as:
    0x33 36 A2 58 43 2F 39 36 A2 58 46 (which is hex)
    If use the mibbrowser for the oid .1.3.6.1.4.1.24681.1.2.11.1.3.1 i'm getting back the following value 28 XC/82 XF

    If i create an item in zabbix, i'll only recieve a vlaue back when i set it to text. Numeric fails with:
    Type of received value [33 32 A2 58 43 2F 38 39 A2 58 46] is not suitable for value type [Numeric (integer 64bit)]

    The first value of the string (33) is, i think, the temperature.
    Can anyone guide me here? I'm a bit new to this kind of monitoring.

    EDIT:
    If i convert the hex string (without the blank spaces) here :http://www.string-functions.com/hex-string.aspx
    It gives me the right output: 29¢XC/84¢XF
    How do I manage this in Zabbix so that it displays the human readable format?
    Last edited by rboersma; 02-07-2010, 10:01.
  • ruswold
    Senior Member
    • Mar 2010
    • 210

    #2
    Originally posted by rboersma
    Hi,

    I want to read a temp sensor on a qnap-nas. This is an octet string value stored as:
    0x33 36 A2 58 43 2F 39 36 A2 58 46 (which is hex)
    If use the mibbrowser for the oid .1.3.6.1.4.1.24681.1.2.11.1.3.1 i'm getting back the following value 28 XC/82 XF

    If i create an item in zabbix, i'll only recieve a vlaue back when i set it to text. Numeric fails with:
    Type of received value [33 32 A2 58 43 2F 38 39 A2 58 46] is not suitable for value type [Numeric (integer 64bit)]

    The first value of the string (33) is, i think, the temperature.
    Can anyone guide me here? I'm a bit new to this kind of monitoring.

    EDIT:
    If i convert the hex string (without the blank spaces) here :http://www.string-functions.com/hex-string.aspx
    It gives me the right output: 29¢XC/84¢XF
    How do I manage this in Zabbix so that it displays the human readable format?
    Version of zabbix server?

    Comment

    • rboersma
      Junior Member
      • Jan 2010
      • 29

      #3
      Sorry,

      version 1.8.2 appliance.

      edit: i believe net-snmp should determine by itself to interpret this as human readable. Could it be that the blank spaces confuse net-snmp?
      http://www.net-snmp.org/wiki/index.p...from_the_tools
      Last edited by rboersma; 02-07-2010, 12:29.

      Comment

      • ruswold
        Senior Member
        • Mar 2010
        • 210

        #4
        Originally posted by rboersma
        Sorry,

        version 1.8.2 appliance.
        In zabbix 1.8.3 it's resolved, but in 1.8.2 don't worked.

        Comment

        • rboersma
          Junior Member
          • Jan 2010
          • 29

          #5
          Thanks,

          Good to know that i was looking in the right direction.

          Comment

          • Sparky
            Member
            • Jun 2010
            • 54

            #6
            Posting on an old thread because I seem to have a similar problem. When using a MIB Browser, this is the raw data returned

            OID: .1.3.6.1.4.1.6889.2.8.1.25.6.0
            Value: 2010-09-28 01:00:10
            Type: OctetString

            But when setting this in Zabbix to anything but text, it does not return a value. Using text returns the correct string.

            How do I add a trigger that will alert me if the date is not showing as today? Zabbix is version 1.8.3

            Comment

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

              #7
              possibly related issue : https://support.zabbix.com/browse/ZBXNEXT-1046
              Zabbix 3.0 Network Monitoring book

              Comment

              • niceguy
                Junior Member
                • Aug 2011
                • 4

                #8
                I have the same issue witch the octet string value from the konica printer.
                Is this problem solved ?

                Comment

                Working...