Projet

Général

Profil

Révision 2e02ddc6

ID2e02ddc6c7da9e8819e09cf1fe0e59b2a9a29f27
Parent f3cd750a
Enfant cc66cae1

Ajouté par Diver il y a presque 9 ans

uniform indentation style for here-documents

Voir les différences:

plugins/emc/emc_vnx_block_lun_perfdata
188 188

  
189 189
if [ "$1" = "config" ] ; then
190 190
	cat <<-EOF 
191
	multigraph emc_vnx_block_blocks
192
	graph_category disk
193
	graph_title EMC VNX 5300 LUN Blocks
194
	graph_vlabel Blocks Read (-) / Written (+)
195
	graph_args --base 1000
196
	
191
		multigraph emc_vnx_block_blocks
192
		graph_category disk
193
		graph_title EMC VNX 5300 LUN Blocks
194
		graph_vlabel Blocks Read (-) / Written (+)
195
		graph_args --base 1000
196
		
197 197
	EOF
198 198

  
199 199
	while read -r LUN ; do
200 200
		LUN="$(clean_fieldname "$LUN")"
201 201
		cat <<-EOF 
202
		${LUN}_read.label none
203
		${LUN}_read.graph no
204
		${LUN}_read.min 0
205
		${LUN}_read.draw AREA
206
		${LUN}_read.type COUNTER
207
		${LUN}_write.label $LUN Blocks
208
		${LUN}_write.negative ${LUN}_read
209
		${LUN}_write.type COUNTER
210
		${LUN}_write.min 0
211
		${LUN}_write.draw STACK
202
			${LUN}_read.label none
203
			${LUN}_read.graph no
204
			${LUN}_read.min 0
205
			${LUN}_read.draw AREA
206
			${LUN}_read.type COUNTER
207
			${LUN}_write.label $LUN Blocks
208
			${LUN}_write.negative ${LUN}_read
209
			${LUN}_write.type COUNTER
210
			${LUN}_write.min 0
211
			${LUN}_write.draw STACK
212 212
		EOF
213 213
	done <<< "$LUNLIST"
214 214

  
215 215
	cat <<-EOF
216 216

  
217
	multigraph emc_vnx_block_req
218
	graph_category disk
219
	graph_title EMC VNX 5300 LUN Requests
220
	graph_vlabel Requests: Read (-) / Write (+)
221
	graph_args --base 1000
222
	
217
		multigraph emc_vnx_block_req
218
		graph_category disk
219
		graph_title EMC VNX 5300 LUN Requests
220
		graph_vlabel Requests: Read (-) / Write (+)
221
		graph_args --base 1000
222
		
223 223
	EOF
224 224
	while read -r LUN ; do
225 225
		LUN="$(clean_fieldname "$LUN")"
226 226
		cat <<-EOF
227
		${LUN}_readreq.label none
228
		${LUN}_readreq.graph no
229
		${LUN}_readreq.min 0
230
		${LUN}_readreq.type COUNTER
231
		${LUN}_writereq.label $LUN Requests
232
		${LUN}_writereq.negative ${LUN}_readreq
233
		${LUN}_writereq.type COUNTER
234
		${LUN}_writereq.min 0
227
			${LUN}_readreq.label none
228
			${LUN}_readreq.graph no
229
			${LUN}_readreq.min 0
230
			${LUN}_readreq.type COUNTER
231
			${LUN}_writereq.label $LUN Requests
232
			${LUN}_writereq.negative ${LUN}_readreq
233
			${LUN}_writereq.type COUNTER
234
			${LUN}_writereq.min 0
235 235
		EOF
236 236
	done <<< "$LUNLIST"
237 237

  
238 238
	cat <<-EOF
239 239

  
240
	multigraph emc_vnx_block_ticks
241
	graph_category disk
242
	graph_title EMC VNX 5300 Counted Load per LUN
243
	graph_vlabel Load, % * Number of LUNs 
244
	graph_args --base 1000 -l 0 -r 
240
		multigraph emc_vnx_block_ticks
241
		graph_category disk
242
		graph_title EMC VNX 5300 Counted Load per LUN
243
		graph_vlabel Load, % * Number of LUNs 
244
		graph_args --base 1000 -l 0 -r 
245 245
	EOF
246 246
	echo -n "graph_order "
247 247
	while read -r LUN ; do
......
252 252
	while read -r LUN ; do
253 253
		LUN="$(clean_fieldname "$LUN")"
254 254
		cat <<-EOF
255
		${LUN}_busyticks_spa.label $LUN Busy Ticks SPA
256
		${LUN}_busyticks_spa.type COUNTER
257
		${LUN}_busyticks_spa.graph no
258
		${LUN}_bta.label $LUN Busy Ticks SPA
259
		${LUN}_bta.graph no
260
		${LUN}_idleticks_spa.label $LUN Idle Ticks SPA
261
		${LUN}_idleticks_spa.type COUNTER
262
		${LUN}_idleticks_spa.graph no
263
		${LUN}_busyticks_spb.label $LUN Busy Ticks SPB
264
		${LUN}_busyticks_spb.type COUNTER
265
		${LUN}_busyticks_spb.graph no
266
		${LUN}_btb.label $LUN Busy Ticks SPB
267
		${LUN}_btb.graph no
268
		${LUN}_idleticks_spb.label $LUN Idle Ticks SPB
269
		${LUN}_idleticks_spb.type COUNTER
270
		${LUN}_idleticks_spb.graph no
271
		${LUN}_load_spa.label $LUN load SPA 
272
		${LUN}_load_spa.draw AREASTACK
273
		${LUN}_load_spb.label $LUN load SPB
274
		${LUN}_load_spb.draw AREASTACK
275
		${LUN}_load_spa.cdef 100,${LUN}_bta,${LUN}_busyticks_spa,${LUN}_idleticks_spa,+,/,*
276
		${LUN}_load_spb.cdef 100,${LUN}_btb,${LUN}_busyticks_spa,${LUN}_idleticks_spa,+,/,*
255
			${LUN}_busyticks_spa.label $LUN Busy Ticks SPA
256
			${LUN}_busyticks_spa.type COUNTER
257
			${LUN}_busyticks_spa.graph no
258
			${LUN}_bta.label $LUN Busy Ticks SPA
259
			${LUN}_bta.graph no
260
			${LUN}_idleticks_spa.label $LUN Idle Ticks SPA
261
			${LUN}_idleticks_spa.type COUNTER
262
			${LUN}_idleticks_spa.graph no
263
			${LUN}_busyticks_spb.label $LUN Busy Ticks SPB
264
			${LUN}_busyticks_spb.type COUNTER
265
			${LUN}_busyticks_spb.graph no
266
			${LUN}_btb.label $LUN Busy Ticks SPB
267
			${LUN}_btb.graph no
268
			${LUN}_idleticks_spb.label $LUN Idle Ticks SPB
269
			${LUN}_idleticks_spb.type COUNTER
270
			${LUN}_idleticks_spb.graph no
271
			${LUN}_load_spa.label $LUN load SPA 
272
			${LUN}_load_spa.draw AREASTACK
273
			${LUN}_load_spb.label $LUN load SPB
274
			${LUN}_load_spb.draw AREASTACK
275
			${LUN}_load_spa.cdef 100,${LUN}_bta,${LUN}_busyticks_spa,${LUN}_idleticks_spa,+,/,*
276
			${LUN}_load_spb.cdef 100,${LUN}_btb,${LUN}_busyticks_spa,${LUN}_idleticks_spa,+,/,*
277 277
		EOF
278 278
	done <<< "$LUNLIST"
279 279

  
280 280
	cat <<-EOF
281
	
282
	multigraph emc_vnx_block_outstanding
283
	graph_category disk
284
	graph_title EMC VNX 5300 Sum of Outstanding Requests
285
	graph_vlabel Requests
286
	graph_args --base 1000
281
		
282
		multigraph emc_vnx_block_outstanding
283
		graph_category disk
284
		graph_title EMC VNX 5300 Sum of Outstanding Requests
285
		graph_vlabel Requests
286
		graph_args --base 1000
287 287
	EOF
288 288
	while read -r LUN ; do
289 289
		LUN="$(clean_fieldname "$LUN")"
290 290
		cat <<-EOF 
291
		${LUN}_outstandsum.label $LUN
292
		${LUN}_outstandsum.type COUNTER
293
	EOF
291
			${LUN}_outstandsum.label $LUN
292
			${LUN}_outstandsum.type COUNTER
293
		EOF
294 294
	done <<< "$LUNLIST"
295 295

  
296 296
	cat <<-EOF
297
	
298
	multigraph emc_vnx_block_nonzeroreq
299
	graph_category disk
300
	graph_title EMC VNX 5300 Non-Zero Request Count Arrivals
301
	graph_vlabel Count Arrivals
302
	graph_args --base 1000
297
		
298
		multigraph emc_vnx_block_nonzeroreq
299
		graph_category disk
300
		graph_title EMC VNX 5300 Non-Zero Request Count Arrivals
301
		graph_vlabel Count Arrivals
302
		graph_args --base 1000
303 303
	EOF
304 304
	while read -r LUN ; do
305 305
		LUN="$(clean_fieldname "$LUN")"
306 306
		cat <<-EOF
307
		${LUN}_nonzeroreq.label $LUN
308
		${LUN}_nonzeroreq.type COUNTER
307
			${LUN}_nonzeroreq.label $LUN
308
			${LUN}_nonzeroreq.type COUNTER
309 309
		EOF
310 310
	done <<< "$LUNLIST"
311 311

  
312 312
	cat <<-EOF
313 313

  
314
	multigraph emc_vnx_block_trespasses
315
	graph_category disk
316
	graph_title EMC VNX 5300 Trespasses
317
	graph_vlabel Trespasses
314
		multigraph emc_vnx_block_trespasses
315
		graph_category disk
316
		graph_title EMC VNX 5300 Trespasses
317
		graph_vlabel Trespasses
318 318
	EOF
319 319
	while read -r LUN ; do
320 320
		LUN="$(clean_fieldname "$LUN")"
321 321
		cat <<-EOF
322
		${LUN}_implic_tr.label ${LUN} Implicit Trespasses
323
		${LUN}_explic_tr.label ${LUN} Explicit Trespasses
322
			${LUN}_implic_tr.label ${LUN} Implicit Trespasses
323
			${LUN}_explic_tr.label ${LUN} Explicit Trespasses
324 324
		EOF
325 325
	done <<< "$LUNLIST"
326 326

  
327 327
	cat <<-EOF
328 328

  
329
	multigraph emc_vnx_block_queue
330
	graph_category disk
331
	graph_title EMC VNX 5300 Counted Block Queue Length
332
	graph_vlabel Length
329
		multigraph emc_vnx_block_queue
330
		graph_category disk
331
		graph_title EMC VNX 5300 Counted Block Queue Length
332
		graph_vlabel Length
333 333
	EOF
334 334
	while read -r LUN ; do
335 335
		LUN="$(clean_fieldname "$LUN")"
336 336
		cat <<-EOF
337
		${LUN}_busyticks_spa.label ${LUN}
338
		${LUN}_busyticks_spa.graph no
339
		${LUN}_busyticks_spa.type COUNTER
340
		${LUN}_idleticks_spa.label ${LUN}
341
		${LUN}_idleticks_spa.graph no
342
		${LUN}_idleticks_spa.type COUNTER
343
		${LUN}_busyticks_spb.label ${LUN}
344
		${LUN}_busyticks_spb.graph no
345
		${LUN}_busyticks_spb.type COUNTER
346
		${LUN}_idleticks_spb.label ${LUN}
347
		${LUN}_idleticks_spb.graph no
348
		${LUN}_idleticks_spb.type COUNTER
349
		${LUN}_outstandsum.label ${LUN}
350
		${LUN}_outstandsum.graph no
351
		${LUN}_outstandsum.type COUNTER
352
		${LUN}_nonzeroreq.label ${LUN}
353
		${LUN}_nonzeroreq.graph no
354
		${LUN}_nonzeroreq.type COUNTER
355
		${LUN}_readreq.label ${LUN}
356
		${LUN}_readreq.graph no
357
		${LUN}_readreq.type COUNTER
358
		${LUN}_writereq.label ${LUN}
359
		${LUN}_writereq.graph no
360
		${LUN}_writereq.type COUNTER
337
			${LUN}_busyticks_spa.label ${LUN}
338
			${LUN}_busyticks_spa.graph no
339
			${LUN}_busyticks_spa.type COUNTER
340
			${LUN}_idleticks_spa.label ${LUN}
341
			${LUN}_idleticks_spa.graph no
342
			${LUN}_idleticks_spa.type COUNTER
343
			${LUN}_busyticks_spb.label ${LUN}
344
			${LUN}_busyticks_spb.graph no
345
			${LUN}_busyticks_spb.type COUNTER
346
			${LUN}_idleticks_spb.label ${LUN}
347
			${LUN}_idleticks_spb.graph no
348
			${LUN}_idleticks_spb.type COUNTER
349
			${LUN}_outstandsum.label ${LUN}
350
			${LUN}_outstandsum.graph no
351
			${LUN}_outstandsum.type COUNTER
352
			${LUN}_nonzeroreq.label ${LUN}
353
			${LUN}_nonzeroreq.graph no
354
			${LUN}_nonzeroreq.type COUNTER
355
			${LUN}_readreq.label ${LUN}
356
			${LUN}_readreq.graph no
357
			${LUN}_readreq.type COUNTER
358
			${LUN}_writereq.label ${LUN}
359
			${LUN}_writereq.graph no
360
			${LUN}_writereq.type COUNTER
361 361
		EOF
362 362
# Queue Length SPA = ((Sum of Outstanding Requests SPA - NonZero Request Count Arrivals SPA / 2)/(Host Read Requests SPA + Host Write Requests SPA))*
363 363
# (Busy Ticks SPA/(Busy Ticks SPA + Idle Ticks SPA)
364 364
# We count together SPA and SPB, although it is not fully corrext
365 365
		cat <<-EOF
366
		${LUN}_ql_l_a.label ${LUN} Queue Length SPA
367
		${LUN}_ql_l_a.cdef ${LUN}_outstandsum,${LUN}_nonzeroreq,2,/,-,${LUN}_readreq,${LUN}_writereq,+,/,${LUN}_busyticks_spa,*,${LUN}_busyticks_spa,${LUN}_idleticks_spa,+,/
368
		${LUN}_ql_l_b.label ${LUN} Queue Length SPB
369
		${LUN}_ql_l_b.cdef ${LUN}_outstandsum,${LUN}_nonzeroreq,2,/,-,${LUN}_readreq,${LUN}_writereq,+,/,${LUN}_busyticks_spb,*,${LUN}_busyticks_spb,${LUN}_idleticks_spb,+,/
366
			${LUN}_ql_l_a.label ${LUN} Queue Length SPA
367
			${LUN}_ql_l_a.cdef ${LUN}_outstandsum,${LUN}_nonzeroreq,2,/,-,${LUN}_readreq,${LUN}_writereq,+,/,${LUN}_busyticks_spa,*,${LUN}_busyticks_spa,${LUN}_idleticks_spa,+,/
368
			${LUN}_ql_l_b.label ${LUN} Queue Length SPB
369
			${LUN}_ql_l_b.cdef ${LUN}_outstandsum,${LUN}_nonzeroreq,2,/,-,${LUN}_readreq,${LUN}_writereq,+,/,${LUN}_busyticks_spb,*,${LUN}_busyticks_spb,${LUN}_idleticks_spb,+,/
370 370
		EOF
371 371
	done <<< "$LUNLIST"
372 372
exit 0

Formats disponibles : Unified diff