erstes Lighthouse für check benutzen

This commit is contained in:
2026-04-12 13:35:45 +00:00
parent 20a0887fe8
commit 2074d09d9b
+2 -2
View File
@@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
PATH=/usr/bin:/bin:/sbin:/usr/sbin PATH=/usr/bin:/bin:/sbin:/usr/sbin
test="$(ping -q -w10 -W2 {{ nebula_lighthouse_internal_ip_addr }} 2>/dev/null | grep -oP '\d{1,3}(?=%)')" test="$(ping -q -w10 -W2 {{ _nebula_lighthouses_computed[0].internal_ip }} 2>/dev/null | grep -oP '\d{1,3}(?=%)')"
if [ "$test" == "100" ]; then if [ "$test" == "100" ]; then
logger -s -p user.emerg '!!! Unable to reach Nebula server. Bouncing tunnel neb0... !!!' logger -s -p user.emerg '!!! Unable to reach Nebula server. Bouncing tunnel neb0... !!!'
systemctl restart nebula.service systemctl restart nebula.service
fi fi