X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=dsa-nagios-checks%2Fdebian%2Fcron.d;h=d4dbe9d19ffdc1074d5686a67afb684160cd0929;hb=62fb6ee0357140b31fc7f0c7b98af06887680eb8;hp=4e897b4d5654b95dc64ce58754b7098a3c7ad225;hpb=6a8befc56f309e1e0b13fb91b213128a6f6b2bc6;p=mirror%2Fdsa-nagios.git diff --git a/dsa-nagios-checks/debian/cron.d b/dsa-nagios-checks/debian/cron.d index 4e897b4..d4dbe9d 100644 --- a/dsa-nagios-checks/debian/cron.d +++ b/dsa-nagios-checks/debian/cron.d @@ -1,8 +1,8 @@ -@reboot root sleep 10m && [ -x /usr/share/dsa/weak-ssh-keys-check ] && /usr/share/dsa/weak-ssh-keys-check -s /var/cache/dsa/nagios/weak-ssh-keys -@daily root [ -x /usr/share/dsa/weak-ssh-keys-check ] && /usr/share/dsa/weak-ssh-keys-check -s /var/cache/dsa/nagios/weak-ssh-keys - -@hourly root [ -x /usr/sbin/dsa-update-apt-status ] && /usr/sbin/dsa-update-apt-status +@hourly root [ -x /usr/sbin/dsa-update-apt-status ] && /usr/sbin/dsa-update-apt-status 2>&1 | logger -t dsa-update-apt-status +@hourly root [ -x /sbin/iptables-save ] && umask 0177; /sbin/iptables-save | sed -e 's/\[.*//' -e 's/^#.*//' | sha256sum > /var/run/iptables-online.checksum +@hourly root [ -x /sbin/ip6tables-save ] && umask 0177; /sbin/ip6tables-save | sed -e 's/\[.*//' -e 's/^#.*//' | sha256sum > /var/run/ip6tables-online.checksum 13 */4 * * * root [ -x /usr/sbin/dsa-update-samhain-status ] && /usr/sbin/dsa-update-samhain-status -4 4 1 * * root [ -x /usr/sbin/dsa-update-unowned-file-status ] && /usr/sbin/dsa-update-unowned-file-status +SHELL=/bin/bash +40 12 25 * * root [ -x /usr/sbin/dsa-update-unowned-file-status ] && sleep $(( $RANDOM \% 86400 )) && /usr/sbin/dsa-update-unowned-file-status # vim:ft=crontab: