From b0c9aabe2fdd66597bf032d88398b3f3c7fa3136 Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 5 Mar 2018 22:20:30 +0100 Subject: [PATCH] =?UTF-8?q?apache2=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 c6c2032..17c6b89 100755 --- a/monitoring.sh +++ b/monitoring.sh @@ -105,6 +105,15 @@ else echo "OK" fi +if systemctl is-failed apache2.service +then + echo "apache2 läuft nicht" + fehler=1 + fehlermeldung="$fehlermeldung\napache2: not active" +else + echo "OK" +fi + ######################################################## # Auswertung und Benachrichtigung