>>> Andrei Borzenkov <[email protected]> schrieb am 15.10.2021 um 12:00 in
Nachricht
<CAA91j0XHEqVKEDHatE=qj2xa58ye3xkqr5bw3vqxesipodz...@mail.gmail.com>:
> On Fri, Oct 15, 2021 at 9:25 AM Klaus Wenninger <[email protected]>
wrote:
>
>> Main pain‑point here is that ping‑RA allows us to configure the count of
pings
> sent, but it
>> is just using the exit‑value from ping that becomes negative already when
one
> of the
>> answers is missing.
The manual says:
If ping does not receive any reply packets at all it will exit
with
code 1. If a packet count and deadline are both specified, and
fewer
than count packets are received by the time the deadline has
arrived,
it will also exit with code 1. On other error it exits with code
2.
Otherwise it exits with code 0. This makes it possible to use the
exit
code to see if a host is alive or not.
That's odd: The higher the ping count, the more likely an error exit is.
>
> Use fping instead? Which is supported by ping RA and should behave
> exactly as needed ‑ report host alive if at least one reply was
> received.
>
> Maybe when using ping RA could also parse ping output instead of
> relying on exit status.
> _______________________________________________
> Manage your subscription:
> https://lists.clusterlabs.org/mailman/listinfo/users
>
> ClusterLabs home: https://www.clusterlabs.org/
_______________________________________________
Manage your subscription:
https://lists.clusterlabs.org/mailman/listinfo/users
ClusterLabs home: https://www.clusterlabs.org/