X-Git-Url: https://git.distorted.org.uk/~mdw/rcheck/blobdiff_plain/92cde7de66a3dfe4ff45967f95bb240ab13c753c..042f27fe47aa2a67e7c99087d8600ce2450c0aa2:/check.d/ntp diff --git a/check.d/ntp b/check.d/ntp index 68e8ac2..3f95498 100755 --- a/check.d/ntp +++ b/check.d/ntp @@ -1,5 +1,7 @@ #! /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