Ad Widget

Collapse

SNMP Timeticks conversion

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gazzerh
    Member
    • Jun 2006
    • 36

    #1

    SNMP Timeticks conversion

    Hi,
    I am monitoring a Draytek Vigor 2800. I am trying to monitor the uptime of the router. I use SNMP v2 and a OID of:
    .1.3.6.1.2.1.1.3.0 = Timeticks: (5746280) 15:57:42.80
    This is the sysUpTimeInstance object.

    Zabbix is getting the value 5746280 which equals over 2 month if I use seconds as the unit type (i'm now guessing timeticks != seconds).

    How do I convert timeticks into seconds so I can display an accurate uptime?

    Thanks,
    Garry
  • gazzerh
    Member
    • Jun 2006
    • 36

    #2
    Sorry. They are 100ths of a second so having a multiplier of 0.01 works. Although it's not perfect. I'm getting this: 16h33m6.3300000000017s

    Better than is was though.

    Comment

    • Sparky
      Member
      • Jun 2010
      • 54

      #3
      Hi

      Did you find an accurate solution for this? I'm having the same problem on a few of my systems.

      Comment

      • MrKen
        Senior Member
        • Oct 2008
        • 652

        #4
        Use Units = uptime

        MrKen
        Disclaimer: All of the above is pure speculation.

        Comment

        • Sparky
          Member
          • Jun 2010
          • 54

          #5
          Currently my configuration is
          Type of information : Numeric (Unsigned)
          Data type : Decimal
          Units : uptime
          Custom Multiplier : 0.01

          This is returning a value of at most 7 days and some hours, but nothing like months...

          Comment

          • MrKen
            Senior Member
            • Oct 2008
            • 652

            #6
            I am using Numeric (float)

            Latest Value: 76 days, 06:02:37

            MrKen
            Disclaimer: All of the above is pure speculation.

            Comment

            • Sparky
              Member
              • Jun 2010
              • 54

              #7
              Changed it to float, still getting 7 days, 16:14:14

              Weird... will play around with it a bit more and see.

              Thanks for the assistance thus far

              Comment

              • fadishei
                Junior Member
                • Mar 2014
                • 1

                #8
                I found out that the uptime is multiplied by 24. So I set 0.04166666666666666667 for custom multiplier and it is working for me.

                Comment


                • sboorbou
                  sboorbou commented
                  Editing a comment
                  How you did it?
                  Where I put this value ( 0.04166666666666666667 ) ?



                  I found where put the custom multiplier, but it not work for Me.
                  My configuration:


                  zabbix 4.4
                  type snmpv2
                  type of information numeric (unsigned)
                  units uptime

                  and in preprocessing
                  custom multiplier 0.04166666666666666667

                  and my result is it 86 days, 04:47:53

                  but the hardware have only 2 days in poweron state.
                  Last edited by sboorbou; 31-01-2020, 13:50.
              • YevgeniyYatsenko
                Junior Member
                • Jun 2021
                • 7

                #9
                Configuration my template:
                - Item
                Name: Uptime
                SNMP OID: 1.3.6.1.2.1.1.3.0
                Type of information: Numeric (unsigned)
                Units: uptime

                - Preprocessing
                Custom multiplier: 0.01

                It is work.

                Comment

              Working...