Ad Widget

Collapse

snmp oid parameter value as numeric float with more than 4 decimals

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • brucebay
    Junior Member
    • May 2020
    • 13

    #1

    snmp oid parameter value as numeric float with more than 4 decimals

    guys,

    I am monitoring a clock device that syncs with satelite and provides the time values in Microseconds and Nanoseconds such as 0.000234 seconds.I noticed that with float data types it is displayed as 0 (simply zabbix sums it up) when I choose character as the data type, it is displayed correctly but then it does not show the numeric changes in time in the 30s periods that I have set the poller to.
    I am using Zabbix 4.4 and my database is Mariadb, is there any solution that helps me to have these time values as numeric float data types with 6 to 8 decimals? (such as 0.000123 or 0.000111222)

    thanks in advance
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    There might be a good solution for 4.4.x that I'm not aware of.

    However, I know that Zabbix 5.x specifically adds support for "double" in some areas. See: https://www.zabbix.com/documentation...rade_notes_500

    I don't know if that will give you the precision you need, but it sounds promising.

    I haven't yet upgraded my site to 5.x (I'm waiting for a couple more point releases, maybe 5.0.3 or 5.0.4 before I jump from 4.4.x to 5.x), so I don't know how the support for double is handled, but it seems like it might be what you're looking for.

    Comment

    • brucebay
      Junior Member
      • May 2020
      • 13

      #3
      Hi Tim,

      Thanks for the response. is there a workaround for the 4.4 version? or upgrade to the version 5.0 is the only option available now?

      thanks

      Comment

      • Hamardaban
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • May 2019
        • 2713

        #4
        Multiply microseconds in preprocessing by 1000 and store as «nanoseconds»
        :-)
        Last edited by Hamardaban; 09-06-2020, 07:56.

        Comment

        • brucebay
          Junior Member
          • May 2020
          • 13

          #5
          Great workaround Hamardaban for V4.4
          Thanks

          Comment

          Working...