Skip to content

Instantly share code, notes, and snippets.

@suyash
Last active July 23, 2016 04:10
Show Gist options
  • Save suyash/0def9b33890d4a99ca9dd96724e1ac84 to your computer and use it in GitHub Desktop.
Save suyash/0def9b33890d4a99ca9dd96724e1ac84 to your computer and use it in GitHub Desktop.
Simpler PCP Build Instructions for Ubuntu 14.04

PCP Build on a fresh Ubuntu 14.04

  • qa/admin/check-vm does a system check
  1. dependencies
sudo apt-get -y install \
  autoconf \
  flex \
  bison \
  gawk \
  chrpath \
  debhelper \
  socat \
  valgrind \
  libpfm4-dev \
  libreadline-dev \
  libncurses5-dev \
  python-json-pointer \
  libextutils-autoinstall-perl \
  libxml-tokeparser-perl \
  librrds-perl \
  libspreadsheet-read-perl \
  libspreadsheet-xlsx-perl \
  sysv-rc-conf \
  dpkg-dev \
  autotools-dev \
  build-essential \
  libmicrohttpd-dev \
  libsasl2-dev \
  libibumad-dev \
  libibmad-dev \
  libavahi-common-dev \
  libpapi-dev \
  libcairo2-dev \
  python-all \
  python-all-dev \
  python3-all \
  python3-all-dev \
  realpath \
  apache2 \
  libperl-dev \
  libnet-snmp-perl \
  libwww-perl \
  libjson-perl \
  libqt4-dev \
  libsoqt-dev-common \
  libcoin80-dev \
  libsoqt4-dev \
  libnspr4-dev \
  libnss3-dev \
  libnss3-tools \
  libclass-dbi-perl \
  libdbd-pg-perl \
  libdbd-mysql-perl \
  gfs2-utils \
  libspreadsheet-writeexcel-perl \
  unbound

sudo cpan Spreadsheet::ReadSXC
  1. Create pcp User
sudo -i
groupadd -r pcp
# create unprivileged user pcp with home /var/lib/pcp
useradd -c "Performance Co-Pilot" -g pcp -d /var/lib/pcp -M -r -s /usr/sbin/nologin pcp
exit
  1. configure
./configure \
  --prefix=/usr \
  --libexecdir=/usr/lib \
  --sysconfdir=/etc \
  --localstatedir=/var \
  --with-rcdir=/etc/init.d
  1. make
make
  1. install
sudo make install
  1. start
sudo service pmcd start

once started, run pminfo to see a list of available metrics

  1. generally, the service starts up linux PMDA, showin metrics for disk, network, fs etc. To test installation of PMDAs, install the sample PMDA, provided by the installation with
cd /var/lib/pcp/pmdas/sample
sudo ./Install

if successful, everything is OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment