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