[packages/cacti] send noisy poller output to a logfile
glen
glen at pld-linux.org
Sat Jul 6 18:17:08 CEST 2013
commit cbfcea0b5b8018423cb569be3f8abf9b1438d763
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Jul 6 19:16:55 2013 +0300
send noisy poller output to a logfile
cacti.crontab | 2 +-
cacti.logrotate | 10 ++++++++++
2 files changed, 11 insertions(+), 1 deletion(-)
---
diff --git a/cacti.crontab b/cacti.crontab
index 5e0ffc0..5ac5140 100644
--- a/cacti.crontab
+++ b/cacti.crontab
@@ -1,7 +1,7 @@
MAILTO=root
# poller
-*/5 * * * * cacti umask 022; exec /usr/sbin/cacti-poller > /dev/null
+*/5 * * * * cacti umask 022; exec nice -n 19 /usr/sbin/cacti-poller >> /var/log/cacti/poller.log 2>&1
# reindex interface data (expensive); reapply data source/graph names based on templates and reindexed data
# remove "exec>/dev/null" if you want to receive output from the jobs
diff --git a/cacti.logrotate b/cacti.logrotate
index 8f53fea..ffd23ac 100644
--- a/cacti.logrotate
+++ b/cacti.logrotate
@@ -8,3 +8,13 @@
create 660 root http
dateext
}
+
+/var/log/cacti/poller.log {
+ missingok
+ olddir /var/log/archive/cacti
+ rotate 7
+ daily
+ compress
+ create 644 cacti http
+ dateext
+}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/cacti.git/commitdiff/cbfcea0b5b8018423cb569be3f8abf9b1438d763
More information about the pld-cvs-commit
mailing list