This file is indexed.

/var/lib/pcp/testsuite/352 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/sh
# PCP QA Test No. 352
#
# derived metrics and pmlogger ...
#
# Copyright (c) 2010 Ken McDonell.  All Rights Reserved.
#

seq=`basename $0`
echo "QA output created by $seq"

# get standard environment, filters and checks
. ./common.product
. ./common.filter
. ./common.check

status=0	# success is the default!
$sudo rm -rf $tmp.* $seq.full
trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15

cat <<End-of-File >$tmp.derive
sample.long.nine = sample.long.ten - sample.long.one
sample.long.ninety_nine = sample.long.hundred - sample.long.one
sample.long.lots = sample.long.million - sample.long.hundred
End-of-File

cat <<End-of-File >$tmp.config
log mandatory on 100msec {
    sample.long.one
    sample.long.ten
    sample.long.nine
    sample.long.ninety_nine
    sample.long.lots
}
End-of-File

_filter()
{
    sed \
	-e "s;$tmp;TMP;g" \
	-e '/pmcd\.pmlogger\./s/.*/	.../'
}

unset PCP_DERIVED_CONFIG

# real QA test starts here
echo "Expect this to fail as derived metrics not defined ..."
rm -f $tmp.0 $tmp.meta $tmp.index $tmp.log
pmlogger -c $tmp.config -l $tmp.log -s 2 $tmp
cat $tmp.log >$seq.full
_filter_pmlogger_log <$tmp.log | _filter
pmdumplog $tmp | tee -a $seq.full | _filter_pmdumplog | _filter

echo | tee -a $seq.full
echo "Now with derived metrics defined ..." | tee -a $seq.full
export PCP_DERIVED_CONFIG=$tmp.derive
pminfo -f  `grep sample $tmp.config`
rm -f $tmp.0 $tmp.meta $tmp.index $tmp.log
pmlogger -c $tmp.config -l $tmp.log -s 3 $tmp
cat $tmp.log >>$seq.full
_filter_pmlogger_log <$tmp.log | _filter
unset PCP_DERIVED_CONFIG
pmdumplog $tmp | tee -a $seq.full | _filter_pmdumplog | _filter

# pmval -a $tmp -t 0.1sec sample.long.nine
pminfo -f -a $tmp -O 0.24sec sample.long

# success, all done
exit