dsa-check-timedatectl: Accept "Network time on" string also instead of just "NTP...
[mirror/dsa-nagios.git] / dsa-nagios-checks / checks / dsa-check-timedatectl
index b3bc554..13956d2 100755 (executable)
@@ -46,7 +46,7 @@ if [ "$d" -lt "-$MAX" ] ||
 fi
 
 
-bool=$(sed '/NTP enabled:/ { s/^[^:]*: *//; p}; d' "$temp")
+bool=$(sed '/\(NTP enabled\|Network time on\):/ { s/^[^:]*: *//; p}; d' "$temp")
 if [ "$bool" != "yes" ]; then
        echo "Warning: NTP not enabled!"
        exit 1