Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
wiki:monitoring:controlleur_stockage_hp [2018/12/07 10:07] no_pseudo créée |
wiki:monitoring:controlleur_stockage_hp [2020/06/27 18:16] (Version actuelle) |
||
---|---|---|---|
Ligne 14: | Ligne 14: | ||
- Rapide introduction à **ssacli** | - Rapide introduction à **ssacli** | ||
- Le monitoring des contrôleurs avec Zabbix | - Le monitoring des contrôleurs avec Zabbix | ||
+ | |||
+ | <WRAP center round info 60%> | ||
+ | A noter qu'il existe les outils de CCISS pour administrer les contrôleurs de stockage HP (certains de ces outils | ||
+ | </ | ||
+ | |||
===== Installation de ssacli ===== | ===== Installation de ssacli ===== | ||
Ligne 221: | Ligne 226: | ||
< | < | ||
- | UserParameter=hpstor.ctrl0.status, sudo ssacli ctrl slot=0 show status | grep -E ' | + | Timeout=10 |
- | UserParameter=hpstor.ctrl0.cache_status, | + | UserParameter=hpstor.ctrl.status[*], sudo ssacli ctrl slot=$1 show status | grep -E ' |
- | UserParameter=hpstor.ctrl0.bat_cap_status, | + | UserParameter=hpstor.ctrl.cache_status[*], sudo ssacli ctrl slot=$1 show status | grep -E ' |
- | UserParameter=hpstor.ctrl0.arrayA_status, sudo ssacli ctrl slot=0 array A show status | grep -E ' | + | UserParameter=hpstor.ctrl.bat_cap_status[*], sudo ssacli ctrl slot=$1 show status | grep -E ' |
- | UserParameter=hpstor.ctrl0.arrayA.logicaldrive1_status, sudo ssacli ctrl slot=0 array A logicaldrive | + | UserParameter=hpstor.array_status[*], sudo ssacli ctrl slot=$1 array $2 show status | grep -E ' |
- | UserParameter=hpstor.ctrl0.arrayA.logicaldrive1.physicaldrive1_status, sudo ssacli ctrl slot=0 array A physicaldrive | + | UserParameter=hpstor.logicaldrive_status[*], sudo ssacli ctrl slot=$1 array $2 logicaldrive |
- | UserParameter=hpstor.ctrl0.arrayA.logicaldrive1.physicaldrive2_status, | + | UserParameter=hpstor.physicaldrive_status[*], sudo ssacli ctrl slot=$1 array $2 physicaldrive $3 show detail | grep -E ' |
- | UserParameter=hpstor.ctrl0.arrayA.logicaldrive1.physicaldrive1_current_temp, | + | UserParameter=hpstor.physicaldrive_current_temp[*], sudo ssacli ctrl slot=$1 array $2 physicaldrive |
- | UserParameter=hpstor.ctrl0.arrayA.logicaldrive1.physicaldrive2_current_temp, sudo ssacli ctrl slot=0 array A physicaldrive | + | |
</ | </ | ||
Ligne 243: | Ligne 247: | ||
</ | </ | ||
- | <WRAP center round important | + | <WRAP center round info 60%> |
- | Ici j'ai mis les cibles | + | On ajoute un "Timeout=10" |
</ | </ | ||
+ | |||
Une fois notre fichier crée on a plus qu'à redémarrer l' | Une fois notre fichier crée on a plus qu'à redémarrer l' | ||
Ligne 252: | Ligne 257: | ||
(Avant de tester il faut installer le paquet zabbix-get sur le serveur zabbix) | (Avant de tester il faut installer le paquet zabbix-get sur le serveur zabbix) | ||
- | Par exemple | + | Par exemple: |
< | < | ||
- | root@zabbix3: | + | root@zabbix3: |
OK | OK | ||
</ | </ | ||
+ | Retourne l' | ||
+ | |||
Le format pour **zabbix_get** est le suivant: < | Le format pour **zabbix_get** est le suivant: < | ||
- | On reçoit bien un "OK" qui correspond à l'output de la commande: | + | Les "paramètres flexibles" |
+ | < | ||
+ | sudo ssacli ctrl slot=$1 array $2 logicaldrive $3 show status | grep -E '^\s{3}logicaldrive\s$3\s\(.*\): | ||
+ | </ | ||
+ | Devient alors: | ||
< | < | ||
sudo ssacli ctrl slot=0 array A logicaldrive 1 show status | grep -E ' | sudo ssacli ctrl slot=0 array A logicaldrive 1 show status | grep -E ' | ||
Ligne 265: | Ligne 276: | ||
<WRAP center round info 60%> | <WRAP center round info 60%> | ||
- | TODO: La configuration du serveur zabbix à proprement parler. | + | <del>TODO: La configuration du serveur zabbix à proprement parler.</ |
+ | C.F. : Formation Zabbix/ | ||
</ | </ | ||