From 7a381040ab7b272c529e294ee1f15e8e98dc27de Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 5 Mar 2018 22:24:23 +0100 Subject: [PATCH] =?UTF-8?q?openvpn=20pr=C3=BCfung=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- monitoring.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/monitoring.sh b/monitoring.sh index 17c6b89..16eecc9 100755 --- a/monitoring.sh +++ b/monitoring.sh @@ -114,6 +114,15 @@ else echo "OK" fi +if systemctl is-failed openvpn.service +then + echo "openvpn läuft nicht" + fehler=1 + fehlermeldung="$fehlermeldung\nopenvpn: not active" +else + echo "OK" +fi + ######################################################## # Auswertung und Benachrichtigung