Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-8042

Add ability to set custom fping interval manually for icmp checks

XMLWordPrintable

    • Icon: Change Request Change Request
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 6.2.3
    • Server (S)
    • None
    • Zabbix-6.2.3, Ubuntu-22.04, fping-5.1

      Steps to reproduce:

      • Create a "Simple check" item with a icmppingsec key.
      • Set the sever DebugLevel to 4
      • Observe the fping command generated by Zabbix.
      • Observe the recorded ping times.
      • Repeat with a version of Zabbix (eg 3.4) that does not use a "-i0" option with fping.

      Result:

      The fping commands generated by Zabbix-6.2 include a "-i0" option.  The documentation for simple-check/icmppingsec acknowledges  this: "Zabbix tries to detect the minimal value in milliseconds that fping allows to use with -i by trying 3 values: 0, 1 and 10. The value that first succeeds is then used for subsequent ICMP checks."

      However at my site, although the  i0 option "works", it results in ping times that are much slower than a larger -i value (eg, fping's default value of 10.)  Zabbix-3.4 did not use the i option.  Consequently I am seeing ping times much greater and with much larger variance then previously. 

      Running both Zabbbix 3.4 and Zabbix 6.2 for an hour, each with an identical set of 7 icmpingsec items (update interval=15s) gives the following results for one of the addresses:

      Ping response times in mS:

      1 hour Min Avg Max
      Zabbix-6.2 2.7 13.7 72.4
      Zabbix-3.4 2.9 3.7 15.4

      I can reproduce similar results running fping by hand, with and without a "-i0" option.

      I do not understand why this is happening (the internal workings of fping or the upstream network characteristics that may be contributing) but since it is happening, I believe Zabbix needs to provide some means for the user to control at least the minimal value used with the -i option given to fping.

            zabbix.support Zabbix Support Team
            smcgraw Stuart McGraw
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: