mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
Extra fix
This commit is contained in:
parent
72bdea8bb1
commit
b657debc86
@ -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)
|
||||
|
||||
|
@ -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_<HOSTNAME>' or 'emc_vnx_file_basicdm_stats_<HOSTNAME>'" >&2; exit 1; fi
|
||||
|
||||
TARGET=$(echo "${0##*/}" | cut -d _ -f 6)
|
||||
: ${nas_servers:="server_2 server_3"}
|
||||
|
||||
check_conf 1>&2 || exit 1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user