[Pkg-cacti-maint] Bug#669339: cacti: overwrites log

Adrian Bridgett adrian at smop.co.uk
Thu Apr 19 08:28:38 UTC 2012


Package: cacti
Version: 0.8.7i-3

/etc/cron.d/cacti:
MAILTO=root
*/5 * * * * www-data php /usr/share/cacti/site/poller.php >/dev/null 
2>/var/log/cacti/poller-error.log

This means that poller-error.log is being overwritten every 5mins rather 
than appended to.

Personally I'd find it helpful to add a dependency on "moreutils" and 
then use "/usr/bin/ts" such that the log is timestamped:

MAILTO=root
*/5 * * * * www-data php /usr/share/cacti/site/poller.php 2>&1 
 >/dev/null | /usr/bin/ts >> /var/log/cacti/poller-error.log

Many thanks,

Adrian





More information about the Pkg-cacti-maint mailing list