qa/admin/check-vm
does a system check
- 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
- 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
- configure
./configure \
--prefix=/usr \
--libexecdir=/usr/lib \
--sysconfdir=/etc \
--localstatedir=/var \
--with-rcdir=/etc/init.d
- make
make
- install
sudo make install
- start
sudo service pmcd start
once started, run pminfo
to see a list of available metrics
- 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.