Ad Widget

Collapse

Ability to get packet loss and change icmp packet size

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • limo
    Senior Member
    • Dec 2004
    • 192

    #1

    Ability to get packet loss and change icmp packet size

    Hello all,

    does anybody has solution to monitor packet loss? It is very usefull especialy in wifi networks. Next, would be nice to set length of icmp packet sent.

    Any suggestions ?

    Thanx.
    Lukas
  • mike_k
    Junior Member
    • May 2006
    • 18

    #2
    And not only loss from server side, but loss and RTT time from one of the nix monitored clients. For example from gateway to several IPS's, etc. It would be great to have such features available within zabbix client (+ having fping installed on monitored host). Please, consider this...

    For now I am using some ugly scripts (bash+sed+awk), inspired by examples from mrtg for that purpose and wouldn't like to show such a mess =(. The downside is more processes running in endless loop and some some more temp files stored...

    Comment

    • jameno123
      Junior Member
      • Sep 2006
      • 7

      #3
      ICMP Packet Loss

      I would as well like the ability to use the fping results to graph and alarm on packet loss.

      # fping -C3 www.google.com
      www.google.com : [0], 84 bytes, 1.97 ms (1.97 avg, 0% loss)
      www.google.com : [1], 84 bytes, 2.21 ms (2.09 avg, 0% loss)
      www.google.com : [2], 84 bytes, 2.23 ms (2.13 avg, 0% loss)

      www.google.com : 1.97 2.21 2.23
      #

      0% loss would be a number id like to see to be able to be graphed.

      It would be nice to also be able to pass the number of pings to average:
      like: icmppingsec[5]
      and: icmppingloss[5]

      fping already provides the data, just need to make zabbix smart enough to parse it.

      And if zabbix is smart, it can kill off all 3 checks at the same time instead of checking 3 seperate times... (icmpping, icmppingsec, icmppingloss) call fping once and update all 3 values at the same time...

      Comment

      • nelsonab
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2006
        • 1233

        #4
        You'll have to write a script to handle that. You may also want to write a wrapper script that stores the results in a temporary file and will query that file until it expires then fping is executed again and the results file updated.

        This post describes better what I am talking about:
        RHCE, author of zbxapi
        Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
        Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

        Comment

        • nelsonab
          Senior Member
          Zabbix Certified SpecialistZabbix Certified Professional
          • Sep 2006
          • 1233

          #5
          Originally posted by limo
          Hello all,

          does anybody has solution to monitor packet loss? It is very usefull especialy in wifi networks. Next, would be nice to set length of icmp packet sent.

          Any suggestions ?

          Thanx.
          Lukas
          What about using an airPcap device and monitoring the number of retransmits from the AP?
          RHCE, author of zbxapi
          Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
          Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

          Comment

          • jameno123
            Junior Member
            • Sep 2006
            • 7

            #6
            Yes yes, i can write millions of 1 line scripts to get the data i need... but the point was.

            Zabbix has a special "pinger" process... that pinger process runs fping, and does nothing but pipe data into fping and read its response, continously...

            If zabbix is smart enough to "Send pings to the pinger" -- it should be smart enough to read all packetloss values that the pinger returns and update the items that match.

            Even if it sends 2 ICMP ping sets, 1 for latency and 1 for loss, it wouldnt be a problem for me... Though one could say, this is unoptimal... Its better than forking off some shell scripts when zabbix is already designed to retreive data in better methods.

            so we just need to make zabbix smarter!

            Comment

            • nelsonab
              Senior Member
              Zabbix Certified SpecialistZabbix Certified Professional
              • Sep 2006
              • 1233

              #7
              Originally posted by jameno123
              Yes yes, i can write millions of 1 line scripts to get the data i need... but the point was.
              "I will replace you with a very small script..."
              RHCE, author of zbxapi
              Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
              Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

              Comment

              • bbrendon
                Senior Member
                • Sep 2005
                • 870

                #8
                This might be useful.

                Unofficial Zabbix Expert
                Blog, Corporate Site

                Comment

                Working...