/var/lib/pcp/testsuite/src/mkproc is in pcp-testsuite 3.8.12ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | #!/bin/sh
#
# Recipe to remake proc archive
#
rm -f proc.0 proc.index proc.meta
. $PCP_DIR/etc/pcp.env
pmcd_pid=`$PCP_PS_PROG $PCP_PS_ALL_FLAGS | grep '[p]mcd' | $PCP_AWK_PROG '{ print $2 }'`
if [ -z "$pmcd_pid" ]
then
echo "Failed to get pmcd PID"
exit 1
fi
pmlogger_pid=`$PCP_PS_PROG $PCP_PS_ALL_FLAGS | grep '[p]mlogger -P' | $PCP_AWK_PROG '{ print $2 }'`
if [ -z "$pmlogger_pid" ]
then
echo "Failed to get primary pmlogger PID"
exit 1
fi
cat <<End-of-File | $PCP_BINADM_DIR/pmlogger -s 4 -l proc.log proc
log mandatory on 500msec {
hinv
proc [$pmcd_pid,$pmlogger_pid]
kernel
disk
}
End-of-File
|