Projet

Général

Profil

Révision 51e003fe

ID51e003fe8fb4fafff63edf70f5b34328b9886a35
Parent 9171751d
Enfant adc7b71e

Ajouté par Diver il y a presque 9 ans

renamed ssh_check

Voir les différences:

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