gateway monitoring - prevent dpinger event from getting into a "reload filter" loop. while here, also make sure we only pass skip_alias as parameter as gateway has no functional meaning. (and reloading aliases shouldn't be neccesary when a gateway drops).

This commit is contained in:
Ad Schellevis 2022-05-17 15:55:04 +02:00
parent 49e21188a8
commit 25f2a8cb73

View File

@ -35,6 +35,6 @@ fi
/usr/bin/logger -t dpinger "GATEWAY ALARM: ${GATEWAY} (Addr: ${2} Alarm: ${3} RTT: ${4}us RTTd: ${5}us Loss: ${6}%)"
echo -n "Reloading filter: "
configctl filter reload gateway
/usr/local/bin/flock -n -E 0 -o /tmp/filter_reload_gateway.lock configctl filter reload skip_alias
exit 0