From 64a5ce646b0ab2d3bc0a8a304495b98304760b8f Mon Sep 17 00:00:00 2001 From: Patrick Date: Mon, 5 Mar 2018 22:15:05 +0100 Subject: [PATCH] DHCP-Server test erstellt --- monitoring.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/monitoring.sh b/monitoring.sh index fc8801b..581d977 100755 --- a/monitoring.sh +++ b/monitoring.sh @@ -79,6 +79,17 @@ else echo "OK" fi +######################################################## +# Daemons test + +if systemctl is-failed isc-dhcp-server.service +then + echo "dhcp-Server läuft nicht" + fehler=1 + fehlermeldung="$fehlermeldung\nisc-dhcp-server: not active" +else + echo "OK" +fi if [ "$fehler" = "1" ] then