3 # Exercise pmrep vmstat-style output.
5 # Copyright (c) 2015 Red Hat. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
16 which pmrep
>/dev
/null
2>&1 || _notrun
"pmrep not installed"
17 [ $PCP_PLATFORM = linux
] || _notrun
"requires Linux kernel metrics"
19 status
=1 # failure is the default!
20 $sudo rm -rf $tmp $tmp.
* $seq.full
21 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
23 config
="$PCP_SYSCONF_DIR/pmrep/pmrep.conf"
25 # real QA test starts here
26 echo "== exercise vmstat config section, live"
27 pmrep
-s 2 -c $config :vmstat |
sed -e 's/[0-9][0-9]*/xxx/g'
29 echo "== exercise vmstat config section, archive"
30 pmrep
-z -t 1 -a .
/archives
/pcp-vmstat
-c $config :vmstat