Changes committed to git://git.pcp.io/nathans/pcp.git master
Nathan Scott (1):
rc scripts: use syslog over email for error notification
src/pmcd/rc_pmcd | 22 ++------------------
src/pmie/rc_pmie | 51 +++++++++++++----------------------------------
src/pmlogger/rc_pmlogger | 26 +++++------------------
3 files changed, 24 insertions(+), 75 deletions(-)
commit 903ac3fb6106736ae54e16b8d9ddb767c4ba08ff
Author: Nathan Scott <nathans@xxxxxxxxxx>
Date: Wed Jul 22 15:52:48 2015 +1000
rc scripts: use syslog over email for error notification
After many requests from folks in production environments, we
now only send email in situations where explicitly requested,
prefering to log rc script errors to syslog instead.
Where the error messages are potentially bulky (pmie/pmlogger
cases) post to syslog with a pointer to a log file containing
the detail. Overwrite this logfile on subsequent errors such
that they do not grow indefinitely, but always contain detail
from the most recent failure for subsequent triage activity.
|