Allow pmie logs to be rotated as part of the regular daily PCP
house-keeping scripts (introducing a pmie_daily to do this).
The pmie "print" action, when used in conjunction with other
actions for regular alarming, can provide an invaluable audit
trail of historical rule firings. However, in production one
cannot have unbounded log growth - so, this implements rotation,
compression, and culling in a similar way to the pmlogger log
management.
At the same time I fixed several small issues that were found
while reviewing the pmlogger daily archive maintenance scripts.
I also changed the default compression program to be bzip2(1),
from compress (which doesn't seem to exist on any PCP platforms
other than IRIX).
pmie log file rotation
Allow pmie logs to be rotated as part of the regular daily PCP
house-keeping scripts (introducing a pmie_daily to do this).
The pmie "print" action, when used in conjunction with other
actions for regular alarming, can provide an invaluable audit
trail of historical rule firings. However, in production one
cannot have unbounded log growth - so, this implements rotation,
compression, and culling in a similar way to the pmlogger log
management.
At the same time I fixed several small issues that were found
while reviewing the pmlogger daily archive maintenance scripts.
I also changed the default compression program to be bzip2(1),
from compress (which doesn't seem to exist on any PCP platforms
other than IRIX).