mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
graph_array from graphs2
This commit is contained in:
parent
45b310c539
commit
b0123994ea
1 changed files with 7 additions and 7 deletions
|
@ -225,7 +225,7 @@ if [ "$1" = "config" ] ; then
|
||||||
${server}_max.label Max Limit
|
${server}_max.label Max Limit
|
||||||
${server}_used.label Used Entries
|
${server}_used.label Used Entries
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
if [ $STATSTYPE = "NFS" ] ; then
|
if [ $STATSTYPE = "NFS" ] ; then
|
||||||
#nfs.v3.op data
|
#nfs.v3.op data
|
||||||
member_elements=$(run_remote server_stats "$server" -info nfs.v3.op | grep member_elements | sed -ne 's/^.*= //p')
|
member_elements=$(run_remote server_stats "$server" -info nfs.v3.op | grep member_elements | sed -ne 's/^.*= //p')
|
||||||
|
@ -313,7 +313,7 @@ if [ "$1" = "config" ] ; then
|
||||||
# Total Read Write Suspicious Total Read Write Avg
|
# Total Read Write Suspicious Total Read Write Avg
|
||||||
# Ops/s Ops/s Ops/s Ops diff KiB/s KiB/s KiB/s uSec/call
|
# Ops/s Ops/s Ops/s Ops diff KiB/s KiB/s KiB/s uSec/call
|
||||||
member_elements=$(run_remote server_stats server_2 -monitor nfs.client -count 1 -terminationsummary no -titles never | sed -ne 's/^.*id=//p' | cut -d' ' -f1)
|
member_elements=$(run_remote server_stats server_2 -monitor nfs.client -count 1 -terminationsummary no -titles never | sed -ne 's/^.*id=//p' | cut -d' ' -f1)
|
||||||
readarray graphs2 <<< "$member_elements"
|
readarray graphs_array <<< "$member_elements"
|
||||||
cat <<-EOF
|
cat <<-EOF
|
||||||
|
|
||||||
multigraph vnx_emc_nfs_client_ops_s
|
multigraph vnx_emc_nfs_client_ops_s
|
||||||
|
@ -322,12 +322,12 @@ if [ "$1" = "config" ] ; then
|
||||||
graph_category nfs
|
graph_category nfs
|
||||||
EOF
|
EOF
|
||||||
echo -n "graph_order "
|
echo -n "graph_order "
|
||||||
for graph in "${graphs2[@]}"; do
|
for graph in "${graphs_array[@]}"; do
|
||||||
field=$(echo "$graph" | sed -ne 's/\./_/pg' )
|
field=$(echo "$graph" | sed -ne 's/\./_/pg' )
|
||||||
echo -n "${server}_${field}_r ${server}_${field}_w ${server}_${field}_t ${server}_${field}_s "
|
echo -n "${server}_${field}_r ${server}_${field}_w ${server}_${field}_t ${server}_${field}_s "
|
||||||
done
|
done
|
||||||
echo " "
|
echo " "
|
||||||
for graph in "${graphs2[@]}"; do
|
for graph in "${graphs_array[@]}"; do
|
||||||
field=$(echo "$graph" | sed -ne 's/\./_/pg' )
|
field=$(echo "$graph" | sed -ne 's/\./_/pg' )
|
||||||
echo "${server}_${field}_r.label $server $field Read Ops/s"
|
echo "${server}_${field}_r.label $server $field Read Ops/s"
|
||||||
echo "${server}_${field}_w.label $server $field Write Ops/s"
|
echo "${server}_${field}_w.label $server $field Write Ops/s"
|
||||||
|
@ -344,12 +344,12 @@ if [ "$1" = "config" ] ; then
|
||||||
graph_category nfs
|
graph_category nfs
|
||||||
EOF
|
EOF
|
||||||
echo -n "graph_order "
|
echo -n "graph_order "
|
||||||
for graph in "${graphs2[@]}"; do
|
for graph in "${graphs_array[@]}"; do
|
||||||
field=$(echo "$graph" | sed -ne 's/\./_/pg' )
|
field=$(echo "$graph" | sed -ne 's/\./_/pg' )
|
||||||
echo -n "${server}_${field}_r ${server}_${field}_w ${server}_${field}_t "
|
echo -n "${server}_${field}_r ${server}_${field}_w ${server}_${field}_t "
|
||||||
done
|
done
|
||||||
echo " "
|
echo " "
|
||||||
for graph in "${graphs2[@]}"; do
|
for graph in "${graphs_array[@]}"; do
|
||||||
field=$(echo "$graph" | sed -ne 's/\./_/pg' )
|
field=$(echo "$graph" | sed -ne 's/\./_/pg' )
|
||||||
echo "${server}_${field}_r.label $server $field Read B/s"
|
echo "${server}_${field}_r.label $server $field Read B/s"
|
||||||
echo "${server}_${field}_r.cdef ${server}_${field}_r,1024,*"
|
echo "${server}_${field}_r.cdef ${server}_${field}_r,1024,*"
|
||||||
|
@ -367,7 +367,7 @@ if [ "$1" = "config" ] ; then
|
||||||
graph_vlabel uSec/call
|
graph_vlabel uSec/call
|
||||||
graph_category nfs
|
graph_category nfs
|
||||||
EOF
|
EOF
|
||||||
for graph in "${graphs2[@]}"; do
|
for graph in "${graphs_array[@]}"; do
|
||||||
field=$(echo "$graph" | sed -ne 's/\./_/pg' )
|
field=$(echo "$graph" | sed -ne 's/\./_/pg' )
|
||||||
echo "${server}_${field}.label $server $field Avg uSec/call"
|
echo "${server}_${field}.label $server $field Avg uSec/call"
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue