-
-
Save jaymecd/9170026 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Cronjob for poor man monitoring of server health | |
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" | |
# Every sunday, check for apt-get upgrades. | |
33 3 * * 0 root apt-get update ; apt-get -q --simulate upgrade | |
# Every sunday, check for SMART errors. | |
34 3 * * 0 root echo 'SMART Sectors'; smartctl -a /dev/sda | grep -i sector ; smartctl -a /dev/sdb | grep -i sector; echo 'SMART All'; smartctl -a /dev/sda ; smartctl -a /dev/sdb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment