Ad Widget

Collapse

Uptime in hundredths of a second

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MeneM1978
    Junior Member
    • Jul 2006
    • 3

    #1

    Uptime in hundredths of a second

    Hello all,

    I'd like some help on setting up an item.

    Via snmp v2 agent, I'm getting the uptime of a device reported in hundredths of a second. So displaying it with seconds will have an end result telling me years, instead of hours. (As a hundredth of a second is not a second.)

    I do not know how to configure this item. Can anybody help me?

  • adam.vollrath
    Member
    • Apr 2006
    • 31

    #2
    Select Use Multiplier for the item.

    Put in a multiplier of 0.01

    Also, you may want to store that as an integer. And store it "As Is", not Delta (unless you want to know how fast the seconds are passing... )

    Test it to make sure I didn't tell you bad math...

    P.S. Thank you for including a screenshot, it helps a lot.
    Last edited by adam.vollrath; 28-07-2006, 22:18. Reason: P.S.

    Comment

    • MeneM1978
      Junior Member
      • Jul 2006
      • 3

      #3
      Thank you for the quick response. I've tried it, and I think it is right on the money. But not for this instance.

      See I'm trying to get the uptime from a system with dd-wrt installed on it.

      Apparantly it reports uptime in something called timeticks (dd-wrt - SNMP second item in that tables.)

      This is how I've set it up now.


      But i'm getting "0" as the result... I'd understand if noone can help me here. ;-) This may be a rare situation...

      Comment

      • adam.vollrath
        Member
        • Apr 2006
        • 31

        #4
        This is somewhat of a rare situation. Looking at that wiki page (thank you for providing) the output of the timeticks OID is in this sort of format:
        "0:9:58:43.95"
        This can't be parsed as an integer, it'll have to be recorded as a string. Unfortunately, this means you won't be able to graph it or do any integer operations (math) with it.

        So set Type of Information to String, and it should work.

        P.S. if you REALLY need to get its uptime as an integer, like plain "number of seconds", then you'll have to write a little script to fetch the string and parse it into seconds, then put this on another monitored machine (maybe your zabbix server, if it has an agent.) This is not an elegant solution, and adds more levels of complexity and points of failure to you solution.

        Comment

        • MeneM1978
          Junior Member
          • Jul 2006
          • 3

          #5
          Hi Again,

          Thank you for that, I think indeed this is a very interesting "problem".
          (Btw. I see no "string" option in the dropdown menu called "Type of information" I only see Integer 64 bit, float, character, log and text?)

          Anyway, my next point of call is dd-wrt. I'll see if they perhaps have a different mode of operation.

          Thank you again.
          Mark

          Comment

          • adam.vollrath
            Member
            • Apr 2006
            • 31

            #6
            Hrm, I guess it's text. If that doesn't work, try character.

            Comment

            • mhale
              Junior Member
              • Jul 2006
              • 1

              #7
              Float, custom multiplier .01, and unit 's' works for me.

              The 64 bit option will show a 0.

              Comment

              Working...