Monitoring Performance Red Hat Linux using Performance Co-Pilot


Over the years, a lot of tools have been created to troubleshoot performance issues and monitoring performance Red Hat Linux or Linux systems. Tools like top , sar , iotop , iostat , iftop , vmstat , dstat , and others. However, none of these integrate with each other, some are extensions to others, and so on.

performance co-pilotPerformance Co-Pilot (PCP) seems to have a couple of things right: it monitors just about every aspect of your system, it allows the centralized storage of (important) performance data, and it allows you to use not only live data, but also saved data among others.

The Performance Co-Pilot (PCP) is an open source toolkit designed for monitoring and managing system-level performance. These services are distributed and scalable to accommodate the most complex system configurations and performance problems.

PCP supports many different platforms, including (but not limited to) Linux, MacOSX, FreeBSD, IRIX, Solaris and Windows (Win32). From a high-level PCP can be considered to contain two classes of software utility:

PCP Collectors – These are the parts of PCP that collect and extract performance data from various sources, e.g. the kernel or a database. These are available from http://pcp.io/ .

PCP Monitors – These are the parts of PCP that display data collected from hosts (or archives) that have the PCP Collector installed. Many monitor tools are available as part of PCP. Other monitoring tools are available separately, such as pmchart, in layered packages that build on the core PCP functionality.

 


Here, I will be focusing on very basics of PCP for monitoring performance Red Hat Linux. Like installing PCP on Red Hat Enterprise Linux 7 and getting familiarize with its command line.


Step #1 – Install pcp package. Its a part of official RHEL ISO, which might be with you

Installing Performance Co-Pilot on Red Hat Enterprise Linux 7

 

Step #2 – Start and enable necessary services / daemons

Monitoring red hat linux performance

 

Step #3 – Modify the config file /etc/pcp/pmlogger/control

Monitoring red hat linux performance

 

Step #4 – Don’t forget to restart the service after you modify config file

red hat linux performance monitoring

 

Step #5 – Its highly recommended to install “pcp-gui” package for visualizing data.

performance monitoring linux using pcp

 

Step #6 – Monitoring Red Hat Linux Performance – basic. We need to keep an eye out on global system values. The ones that I am interested now are : kernel.all.pswitch | kernel.all.nprocs | kernel.all.load. I want to display data for the metrics with a 1-second interval for the localhost

 

performance monitoring of red hat linux

 

Step #7 – Now monitoring performance red hat linux, visually we need to create a file with the following contents.

 

pcp data visualizing file

 

Step #8 – Use “pmchart” to plot a live chart for localhost

 

pmchart to get live data