/var/lib/pcp/testsuite/433 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 | #! /bin/sh
# PCP QA Test No. 433
# Test pmie bug #573184
#
# Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
#
seq=`basename $0`
echo "QA output created by $seq"
# get standard filters
. ./common.product
. ./common.filter
. ./common.check
status=1 # failure is the default!
trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
_filter()
{
_show_pmie_errors | sort | sed -e 's/"//g' -e 's/note - //g'
}
_check_core()
{
if [ "`echo core*`" != "core*" ]
then
$PCP_ECHO_PROG $PCP_ECHO_N "Dumped core! (saved in $here as""$PCP_ECHO_C"
for c in core*
do
$sudo mv $c $here/$seq.$c
$PCP_ECHO_PROG $PCP_ECHO_N " $seq.$c""$PCP_ECHO_C"
done
echo ")"
fi
}
# real QA test starts here
$sudo rm -f core*
cat << end-of-file > $tmp.conf
delta = 1 sec;
(\$day_of_week >= 1 && \$day_of_week <= 5) && (\$hour >= 7 && \$hour <= 18) &&
some_host (
30 %_sample irix.disk.all.read :omen @0..9 > 0 )
-> print "Disk reads on %h";
end-of-file
pmie -z -a src/573184 $tmp.conf >$tmp.out 2>$tmp.err
cat $tmp.out $tmp.err | _filter
_check_core
# success, all done
status=0
exit
|