/var/lib/pcp/testsuite/archives/mk.procsched is in pcp-testsuite 4.0.1-1.
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 | #!/bin/sh
#
# Recipe for creating the procsched archive
#
. $PCP_DIR/etc/pcp.env
tmp=/tmp/$$
rm -rf $tmp
if pmprobe proc.psinfo.nice 2>&1 | grep -q 'Unknown metric name'
then
echo "Arrg, proc PMDA is apparently not installed"
exit 1
fi
trap "rm -rf $tmp; exit" 0 1 2 3 15
pid=$$
cat <<End-of-File >$tmp.config
log mandatory on 1sec {
proc.psinfo.nice [ 1 $pid ]
proc.psinfo.priority[ 1 $pid ]
}
End-of-File
${PCP_BINADM_DIR}/pmlogger -s 5 -c $tmp.config procsched
exit
|