2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Fixed spaces to tabs

This commit is contained in:
Diver 2017-01-19 22:07:01 +03:00
parent a58ecbc002
commit 774793c004

View File

@ -188,7 +188,7 @@ TARGET=$(echo "${0##*/}" | cut -d _ -f 6)
check_conf 1>&2 || exit 1
run_remote () {
ssh -q "$username@$PRIMARY_CS" ". /home/""$username""/.bash_profile; $*"
ssh -q "$username@$PRIMARY_CS" ". /home/""$username""/.bash_profile; $*"
}
echo "host_name ${TARGET}"
@ -424,41 +424,40 @@ for server in $nas_servers; do
nas_server_ok=TRUE
if [ $STATSTYPE = "BASICDM" ] ; then
member_elements_by_line=$(run_remote server_stats "$server" -count 1 -terminationsummary no -titles never | grep '^[^[:space:]]')
# NUMCOL=5
IFS=$' ' read -ra graphs <<< "$member_elements_by_line"
IFS=$' ' read -ra graphs <<< "$member_elements_by_line"
echo "multigraph emc_vnx_cpu_percent"
echo "${server}_cpuutil.value ${graphs[1]}"
echo "multigraph emc_vnx_cpu_percent"
echo "${server}_cpuutil.value ${graphs[1]}"
echo -e "\nmultigraph emc_vnx_network_b"
echo "${server}_net_in.value $((${graphs[2]} * 1000))"
echo "${server}_net_out.value $((${graphs[3]} * 1000))"
echo -e "\nmultigraph emc_vnx_network_b"
echo "${server}_net_in.value $((${graphs[2]} * 1000))"
echo "${server}_net_out.value $((${graphs[3]} * 1000))"
echo -e "\nmultigraph emc_vnx_storage_b"
echo "${server}_stor_read.value $((${graphs[4]} * 1000))"
echo "${server}_stor_write.value $((${graphs[5]} * 1000))"
echo -e "\nmultigraph emc_vnx_storage_b"
echo "${server}_stor_read.value $((${graphs[4]} * 1000))"
echo "${server}_stor_write.value $((${graphs[5]} * 1000))"
member_elements_by_line=$(run_remote server_stats "$server" -monitor kernel.memory -count 1 -terminationsummary no -titles never | grep '^[^[:space:]]')
IFS=$' ' read -ra graphs <<< "$member_elements_by_line"
member_elements_by_line=$(run_remote server_stats "$server" -monitor kernel.memory -count 1 -terminationsummary no -titles never | grep '^[^[:space:]]')
IFS=$' ' read -ra graphs <<< "$member_elements_by_line"
echo -e "\nmultigraph emc_vnx_memory"
echo "${server}_total.value $((${graphs[14]} / 1024))"
echo "${server}_used.value $((${graphs[15]} / 1024))"
echo "${server}_free.value $((${graphs[12]} / 1024))"
echo "${server}_freebuffer.value $((${graphs[1]} / 1024))"
echo "${server}_encumbered.value $((${graphs[8]} / 1024))"
echo -e "\nmultigraph emc_vnx_memory"
echo "${server}_total.value $((${graphs[14]} / 1024))"
echo "${server}_used.value $((${graphs[15]} / 1024))"
echo "${server}_free.value $((${graphs[12]} / 1024))"
echo "${server}_freebuffer.value $((${graphs[1]} / 1024))"
echo "${server}_encumbered.value $((${graphs[8]} / 1024))"
echo -e "\nmultigraph emc_vnx_filecache"
echo "${server}_highw_hits.value ${graphs[2]}"
echo "${server}_loww_hits.value ${graphs[6]}"
echo "${server}_w_hits.value ${graphs[7]}"
echo "${server}_hits.value ${graphs[4]}"
echo -e "\nmultigraph emc_vnx_filecache"
echo "${server}_highw_hits.value ${graphs[2]}"
echo "${server}_loww_hits.value ${graphs[6]}"
echo "${server}_w_hits.value ${graphs[7]}"
echo "${server}_hits.value ${graphs[4]}"
echo "${server}_lookups.value ${graphs[5]}"
echo -e "\nmultigraph emc_vnx_fileresolve"
echo "${server}_dropped.value ${graphs[9]}"
echo "${server}_max.value ${graphs[10]}"
echo "${server}_used.value ${graphs[11]}"
echo -e "\nmultigraph emc_vnx_fileresolve"
echo "${server}_dropped.value ${graphs[9]}"
echo "${server}_max.value ${graphs[10]}"
echo "${server}_used.value ${graphs[11]}"
fi
@ -515,9 +514,9 @@ for server in $nas_servers; do
#nfs.client data
echo -e "\nmultigraph vnx_emc_nfs_client_ops_s"
member_elements_by_line=$(run_remote server_stats server_2 -monitor nfs.client -count 1 -terminationsummary no -titles never | sed -ne 's/^.*id=//p')
member_elements_by_line=$(run_remote server_stats server_2 -monitor nfs.client -count 1 -terminationsummary no -titles never | sed -ne 's/^.*id=//p')
NUMCOL=9
LINES=$(wc -l <<< "$member_elements_by_line")
LINES=$(wc -l <<< "$member_elements_by_line")
while IFS=$'\n' read -ra graphs; do
elements_array+=($graphs)
done <<< "$member_elements_by_line"