Commit Graph

11 Commits

Author SHA1 Message Date
383dfff546 Use timeout for each ping 2024-04-09 08:35:45 +02:00
bbd3242b49 Allow longer ping checks.
Old variant `ping -c3 -w3` uses deadline 3 seconds for the whole program
running, for all pings with pause between sending pings and all.

If ping deadlines it will exit with value 1 and thus failing the check.

Sometimes the check fails even if the switch is up. This is probably
because of edge case how long the ping takes and possible the switch down
prioritizes ICMP packages.

In our case it doesn't really differs if the ping is a bit slower as
long as the switch is working.

This fix has been running last 24hours and seems to work. Effectively
each ping has up to 2 seconds to complete (but for the whole check).

Another possible fix is to use `-W` that set timeout per ping.
2024-04-03 11:22:03 +02:00
5602a3a181 gg=G and exit 1 if any switch is down. 2024-03-20 15:13:44 +01:00
de5e7f2e45 Added a readme, and made the script not depend on a hardcoded install dir 2024-03-19 16:58:05 +01:00
Erik Thuning
3b967c8066
Switch down messages should contain the word down... 2021-10-21 15:46:51 +02:00
Erik Thuning
1fa31f54c2 Fixed a bug 2017-09-28 14:40:07 +02:00
Erik Thuning
d4039f63fb Minor style change 2015-09-22 09:42:20 +02:00
root
eb18074a64 Cleaned up the code 2015-09-03 15:36:48 +02:00
root
fe0784e090 Everything is working again 2015-09-03 10:46:29 +02:00
root
f81c8d9523 Getting the IP lookup to work again 2015-09-03 09:53:21 +02:00
root
6b1ab4e2ff Initial commit 2015-09-03 09:30:14 +02:00