3 # pmie dumps core on this
5 # Copyright (c) 2012 Ken McDonell. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
16 status
=1 # failure is the default!
17 $sudo rm -rf $tmp.
* $seq.full
18 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
20 # real QA test starts here
22 cat >$tmp.conf
<<'End-of-File'
23 // bad summary pmda config ... summary.ncpu.sum defined twice
24 hosts = ":localhost :localhost";
25 summary.ncpu.sum = sum_host hinv.ncpu $hosts;
26 summary.ncpu.avg = avg_host hinv.ncpu $hosts;
27 summary.ncpu.sum = max_host hinv.ncpu $hosts;
29 pmie
-v -t 1 -T 1 <$tmp.conf
>$tmp.out
2>$tmp.err
30 cat $tmp.out
$tmp.err \
33 -e '/^summary/s/[0-9][0-9]*$/N/' \