Contents Previous Next

Monitoração de storage 3PAR

O plugin mt_check_3par usa uma conexão ssh para verificar o status de storage 3PAR. Para permitir o acesso ao storage, é necessário configurar o cliente do storage para aceitar conexões SSH sem senha.

Se ainda não tem a chave SSH configurada, execute o comando abaixo, que gera a chave RSA :

# ssh-keygen -t rsa -b 2048
# cat ~/.ssh/id_rsa.pub 
ssh-dss ABAAB3NzaC1kc3MAAACBAN1DPr6fE7oBiXkMWXYdH8L/H4ZPMt9iy6Wap5WkCpcbR1I+domdGXXb2x9QKa/zwujRFO4I3eCnBmsS59qpE2niF015y2fh8xHdaaiNefx122IWkrO5VdU4gS5xydqeY7TAcyMjjqI16+H98LMda+LjVc3QEPBei6yNniU0OD6VAAAAFQDIYISufILQyqVJjzSuDlBo44GNoQAAAIABpwEQJzShFLZ/KXe9XE2e5m2GMKyMbuuHG70mPPx+xpAWWeUL4Oj/vjPI/sKFHKthY+dt4lyVpCF335qdCHxMVv/0j+i5ybtzyPWLCbik10UtYh5vI9fjPG+AbMJ62M07vPMGTEQhRDR7OJDtNALpR3fZaSf1K7TB1KBV3MzDqAAAAIEAoUnSfyYMgnizWMobS/qyVGHTF3lzr4l7vggTfG4ECAXNX/nui4XHip9/RknQXWrSjPr0OK/ULlrKYHWGfAbMMH6LD1ZyFuuzMMyS5gwyLydbv1X6Sa9LWEp2H9/y7dHOQqlwm+qWll6DmfXngwCgPaQryTll0SxmBtdHhPmRiwc= root@mtmon

De posse da chave pública que será usada no storage, conecte com o usuário que será usado para monitorar e execute o comando setsshkey :

# ssh 3parcli@192.168.0.250
Password: [SENHA]
3par01 cli% setsshkey
Please enter the SSH public key below.  When finished, press enter twice.
The key is usually long.  It's better to copy it from inside an editor
and paste it here.  (Please make sure there are no extra blanks.)
The maximum number of characters used to represent the SSH key 
(including the "from" option, key type, and additional comments) is 4095.

ssh-dss ABAAB3NzaC1kc3MAAACBAN1DPr6fE7oBiXkMWXYdH8L/H4ZPMt9iy6Wap5WkCpcbR1I+domdGXXb2x9QKa/zwujRFO4I3eCnBmsS59qpE2niF015y2fh8xHdaaiNefx122IWkrO5VdU4gS5xydqeY7TAcyMjjqI16+H98LMda+LjVc3QEPBei6yNniU0OD6VAAAAFQDIYISufILQyqVJjzSuDlBo44GNoQAAAIABpwEQJzShFLZ/KXe9XE2e5m2GMKyMbuuHG70mPPx+xpAWWeUL4Oj/vjPI/sKFHKthY+dt4lyVpCF335qdCHxMVv/0j+i5ybtzyPWLCbik10UtYh5vI9fjPG+AbMJ62M07vPMGTEQhRDR7OJDtNALpR3fZaSf1K7TB1KBV3MzDqAAAAIEAoUnSfyYMgnizWMobS/qyVGHTF3lzr4l7vggTfG4ECAXNX/nui4XHip9/RknQXWrSjPr0OK/ULlrKYHWGfAbMMH6LD1ZyFuuzMMyS5gwyLydbv1X6Sa9LWEp2H9/y7dHOQqlwm+qWll6DmfXngwCgPaQryTll0SxmBtdHhPmRiwc= root@mtmon

SSH public key successfully set.
3par01 cli% Connection to 192.168.0.250 closed.

Na próxima execução do SSH, o acesso deve ocorrer sem pedir a senha.

Na sequencia, execute o comando MTMON/bin/Configura3PAR.sh 3parcli@192.168.0.250 para criar as sessões no arquivo mtmon_cron.conf que executação os comandos de monitoramento do storage 3PAR.


Contents Previous Next