3 # Check dynamic metrics work with PMAPI clients - DSO PMDA version
4 # pmdumptext test from 210
6 # Copyright (c) 2009,2011 Ken McDonell. All Rights Reserved.
10 echo "QA output created by $seq"
12 # get standard environment, filters and checks
17 grep -q ' RESERVED_DO_NOT_USE[ ]*511' $PCP_VAR_DIR/pmns
/stdpmid || \
18 _notrun
"No support for dynamic PMNS entries"
19 which pmdumptext
>/dev
/null
2>&1 || _notrun
"pmdumptext not installed"
21 status
=0 # success is the default!
23 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
29 |
sed -e '/^Time[ ]/s/[ ]local::/ HOST:/g' \
30 |
sed -e '/^Time[ ]/s/[ ][^:]*:/ HOST:/g' \
32 NR == 1 { for (i = 1; i <= NF; i++) {
33 if ($i ~ /\.max\.redirect/)
39 { for (i = 1; i <= NF; i++) {
40 if (state[i]) printf "%s ",$i
49 pmdumptext
-H -s 3 $
* | _filter_dumptext
52 # real QA test starts here
54 echo "PMNS traversal tests ..."
55 pminfo sampledso |
grep '\.secret\.' | LC_COLLATE
=POSIX
sort
57 _do sampledso.secret.bar sampledso.secret.foo
58 _do sampledso.secret.foo.bar.grunt