4 # segv with derived metrics
6 # Copyright (c) 2010 Ken McDonell. All Rights Reserved.
10 echo "QA output created by $seq"
12 # get standard environment, filters and checks
17 status
=0 # success is the default!
18 $sudo rm -rf $tmp.
* $seq.full
19 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
21 cat <<End-of-File >$tmp.config
22 bad_in_pkts = network.interface.in.errors + network.interface.in.drops
29 -e '/^\[TIMESTAMP]/'"s/ `hostname`/ HOST/" \
30 -e '/^\[TIMESTAMP]/'"s/ local:/ HOST/" \
32 -e '/expr_1: [0-9. ]*/s/ .*/ value(s)/' \
33 -e 's/Connection reset by peer/IPC protocol failure/' \
35 skip == 0 && /expr_1/ { print; print "..."; print ""; skip = 1; next }
36 skip == 1 && /expr_1/ { next }
37 skip == 1 && NF == 0 { next }
41 # real QA test starts here
43 export PCP_DERIVED_CONFIG
=$tmp.config
44 echo "bad_in_pkts;" | pmie
-t 1 -T+12 -v >$tmp.out
2>&1 &
48 unset PCP_DERIVED_CONFIG
49 $sudo $PCP_RC_DIR/pcp restart \
54 cat $tmp.out
>$seq.full