From 2074d09d9bf13f02347631d63e1003eaadc50927 Mon Sep 17 00:00:00 2001 From: StefanMewes Date: Sun, 12 Apr 2026 13:35:45 +0000 Subject: [PATCH] =?UTF-8?q?erstes=20Lighthouse=20f=C3=BCr=20check=20benutz?= =?UTF-8?q?en?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/nebula-check.sh.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/nebula-check.sh.j2 b/templates/nebula-check.sh.j2 index f841f68..092ca93 100644 --- a/templates/nebula-check.sh.j2 +++ b/templates/nebula-check.sh.j2 @@ -1,7 +1,7 @@ #!/bin/bash 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 logger -s -p user.emerg '!!! Unable to reach Nebula server. Bouncing tunnel neb0... !!!' systemctl restart nebula.service -fi +fi \ No newline at end of file