/var/lib/pcp/testsuite/archives/mk.instant 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 29 | #!/bin/sh
#
# Create instant-* archives
#
rm -f instant-*.meta instant-*.0 instant-*.index
tmp=/var/tmp/$$
trap "rm -f $tmp.*; exit 0" 0 1 2 3 15
cat <<End-of-File >$tmp.config
log mandatory on default {
sample.seconds
sample.milliseconds
sample.double.bin_ctr
disk.dev.total
disk.dev.read
disk.dev.write
}
End-of-File
pmlogger -s 10 -t 1 -c $tmp.config instant-base
cat <<End-of-File >$tmp.config
metric 29.*.* { sem -> INSTANT }
metric disk.dev.total { sem -> INSTANT }
End-of-File
pmlogrewrite -c $tmp.config instant-base instant-1
|