~mdw
/
rcheck
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
check.d/{disks,ntp}: Only perform the checks if relevant programs exist.
[rcheck]
/
check.d
/
ntp
diff --git
a/check.d/ntp
b/check.d/ntp
index
68e8ac2
..
3f95498
100755
(executable)
--- 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