projects
/
mirror
/
dsa-nagios.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dsa-check-timedatectl: Accept "Network time on" string also instead of just "NTP...
[mirror/dsa-nagios.git]
/
dsa-nagios-checks
/
checks
/
dsa-check-timedatectl
diff --git
a/dsa-nagios-checks/checks/dsa-check-timedatectl
b/dsa-nagios-checks/checks/dsa-check-timedatectl
index
b3bc554
..
13956d2
100755
(executable)
--- a/
dsa-nagios-checks/checks/dsa-check-timedatectl
+++ b/
dsa-nagios-checks/checks/dsa-check-timedatectl
@@
-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