在部署PCP时,我用到了两台cent os 7虚拟机。
1.官方安装文档
http://pcp.io/docs/guide.html
2.官方用户指引
http://pcp.io/doc/pcp-users-and-administrators-guide.pdf
3.安装步骤简介
监控机和被监控机均需要关闭firewall防火墙
关闭firewall:
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动
firewall-cmd --state #查看默认防火墙状态(关闭后显示not running,开启后显示running)
监控机:
①安装Collector
# yum install pcp
# systemctl enable pmcd
# systemctl start pmcd
# systemctl enable pmlogger
# systemctl start pmlogger
# cd /var/lib/pcp/pmdas/proc
# ./Install
②安装monitor
# yum install pcp-doc pcp-gui pcp-system-tools
# echo acme.com n n PCP_LOG_DIR/pmlogger/acme.com -r -T24h10m -c config.acme.com >> /etc/pcp/pmlogger/control
# systemctl restart pmlogger
③安装Dynamic Host