Ad Widget

Collapse

why not milliseconds (simple check icmppingsec)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jmb
    Junior Member
    • Jul 2007
    • 14

    #1

    why not milliseconds (simple check icmppingsec)

    Hello,

    I used the icmppingsec simple check the response time of a remote site, but I got only 0s. I saw afterwards that seconds and not milliseconds are stored in the DB.

    Bug or feature? In LAN/WAN, you have response times < 100 ms. Storing response timea in seconds is pretty useless.

    To have milliseconds, change the following line in src/zabbix_server/pinger/pinger.c

    old : SET_DBL_RESULT(&value, mseconds/1000);
    new : SET_DBL_RESULT(&value, mseconds);

    and recompile. It works quite well.

    Greets /jm
  • gescheit
    Senior Member
    • Jul 2007
    • 156

    #2
    Гыы!

    Use multiplier
    Custom multiplier: 1000
    Units: ms

    Comment

    • jmb
      Junior Member
      • Jul 2007
      • 14

      #3
      hI,

      No using a multiplier does not work (I tested it). 0*1000 = 0. You need to modify the code to get meaningful data

      Greet jm

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        Originally posted by jmb
        No using a multiplier does not work (I tested it). 0*1000 = 0. You need to modify the code to get meaningful data
        Use multiplier as suggested! It works!

        0 ms = 0 s, so what's wrong with 0*1000 = 0?!
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • jmb
          Junior Member
          • Jul 2007
          • 14

          #5
          I found the problem. The type of icmppingsec was set to integer 64bits instead of float...

          Now it's working as expected. Sorry!

          Best regards,

          Jean-Marc

          Comment

          • alj
            Senior Member
            • Aug 2006
            • 188

            #6
            Originally posted by jmb
            I found the problem. The type of icmppingsec was set to integer 64bits instead of float...

            Now it's working as expected. Sorry!

            Best regards,

            Jean-Marc
            Alex,
            Do we have trends working for float values now?

            Comment

            • Alexei
              Founder, CEO
              Zabbix Certified Trainer
              Zabbix Certified SpecialistZabbix Certified Professional
              • Sep 2004
              • 5654

              #7
              Originally posted by alj
              Alex,
              Do we have trends working for float values now?
              Do you have anything to say regarding icmpping related issues? No, then please do not hijack threads!
              Alexei Vladishev
              Creator of Zabbix, Product manager
              New York | Tokyo | Riga
              My Twitter

              Comment

              Working...