~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
/
disks
diff --git
a/check.d/disks
b/check.d/disks
index
63a541a
..
ef36835
100755
(executable)
--- a/
check.d/disks
+++ b/
check.d/disks
@@
-3,6
+3,7
@@
### Check the health of attached physical disks.
set -e
### Check the health of attached physical disks.
set -e
+if [ ! -x /usr/sbin/smartctl ]; then exit 0; fi
## Build a list of actual disk devices according to their buses.
disks=
## Build a list of actual disk devices according to their buses.
disks=