3 # pmlogger config with hyphens in hostname - #828416
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
16 status
=0 # success is the default!
18 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
23 -e 's/__pmGetAddrInfo(/gethostbyname(/g' \
24 -e 's/__pmGetHostByName(/gethostbyname(/g' \
25 -e '/gethostbyname(/s/ Resolver Error 0 (no error)/ Unknown host/' \
26 -e '/gethostbyname(/s/ No address associated with name/ Unknown host/' \
27 -e '/gethostbyname(/s/ Host name lookup failure/ Unknown host/'
30 # real QA test starts here
31 for host in nosuchhost.pcp.io no-such-host.pcp.io
33 cat <<End-of-File | pmlogger -l $tmp.log $tmp
34 log mandatory on once { hinv.ncpu }
37 allow $host:advisory,mandatory,enquire;
40 _filter_pmlogger_log
<$tmp.log | _filter