Configure Repositories
This example is based on RHEL 7.6 so I register and attach a subscription before we get down to business.
subscription-manager register
subscription-manager attach --pool <pool_id>
Install and Start Monitoring
The monitoring services start automatically upon installation but have them start at each boot you have to enable their services.
yum install pcp-zeroconf
systemctl enable pmcd pmlogger
Live Text Based Monitoring
Command | Description |
---|---|
pcp atop | Similar to “top”. |
pcp atopsar | Similar to “sar”. |
pmrep -i eth0 -v network.interface.out | Network outbound. |
Live Web Based Monitoring
yum install pcp-webapi pcp-webjs
firewall-cmd --add-port 44323/tcp --permanent
firewall-cmd --reload
systemctl enable pmwebd
systemctl start pmwebd
Web browse to: http://<host>:44323/
Explore the various web applications provided on the jump page. There are many and the following image shows “Vector”.
Copy logs for Later Analysis
Archive the PCP logs for attaching to your Red Hat support ticket.
tar cvJf pcp-logs_$(hostname)_$(date +%Y%m%d).tar.xz /var/log/pcp/
Written with StackEdit.
No comments:
Post a Comment