From b657debc86b2fb06bc8d62872f9fae37b6529762 Mon Sep 17 00:00:00 2001 From: Diver Date: Thu, 26 Jan 2017 20:19:40 +0300 Subject: [PATCH] Extra fix --- plugins/emc/emc_vnx_block_lun_perfdata | 6 +++--- plugins/emc/emc_vnx_file_ | 7 ++++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/plugins/emc/emc_vnx_block_lun_perfdata b/plugins/emc/emc_vnx_block_lun_perfdata index 780b717e..e8b0b430 100755 --- a/plugins/emc/emc_vnx_block_lun_perfdata +++ b/plugins/emc/emc_vnx_block_lun_perfdata @@ -145,9 +145,9 @@ export LANG=C . "$MUNIN_LIBDIR/plugins/plugin.sh" -cs_addr="" -username="" -blockpw="" +: ${cs_addr:=""} +: ${username:=""} +: ${blockpw:=""} TARGET=$(echo "${0##*/}" | cut -d _ -f 6) diff --git a/plugins/emc/emc_vnx_file_ b/plugins/emc/emc_vnx_file_ index d1578f19..178e23e2 100755 --- a/plugins/emc/emc_vnx_file_ +++ b/plugins/emc/emc_vnx_file_ @@ -135,8 +135,10 @@ export LANG=C . "$MUNIN_LIBDIR/plugins/plugin.sh" nas_server_ok="" -cs_addr="" -username="" +: ${cs_addr:=""} +: ${username:=""} +: ${nas_servers:="server_2 server_3"} + # Prints "10" on stdout if found Primary Online control station. "11" - for Secondary Online control station. ssh_check_cmd() { ssh -q "$username@$1" '/nasmcd/sbin/getreason | grep -w "slot_$(/nasmcd/sbin/t2slot)" | cut -d- -f1' @@ -190,7 +192,6 @@ elif [ "$STATSTYPE" = "emc_vnx_file_basicdm_stats" ]; then STATSTYPE=BASICDM; else echo "Do not know what to do. Name the plugin as 'emc_vnx_file_nfs_stats_' or 'emc_vnx_file_basicdm_stats_'" >&2; exit 1; fi TARGET=$(echo "${0##*/}" | cut -d _ -f 6) -: ${nas_servers:="server_2 server_3"} check_conf 1>&2 || exit 1