Ad Widget

Collapse

Problem with ICMP loss

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jakub.adamek
    Junior Member
    • Jun 2022
    • 6

    #1

    Problem with ICMP loss

    Hello,
    I have problem with ICMP loss on servers.
    Servers sometime show loss 66,6667% but when i use fping from proxy, from which is host monitored, it show 0%.
    Does anyone have the same problem?
    Zabbix server and proxy 6.0.5, fping 5.0.
  • jakub.adamek
    Junior Member
    • Jun 2022
    • 6

    #2
    In logs i found: Failed to execute command "/usr/bin/fping -c1 -t50 -i0 NAMEOFHOST": Timeout while executing a shell script.
    If i do it manually, it is okay.
    Any ideas?

    Comment

    • jakub.adamek
      Junior Member
      • Jun 2022
      • 6

      #3
      I tried changing the start pingers, unfortunately it didn't change anything.
      I see a delay in the queue for ICMP loss.
      Can someone please help me?

      Comment

      • jakub.adamek
        Junior Member
        • Jun 2022
        • 6

        #4
        I tried to completly reinstall zabbix-proxy, didnt help. Tried reinstal fping, install older/newer version, didnt help.
        Can anyone please help?
        Thx

        Comment

        • chda
          Junior Member
          • Dec 2022
          • 1

          #5
          I had the same issue. In my case, the reason was fping itself. Just check your server with:
          Code:
          zabbix-server:~$ time /usr/bin/fping -c1 -t50 -i0 test.localdomain
          test.localdomain : [0], 64 bytes, 0.332 ms (0.332 avg, 0% loss)
          
          test.localdomain : xmt/rcv/%loss = 1/1/0%, min/avg/max = 0.332/0.332/0.332
          
          real 0m5.009s
          user 0m0.003s
          sys 0m0.000s
          
          zabbix-server:~$ time /usr/bin/fping -4 -c1 -t50 -i0 test.localdomain
          test.localdomain : [0], 64 bytes, 0.294 ms (0.294 avg, 0% loss)
          
          test.localdomain : xmt/rcv/%loss = 1/1/0%, min/avg/max = 0.294/0.294/0.294
          
          real 0m0.004s
          user 0m0.002s
          sys 0m0.001s
          My DNS server reports absence of AAAA record in a couple of milliseconds. I don't know why fping takes 5 seconds more.

          We don't use ipv6 in our network, so this workaround helped:
          Code:
          cat <<EOF >/usr/local/bin/fping
          #!/bin/bash
          /usr/bin/fping -4 $*
          EOF
          
          sed -i -e 's/^FpingLocation=\/usr\/bin\/fping$/FpingLocation=\/usr\/local\/bin\/fping/' /etc/zabbix/zabbix_server.conf

          Comment

          Working...