Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-2394

icmpping loss gets incorrect value 4294967196

    XMLWordPrintable

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.2
    • Fix Version/s: 1.8.4
    • Component/s: Server (S)
    • Labels:
      None

      Description

      After upgrading from 1.8 to 1.8.2 i started to get icmpping loss values 4294967196 instead of normal percent

      Unlsess I could not figure out the exact couse of the problem I found out that somehow pinger pings host twice and therefore actually gets 6 responses but code falsely assumes there were 3 pings so the value of loss percentage will be (3-6)/3*100 = 4294967196 (in unsigned)

      I managed to fix it by adding new line 294 to libs/zbxicmpping/icmpping.c to reset the received packet counter:
      293: c+= 3;
      294+: host->rcv=0;
      295:
      296: do {

      Please find out why it pingd two times in a row and does not reset the counter.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            martlaak Märt Laak
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: