Révision 51e003fe
renamed ssh_check
| plugins/emc/emc_vnx_file_ | ||
|---|---|---|
| 84 | 84 |
|
| 85 | 85 |
. "$MUNIN_LIBDIR/plugins/plugin.sh" |
| 86 | 86 |
|
| 87 |
ssh_check() {
|
|
| 87 |
ssh_check_cmd() {
|
|
| 88 | 88 |
ssh -q $username@$1 "/nasmcd/sbin/getreason | grep -w slot_\`/nasmcd/sbin/t2slot\` | cut -d- -f1" |
| 89 | 89 |
} |
| 90 | 90 |
|
| ... | ... | |
| 101 | 101 |
|
| 102 | 102 |
#Choosing Cotrol Station. Code have to be "10" |
| 103 | 103 |
for CS in $cs_addr; do |
| 104 |
if [[ "10" -eq "$(ssh_check $CS)" ]]; then
|
|
| 104 |
if [[ "10" -eq "$(ssh_check_cmd \"$CS\")" ]]; then
|
|
| 105 | 105 |
# echo "$CS is Primary" |
| 106 | 106 |
PRIMARY_CS=$CS |
| 107 | 107 |
break |
Formats disponibles : Unified diff