Allow a subset of checks to be run.
[rcheck] / check.d / ntp
diff --git a/check.d/ntp b/check.d/ntp
deleted file mode 100755 (executable)
index 3f95498..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-#! /bin/sh -e
-
-if [ ! -x /usr/sbin/ntpc ]; then exit 0; fi
-
-ntpdc -c peers | {
-  any=nil
-  while read remote local st poll reach delay offset disp; do
-    case "$remote" in
-      \**) ;;
-      *) continue ;;
-    esac
-    awk -v off="$offset" 'BEGIN {
-      if (off < 0) off = -off;
-      if (off >= 0.1) printf "W: absolute time offset %gs worrying\n", off;
-      else if (off >= 0.01) printf "I: absolute time offset %gs concerning\n", off;
-    }'
-    any=t
-  done
-  case $any in
-    nil) echo "W: not sychronized to any peer" ;;
-  esac
-}