Hi,
there was some off-list discussion what it would require to use PCP to
collect the exact same metrics which sysstat collects by default on many
distributions with:
# Run system activity accounting tool every 10 minutes
*/10 * * * * root /usr/lib64/sa/sa1 1 1
I wonder does anyone see any issues with a simple solution like this
which relies on sar2pcp to generate the list of the needed metrics:
# sar2pcp /var/log/sa/sa13 /tmp/sa13-pcp
# echo 'log mandatory on every 10 minutes {' > /etc/pcp/pmlogger/pcp-sa
# pminfo -a /tmp/sa13-pcp | sort >> /etc/pcp/pmlogger/pcp-sa
# echo '}' >> /etc/pcp/pmlogger/pcp-sa
# rm -f /tmp/sa13-pcp*
# echo 'LOCALHOSTNAME n n PCP_LOG_DIR/pmlogger/pcp-sa/LOCALHOSTNAME -r
-T24h10m -c config.pcp-sa' >> /etc/pcp/pmlogger/control
# chkconfig pmlogger on
# service pmlogger restart
Thanks,
--
Marko Myllynen
|