/var/lib/pcp/testsuite/362.out is in pcp-testsuite 3.8.12ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 | QA output created by 362
--- group file ---
#pmlogconf-setup 2.0
ident Bad metric name
probe no.such.metric
--- pmlogconf-setup stdout ---
#+ TMP.grp:x::
--- exit status=0 ---
--- group file ---
#pmlogconf-setup 2.0
ident Good metric name - default everything
probe sample.secret.foo.bar.three
--- pmlogconf-setup stdout ---
#+ TMP.grp:n:default:
--- exit status=0 ---
--- group file ---
#pmlogconf-setup 2.0
ident Good metric name - no values
probe sample.noinst values
--- pmlogconf-setup stdout ---
#+ TMP.grp:x::
--- exit status=0 ---
--- group file ---
#pmlogconf-setup 2.0
ident Good metric name - has values
probe sample.secret.foo.bar.three values
--- pmlogconf-setup stdout ---
#+ TMP.grp:n:default:
--- exit status=0 ---
--- group file ---
#pmlogconf-setup 2.0
ident Good metric name - exists and non-default rules
probe sample.secret.foo.bar.three exists ? available : exclude
--- pmlogconf-setup stdout ---
#+ TMP.grp:n:default:
--- exit status=0 ---
--- group file ---
#pmlogconf-setup 2.0
ident Good metric name - exists and explicit default rules
probe sample.secret.foo.bar.three values ? include : exclude
--- pmlogconf-setup stdout ---
#+ TMP.grp:y:default:
--- exit status=0 ---
--- group file ---
#pmlogconf-setup 2.0
ident Good metric name - exists and regex
probe sample.secret.foo.bar.three ~ 3
--- pmlogconf-setup stdout ---
#+ TMP.grp:n:default:
--- exit status=0 ---
--- group file ---
#pmlogconf-setup 2.0
ident Good metric name - exists and regex and non-default rules
probe sample.secret.foo.bar.three ~ 3 ? available : exclude
--- pmlogconf-setup stdout ---
#+ TMP.grp:n:default:
--- exit status=0 ---
--- group file ---
#pmlogconf-setup 2.0
ident Bad: metric name exists and regex - missing operand
probe sample.secret.foo.bar.three ~
--- pmlogconf-setup stdout ---
--- exit status=1 ---
--- pmlogconf-setup stderr ---
TMP.grp: Error: missing condition operand after ~ operator
--- group file ---
#pmlogconf-setup 2.0
ident Bad: metric exists - not ? as expected
probe hinv.ncpu exists foobar
--- pmlogconf-setup stdout ---
--- exit status=1 ---
--- pmlogconf-setup stderr ---
TMP.grp: Error: expected "?" after condition, found "foobar"
--- group file ---
#pmlogconf-setup 2.0
ident Bad: metric exists - state rule missing an argument
probe hinv.ncpu exists ? include :
--- pmlogconf-setup stdout ---
--- exit status=1 ---
--- pmlogconf-setup stderr ---
TMP.grp: Error: missing state rule components: "? include :"
--- group file ---
#pmlogconf-setup 2.0
ident Bad: metric exists - state rule extra arguments
probe hinv.ncpu exists ? include : exclude foo
--- pmlogconf-setup stdout ---
--- exit status=1 ---
--- pmlogconf-setup stderr ---
TMP.grp: Error: extra state rule components: "? include : exclude foo"
--- group file ---
#pmlogconf-setup 2.0
ident Bad: metric exists - state rule not : where expected
probe hinv.ncpu exists ? include foo exclude
--- pmlogconf-setup stdout ---
--- exit status=1 ---
--- pmlogconf-setup stderr ---
TMP.grp: Error: expected ":" in state rule, found "foo"
--- group file ---
#pmlogconf-setup 2.0
ident Bad: metric exists - state rule illegal success state
probe hinv.ncpu exists ? foo : exclude
--- pmlogconf-setup stdout ---
--- exit status=1 ---
--- pmlogconf-setup stderr ---
TMP.grp: Error: sucess state "foo" not recognized
--- group file ---
#pmlogconf-setup 2.0
ident Bad: metric exists - state rule illegal failure state
probe hinv.ncpu exists ? available : foo
--- pmlogconf-setup stdout ---
--- exit status=1 ---
--- pmlogconf-setup stderr ---
TMP.grp: Error: failure state "foo" not recognized
--- group file ---
#pmlogconf-setup 2.0
ident Good - force available
force available
--- pmlogconf-setup stdout ---
#+ TMP.grp:n:default:
--- exit status=0 ---
--- group file ---
#pmlogconf-setup 2.0
ident Good - regex match and include
probe sample.string.hullo ~ ^h[eu]llo.world!$
--- pmlogconf-setup stdout ---
#+ TMP.grp:n:default:
--- exit status=0 ---
--- group file ---
#pmlogconf-setup 2.0
ident Good - notregex nomatch and exclude
probe sample.bin !~ [1-9]00 ? include : exclude
--- pmlogconf-setup stdout ---
#+ TMP.grp:x::
--- exit status=0 ---
--- group file ---
#pmlogconf-setup 2.0
ident Good - if bazillions of CPUs include, else available
probe hinv.ncpu > 1000 ? include : available
--- pmlogconf-setup stdout ---
#+ TMP.grp:n:default:
--- exit status=0 ---
--- group file ---
#pmlogconf-setup 2.0
ident Good - include
probe sample.bin < 101 ? include : exclude
--- pmlogconf-setup stdout ---
#+ TMP.grp:y:default:
--- exit status=0 ---
--- group file ---
#pmlogconf-setup 2.0
ident Good - include
probe sample.bin <= 100 ? include : exclude
--- pmlogconf-setup stdout ---
#+ TMP.grp:y:default:
--- exit status=0 ---
--- group file ---
#pmlogconf-setup 2.0
ident Good - include
probe sample.bin == 400 ? include : exclude
--- pmlogconf-setup stdout ---
#+ TMP.grp:y:default:
--- exit status=0 ---
--- group file ---
#pmlogconf-setup 2.0
ident Good - include
probe sample.bin != 100 ? include : exclude
--- pmlogconf-setup stdout ---
#+ TMP.grp:y:default:
--- exit status=0 ---
--- group file ---
#pmlogconf-setup 2.0
ident Good - include
probe sample.bin >= 900 ? include : exclude
--- pmlogconf-setup stdout ---
#+ TMP.grp:y:default:
--- exit status=0 ---
--- group file ---
#pmlogconf-setup 2.0
ident Good - include
probe sample.bin > 899 ? include : exclude
--- pmlogconf-setup stdout ---
#+ TMP.grp:y:default:
--- exit status=0 ---
--- group file ---
#pmlogconf-setup 2.0
ident Example from pmlogconf(1) man page
ident ... more descripton
delta 1 minute
probe sample.secret.foo.one values ? include : exclude
sample.secret.foo.one
sample.secret.foo.bar # non-leaf in the PMNS
sample.colour [ red green ]
--- pmlogconf-setup stdout ---
#+ TMP.grp:y:1 minute:
--- exit status=0 ---
|