Ad Widget

Collapse

icmpping failing on slow links

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • demigh0d
    Junior Member
    • Sep 2007
    • 3

    #1

    icmpping failing on slow links

    Not sure if this has been covered before....

    I am pinging a bunch of servers over a VPN connection and have been having problems using icmpping. There are many times that the latency on the VPN will go way up and fping times out before the response is received causing a erroneous failure alert.

    Evidently the default timeout in fping is 500ms.

    You can change this by editing the source file

    ~/src/zabbix_server/pinger/pinger.c

    and change

    zbx_snprintf(str,sizeof(str),"cat /tmp/zabbix_server_%li.pinger | %s -e 2>/dev/null",

    to something like

    zbx_snprintf(str,sizeof(str),"cat /tmp/zabbix_server_%li.pinger | %s -t 5000 -e 2>/dev/null",

    '-t 5000' increased the timeout to 5 seconds and completely eliminated the bogus alerts I was getting.

    Maybe this should be added as a configurable parameter in Zabbix?

    Duane
  • tronite
    Senior Member
    • Jun 2007
    • 147

    #2
    So are you having a problem or suggesting a fix?

    Comment

    • demigh0d
      Junior Member
      • Sep 2007
      • 3

      #3
      I was having a problem, figured out how to fix it and thought I'd post it for anyone else having the same problem.

      Comment

      • tronite
        Senior Member
        • Jun 2007
        • 147

        #4
        Originally posted by demigh0d
        I was having a problem, figured out how to fix it and thought I'd post it for anyone else having the same problem.
        Ahh! I was a little lost thanks for the clarification. It's a complicated problem you were having too.

        Comment

        Working...