Jump to content

Question

Posted (edited)

Для того, чтобы воспроизвести описываемое поведение необходимо задать профиль тестирования с такими параметрами:

Спойлер

      update-interval: 10
            max-fails: 3
              timeout: 5
                 mode: icmp

            interface:
                     name: Wireguard0
             successcount: 0
                failcount: 0
                   status: fail

                  ipcache:
                         host: 8.8.8.8

                    addresses: 8.8.8.8

После ожидаемое поведение - увеличение счетчика succescount на 1 за каждый интервал update-interval

В реальности же при любом разрешенном update-interval счетчик будет увеличиваться на значение = 2

Спойлер

~ # ndmc -c "show ping-check" | grep successcount; sleep 10; ndmc -c "show ping-check" | grep
 successcount; sleep 10; ndmc -c "show ping-check" | grep successcount
             successcount: 111
             successcount: 113
             successcount: 115
~ # ndmc -c "show ping-check" | grep successcount; sleep 10; ndmc -c "show ping-check" | grep
 successcount; sleep 10; ndmc -c "show ping-check" | grep successcount
             successcount: 133
             successcount: 135
             successcount: 137

Почему проверки проходят дважды? Ожидаемо ли такое поведение?

Edited by hoaxisr

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

This site uses cookies. By clicking "I accept" or continuing to browse the site, you authorize their use in accordance with the Privacy Policy.