diff --git a/plugins/emc/emc_vnx_block_lun_perfdata b/plugins/emc/emc_vnx_block_lun_perfdata index 696bf12b..2835df42 100755 --- a/plugins/emc/emc_vnx_block_lun_perfdata +++ b/plugins/emc/emc_vnx_block_lun_perfdata @@ -109,10 +109,11 @@ export LANG=C TARGET=$(echo "${0##*/}" | cut -d _ -f 6) +# "All SP's we have" SPALL="SPA SPB" NAVICLI="/nas/sbin/navicli" -ssh_check() { +ssh_check_cmd() { ssh -q $username@$1 "/nasmcd/sbin/getreason | grep -w slot_\`/nasmcd/sbin/t2slot\` | cut -d- -f1" } @@ -130,7 +131,7 @@ check_conf () { #Choosing Cotrol Station. Code have to be "10" for CS in $cs_addr; do - if [[ "10" -eq "$(ssh_check $CS)" ]]; then + if [[ "10" -eq "$(ssh_check_cmd \"$CS\")" ]]; then PRIMARY_CS=$CS break fi diff --git a/plugins/emc/emc_vnx_file_ b/plugins/emc/emc_vnx_file_ index c7794512..196c6bdf 100755 --- a/plugins/emc/emc_vnx_file_ +++ b/plugins/emc/emc_vnx_file_ @@ -84,7 +84,7 @@ export LANG=C . "$MUNIN_LIBDIR/plugins/plugin.sh" -ssh_check() { +ssh_check_cmd() { ssh -q $username@$1 "/nasmcd/sbin/getreason | grep -w slot_\`/nasmcd/sbin/t2slot\` | cut -d- -f1" } @@ -101,7 +101,7 @@ check_conf () { #Choosing Cotrol Station. Code have to be "10" for CS in $cs_addr; do - if [[ "10" -eq "$(ssh_check $CS)" ]]; then + if [[ "10" -eq "$(ssh_check_cmd \"$CS\")" ]]; then # echo "$CS is Primary" PRIMARY_CS=$CS break