Révision cb9f257c
More cleanup
| plugins/emc/emc_vnx_block_lun_perfdata | ||
|---|---|---|
| 229 | 229 |
|
| 230 | 230 |
echo -e "\nmultigraph emc_vnx_block_queue |
| 231 | 231 |
graph_category disk |
| 232 |
graph_title EMC VNX 5300 Queue Length |
|
| 232 |
graph_title EMC VNX 5300 Counted Block Queue Length
|
|
| 233 | 233 |
graph_vlabel Length" |
| 234 | 234 |
while read -r LUN ; do |
| 235 |
echo "${LUN}_busyticks_spa.label ${LUN}"
|
|
| 236 |
echo "${LUN}_busyticks_spa.graph no"
|
|
| 237 |
echo "${LUN}_busyticks_spa.type DERIVE"
|
|
| 238 |
echo "${LUN}_idleticks_spa.label ${LUN}"
|
|
| 239 |
echo "${LUN}_idleticks_spa.graph no"
|
|
| 240 |
echo "${LUN}_idleticks_spa.type DERIVE"
|
|
| 241 |
echo "${LUN}_busyticks_spb.label ${LUN}"
|
|
| 242 |
echo "${LUN}_busyticks_spb.graph no"
|
|
| 243 |
echo "${LUN}_busyticks_spb.type DERIVE"
|
|
| 244 |
echo "${LUN}_idleticks_spb.label ${LUN}"
|
|
| 245 |
echo "${LUN}_idleticks_spb.graph no"
|
|
| 246 |
echo "${LUN}_idleticks_spb.type DERIVE"
|
|
| 247 |
echo "${LUN}_outstandsum.label ${LUN}"
|
|
| 248 |
echo "${LUN}_outstandsum.graph no"
|
|
| 249 |
echo "${LUN}_outstandsum.type DERIVE"
|
|
| 250 |
echo "${LUN}_nonzeroreq.label ${LUN}"
|
|
| 251 |
echo "${LUN}_nonzeroreq.graph no"
|
|
| 252 |
echo "${LUN}_nonzeroreq.type DERIVE"
|
|
| 253 |
echo "${LUN}_readreq.label ${LUN}"
|
|
| 254 |
echo "${LUN}_readreq.graph no"
|
|
| 255 |
echo "${LUN}_readreq.type DERIVE"
|
|
| 256 |
echo "${LUN}_writereq.label ${LUN}"
|
|
| 257 |
echo "${LUN}_writereq.graph no"
|
|
| 258 |
echo "${LUN}_writereq.type DERIVE"
|
|
| 259 |
echo "${LUN}_ql_l_a.label ${LUN} Queue Length SPA"
|
|
| 260 |
echo "${LUN}_ql_l_a.cdef ${LUN}_outstandsum,${LUN}_nonzeroreq,2,/,-,${LUN}_readreq,${LUN}_writereq,+,/,${LUN}_busyticks_spa,*,${LUN}_busyticks_spa,${LUN}_idleticks_spa,+,/"
|
|
| 261 |
echo "${LUN}_ql_l_b.label ${LUN} Queue Length SPB"
|
|
| 262 |
echo "${LUN}_ql_l_b.cdef ${LUN}_outstandsum,${LUN}_nonzeroreq,2,/,-,${LUN}_readreq,${LUN}_writereq,+,/,${LUN}_busyticks_spb,*,${LUN}_busyticks_spb,${LUN}_idleticks_spb,+,/"
|
|
| 235 |
echo "${LUN}_busyticks_spa.label ${LUN}
|
|
| 236 |
${LUN}_busyticks_spa.graph no
|
|
| 237 |
${LUN}_busyticks_spa.type DERIVE
|
|
| 238 |
${LUN}_idleticks_spa.label ${LUN}
|
|
| 239 |
${LUN}_idleticks_spa.graph no
|
|
| 240 |
${LUN}_idleticks_spa.type DERIVE
|
|
| 241 |
${LUN}_busyticks_spb.label ${LUN}
|
|
| 242 |
${LUN}_busyticks_spb.graph no
|
|
| 243 |
${LUN}_busyticks_spb.type DERIVE
|
|
| 244 |
${LUN}_idleticks_spb.label ${LUN}
|
|
| 245 |
${LUN}_idleticks_spb.graph no
|
|
| 246 |
${LUN}_idleticks_spb.type DERIVE
|
|
| 247 |
${LUN}_outstandsum.label ${LUN}
|
|
| 248 |
${LUN}_outstandsum.graph no
|
|
| 249 |
${LUN}_outstandsum.type DERIVE
|
|
| 250 |
${LUN}_nonzeroreq.label ${LUN}
|
|
| 251 |
${LUN}_nonzeroreq.graph no
|
|
| 252 |
${LUN}_nonzeroreq.type DERIVE
|
|
| 253 |
${LUN}_readreq.label ${LUN}
|
|
| 254 |
${LUN}_readreq.graph no
|
|
| 255 |
${LUN}_readreq.type DERIVE
|
|
| 256 |
${LUN}_writereq.label ${LUN}
|
|
| 257 |
${LUN}_writereq.graph no
|
|
| 258 |
${LUN}_writereq.type DERIVE"
|
|
| 259 |
# Queue Length SPA = ((Sum of Outstanding Requests SPA - NonZero Request Count Arrivals SPA / 2)/(Host Read Requests SPA + Host Write Requests SPA))* |
|
| 260 |
# (Busy Ticks SPA/(Busy Ticks SPA + Idle Ticks SPA) |
|
| 261 |
# We count together SPA and SPB, although it is not fully corrext |
|
| 262 |
echo "${LUN}_ql_l_a.label ${LUN} Queue Length SPA
|
|
| 263 |
${LUN}_ql_l_a.cdef ${LUN}_outstandsum,${LUN}_nonzeroreq,2,/,-,${LUN}_readreq,${LUN}_writereq,+,/,${LUN}_busyticks_spa,*,${LUN}_busyticks_spa,${LUN}_idleticks_spa,+,/
|
|
| 264 |
${LUN}_ql_l_b.label ${LUN} Queue Length SPB
|
|
| 265 |
${LUN}_ql_l_b.cdef ${LUN}_outstandsum,${LUN}_nonzeroreq,2,/,-,${LUN}_readreq,${LUN}_writereq,+,/,${LUN}_busyticks_spb,*,${LUN}_busyticks_spb,${LUN}_idleticks_spb,+,/"
|
|
| 263 | 266 |
done <<< $LUNLIST |
| 264 |
|
|
| 265 |
|
|
| 266 |
|
|
| 267 | 267 |
exit 0 |
| 268 | 268 |
fi |
| 269 | 269 |
BIGSSHCMD="$SSH" |
| ... | ... | |
| 308 | 308 |
|
| 309 | 309 |
echo -e "\nmultigraph emc_vnx_block_queue" |
| 310 | 310 |
# Queue Length |
| 311 |
echo "$ANSWER" | grep "busyticks" |
|
| 312 |
echo "$ANSWER" | grep "idleticks." |
|
| 313 |
echo "$ANSWER" | grep "outstandsum\." |
|
| 314 |
echo "$ANSWER" | grep "nonzeroreq\." |
|
| 315 |
echo "$ANSWER" | grep "readreq\." |
|
| 316 |
echo "$ANSWER" | grep "writereq\." |
|
| 311 | 317 |
while read -r LUN ; do |
| 312 |
# Queue Length SPA = ((Sum of Outstanding Requests SPA - NonZero Request Count Arrivals SPA / 2)/(Host Read Requests SPA + Host Write Requests SPA))* |
|
| 313 |
# (Busy Ticks SPA/(Busy Ticks SPA + Idle Ticks SPA) |
|
| 314 |
|
|
| 315 |
# We count together SPA and SPB, although it is not fully corrext |
|
| 316 |
|
|
| 317 |
# echo "$ANSWER" | sed -ne "s/^${LUN}_busyticks_spa\./${LUN}_btspa\./p"
|
|
| 318 |
echo "$ANSWER" | grep "${LUN}_busyticks"
|
|
| 319 |
echo "$ANSWER" | grep "${LUN}_idleticks"
|
|
| 320 |
# echo "$ANSWER" | sed -ne "s/^${LUN}_idleticks_spa\./${LUN}_idspa\./p"
|
|
| 321 |
# echo "$ANSWER" | sed -ne "s/^${LUN}_busyticks_spb\./${LUN}_btspb\./p"
|
|
| 322 |
# echo "$ANSWER" | sed -ne "s/^${LUN}_idleticks_spb\./${LUN}_idspb\./p"
|
|
| 323 |
# echo "$ANSWER" | grep "${LUN}_busyticks_spa\.\|${LUN}_idleticks_spa\."
|
|
| 324 |
# echo "$ANSWER" | grep "${LUN}_busyticks_spb\.\|${LUN}_idleticks_spb\."
|
|
| 325 |
# echo "$ANSWER" | sed -ne "s/^${LUN}_outstandsum\./${LUN}_oss\./p"
|
|
| 326 |
echo "$ANSWER" | grep "${LUN}_outstandsum"
|
|
| 327 |
# echo "$ANSWER" | sed -ne "s/^${LUN}_nonzeroreq\./${LUN}_nzr\./p"
|
|
| 328 |
echo "$ANSWER" | grep "${LUN}_nonzeroreq"
|
|
| 329 |
# echo "$ANSWER" | sed -ne "s/^${LUN}_readreq\./${LUN}_rr\./p"
|
|
| 330 |
echo "$ANSWER" | grep "${LUN}_readreq"
|
|
| 331 |
# echo "$ANSWER" | sed -ne "s/^${LUN}_writereq\./${LUN}_wr\./p"
|
|
| 332 |
echo "$ANSWER" | grep "${LUN}_writereq"
|
|
| 333 | 318 |
echo "${LUN}_ql_l_a.value 0 "
|
| 334 | 319 |
echo "${LUN}_ql_l_b.value 0 "
|
| 335 | 320 |
done <<< $LUNLIST |
Formats disponibles : Unified diff