dsa-update-apt-status: send the cron output to syslog rather than email
authorTollef Fog Heen <tfheen@err.no>
Fri, 30 Mar 2012 19:19:58 +0000 (21:19 +0200)
committerTollef Fog Heen <tfheen@err.no>
Fri, 30 Mar 2012 19:20:06 +0000 (21:20 +0200)
dsa-nagios-checks/debian/changelog
dsa-nagios-checks/debian/cron.d

index 527920f..114e052 100644 (file)
@@ -3,6 +3,7 @@ dsa-nagios-checks (9X) Xnstable; urgency=low
   [ Tollef Fog Heen ]
   * dsa-update-unowned-file-status: Use -fstype proc rather than hard
     coding /proc in order to match procfs in chroots too.
+  * dsa-update-apt-status: send the cron output to syslog rather than email
 
   [ Peter Palfrader ]
   * dsa-check-msa-eventlog: Add --verbose switch to show info level
index 6e1f52b..a74723b 100644 (file)
@@ -1,7 +1,7 @@
 @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
 13 */4 * * * root [ -x /usr/sbin/dsa-update-samhain-status ] && /usr/sbin/dsa-update-samhain-status
 
 SHELL=/bin/bash