Bonjour tout le monde,
J’utilise S.M.A.R.T sur mon serveur Lenny avec smartmontools.
Le daemon smartd tourne toujours en arrière plan pour planifier des analyses des disques et envoyer un mail en cas de problème. Puisqu’il n’y a pas nécessairement de problème mais que je veux surveiller mes disques tout de même, j’ajoute à cela un test smartctl manuel, lancé depuis le cron (avec résultat envoyé par mail donc). Le second test S.M.A.R.T fonctionne très bien et je reçois des rapports correctement. J’ai cependant besoin de m’assurer que le premier fonctionne bien aussi.
J’utilise la configuration smartd.conf suivante :
/dev/sda -a -m moi@chezmoi.fr -M exec /srv/scripts/smartd.sh -s (S/../../(1-6)/2|L/../../7/2)
/dev/sdb -a -m moi@chezmoi.fr -M exec /srv/scripts/smartd.sh -s (S/../../(1-6)/2|L/../../7/2)
Je veux donc faire une analyse brève chaque nuit à 2h00 puis une plus longue le dimanche à la même heure.
J’ai ajouté “-M test” à chaque ligne puis redémarré smartd pour constater que tout se passe bien. J’ai quand même voulu m’assurer que mon serveur travaillait vers 2h00 du matin donc j’ai ajouté ceci dans le cron :
Cela produit la sortie suivante (les deux premiers champs sont la consommation CPU et mémoire, ce qui me laisse penser que smartd ne ne réveille pas) :
341 Fri May 14 01:40:01 CEST 2010
342 0.0 0.0 /usr/sbin/smartd --pidfile /var/run/smartd.pid
343 Fri May 14 01:45:01 CEST 2010
344 0.0 0.0 /usr/sbin/smartd --pidfile /var/run/smartd.pid
345 Fri May 14 01:50:01 CEST 2010
346 0.0 0.0 /usr/sbin/smartd --pidfile /var/run/smartd.pid
347 Fri May 14 01:55:01 CEST 2010
348 0.0 0.0 /usr/sbin/smartd --pidfile /var/run/smartd.pid
349 Fri May 14 02:00:01 CEST 2010
350 0.0 0.0 /usr/sbin/smartd --pidfile /var/run/smartd.pid
351 Fri May 14 02:05:01 CEST 2010
352 0.0 0.0 /usr/sbin/smartd --pidfile /var/run/smartd.pid
353 Fri May 14 02:10:01 CEST 2010
354 0.0 0.0 /usr/sbin/smartd --pidfile /var/run/smartd.pid
355 Fri May 14 02:15:01 CEST 2010
356 0.0 0.0 /usr/sbin/smartd --pidfile /var/run/smartd.pid
357 Fri May 14 02:20:01 CEST 2010
358 0.0 0.0 /usr/sbin/smartd --pidfile /var/run/smartd.pid
359 Fri May 14 02:25:01 CEST 2010
360 0.0 0.0 /usr/sbin/smartd --pidfile /var/run/smartd.pid
361 Fri May 14 02:30:01 CEST 2010
362 0.0 0.0 /usr/sbin/smartd --pidfile /var/run/smartd.pid
363 Fri May 14 02:35:01 CEST 2010
364 0.0 0.0 /usr/sbin/smartd --pidfile /var/run/smartd.pid
365 Fri May 14 02:40:01 CEST 2010
366 0.0 0.0 /usr/sbin/smartd --pidfile /var/run/smartd.pid
367 Fri May 14 02:45:01 CEST 2010
368 0.0 0.0 /usr/sbin/smartd --pidfile /var/run/smartd.pid
369 Fri May 14 02:50:01 CEST 2010
370 0.0 0.0 /usr/sbin/smartd --pidfile /var/run/smartd.pid
371 Fri May 14 02:55:01 CEST 2010
372 0.0 0.0 /usr/sbin/smartd --pidfile /var/run/smartd.pid
373 Fri May 14 03:00:01 CEST 2010
374 0.0 0.0 /usr/sbin/smartd --pidfile /var/run/smartd.pid
375 Fri May 14 03:05:01 CEST 2010
376 0.0 0.0 /usr/sbin/smartd --pidfile /var/run/smartd.pid
377 Fri May 14 03:10:01 CEST 2010
378 0.0 0.0 /usr/sbin/smartd --pidfile /var/run/smartd.pid
379 Fri May 14 03:15:01 CEST 2010
380 0.0 0.0 /usr/sbin/smartd --pidfile /var/run/smartd.pid
Y’a-t-il un problème avec ma configuration ? Merci pour votre aide.