Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#26 Le 18/02/2020, à 14:50

geole

Re : Smartmontools n'envoie pas les mails

Mia98 a écrit :

Re,
J'ai été un peu vite à mettre un résolu hmm
Le test ayant réussi, je pensais que c'était bon.
Mais il doit y avoir autre chose à configurer pour que smart-runner communique avec la boite mail.
.

J'ai noté le problème.  Je viens de constater que la nouvelle installation de smartctl ne propose plus la configuration de la messagerie.
Je vais chercher.   En attentant, j'ai constaté que sans  probablement rien ajouter ni configurer quoique ce soit,  la commande suivante fonctionne

echo "Ceci sera le contenu du message" | mailx  -s "Sujet du message"   AdresseInternet@FournisseurInterenet -a "FROM: UnSeulMotPossible"

Il va donc falloir trouver où on indique le destinataire. Cela risque de prendre du temps. La documentation ne semble plus à jour.


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#27 Le 18/02/2020, à 15:51

Mia98

Re : Smartmontools n'envoie pas les mails

Je commençais à me dire que j'étais vraiment pas douée...

Pour moi aussi la commande mail -s fonctionne, que j'envoie from root ou mia.
J'ai désinstallé msmtp puisque je préfère la solution de recevoir les alertes dans un compte movemail de Thunderbird.

geole a écrit :

Je vais chercher. Il va donc falloir trouver où on indique le destinataire. Cela risque de prendre du temps. La documentation ne semble plus à jour.

Merci pour tes recherches wink

Hors ligne

#28 Le 18/02/2020, à 17:40

grandtoubab

Re : Smartmontools n'envoie pas les mails

pour tracer en live, tu prépares une  xterm avec la commande

journalctl -f

puis dans une autre xterm tu envoies ta commande récalcitrante

/dev/sda -a -d sat -o on -S on -s (S/../.././17) -m root -M exec /usr/share/smartmontools/smartd-runner

NB

cat /usr/share/smartmontools/smartd-runner
#!/bin/bash -e

tmp=$(tempfile)
cat >$tmp

run-parts --report --lsbsysinit --arg=$tmp --arg="$1" \
    --arg="$2" --arg="$3" -- /etc/smartmontools/run.d

rm -f $tmp

il n'y a pas de notion de mail apparente

Dernière modification par grandtoubab (Le 18/02/2020, à 17:46)


Linux tout seul sur HP Pavilion DV7 et Acer Aspire T650, Canon MG3650 en wifi
Debian 11 Bullseye Gnome/Xorg, Gnome/Wayland avec SDDM
https://bidouilledebian.wordpress.com/
ON M'A VU DANS LE VERCORS, SAUTER A L'ELASTIQUE..... J'AI DANS LES BOTTES DES MONTAGNES DE QUESTIONS....

Hors ligne

#29 Le 18/02/2020, à 18:54

geole

Re : Smartmontools n'envoie pas les mails

J'ai passé pas mal de temps. J'ai trouvé quelques liens  intéressants.    J'en déduis une façon de faire (testée en version 19.10)
Je t'ai déjà fourni une commande permettant de vérifier que la messagerie standard fonctionne.

Voici la procédure pour mettre ton adresse internet dans le coup.
Afin de comprendre, il faut lire cette documentation. http://arobaseinformatique.eklablog.com … a103240601 Elle fourni aussi quelques exemples de valeurs à surveiller.

Avec un bon éditeur de texte on va ajouter l'adresse internet dans le fichier de configuration du process de surveillance
1) Ouverture du fichier

gedit admin:///etc/smartd.conf

2) Se positionner sur la première ligne de commande. Probablement en position 21. Son contenu devrait être

DEVICESCAN -d  removable -n standby -m   root  -M  exec /usr/share/smartmontools/smartd-runner

On va y ajouter notre adresse de mail et en profiter pour ajouter une option afin d'être plus à jour.

DEVICESCAN -a -d  removable -n standby -m MonAdresseInternet@NomFourniseur,root  -M exec /usr/share/smartmontools/smartd-runner

3) Juste devant cette ligne, on va ajouter une ligne pour tester afin d'être certain que c'est opérationnel.

DEVICESCAN  -a  -m MonAdresseInternet@NomFourniseur,root@localhost -M test

test est un mot clé qui est  testé en dur dans le script
4) Sauver le fichier, quitter l'éditeur  et relancer l'application avec cette commande

sudo /etc/init.d/smartmontools restart

5) Vérifier que c'est bien reparti avec cette commande

journalctl   | grep smartd

Dont voici un exemple de retour

févr. 18 17:12:40 a smartd[15728]: smartd received signal 15: Terminated
févr. 18 17:12:40 a smartd[15728]: Device: /dev/sda [SAT], state written to /var/lib/smartmontools/smartd.TOSHIBA_MQ01ABD100-339KP439T.ata.state
févr. 18 17:12:40 a smartd[15728]: smartd is exiting (exit status 0)
févr. 18 17:12:40 a systemd[1]: smartd.service: Succeeded.
févr. 18 17:12:40 a smartd[15860]: smartd 7.0 2018-12-30 r4883 [x86_64-linux-5.3.0-29-generic] (local build)
févr. 18 17:12:40 a smartd[15860]: Copyright (C) 2002-18, Bruce Allen, Christian Franke, www.smartmontools.org
févr. 18 17:12:40 a smartd[15860]: Opened configuration file /etc/smartd.conf
févr. 18 17:12:40 a smartd[15860]: Drive: DEVICESCAN, implied '-a' Directive on line 21 of file /etc/smartd.conf
févr. 18 17:12:40 a smartd[15860]: Configuration file /etc/smartd.conf was parsed, found DEVICESCAN, scanning devices
févr. 18 17:12:40 a smartd[15860]: Device: /dev/sda, type changed from 'scsi' to 'sat'
févr. 18 17:12:40 a smartd[15860]: Device: /dev/sda [SAT], opened
févr. 18 17:12:40 a smartd[15860]: Device: /dev/sda [SAT], TOSHIBA MQ01ABD100, S/N:339KP439T, WWN:5-000039-4a2b021d3, FW:AX003M, 1.00 TB
févr. 18 17:12:40 a smartd[15860]: Device: /dev/sda [SAT], found in smartd database: Toshiba 2.5" HDD MQ01ABD...
févr. 18 17:12:41 a smartd[15860]: Device: /dev/sda [SAT], is SMART capable. Adding to "monitor" list.
févr. 18 17:12:41 a smartd[15860]: Device: /dev/sda [SAT], state read from /var/lib/smartmontools/smartd.TOSHIBA_MQ01ABD100-339KP439T.ata.state
févr. 18 17:12:41 a smartd[15860]: Monitoring 1 ATA/SATA, 0 SCSI/SAS and 0 NVMe devices
févr. 18 17:12:41 a smartd[15860]: Executing test of <mail> to MonAdresseInternet@NomFourniseur root@localhost ...
févr. 18 17:12:41 a smartd[15860]: Test of <mail> to MonAdresseInternet@NomFourniseur@localhost: successful
févr. 18 17:12:41 a smartd[15860]: Device: /dev/sda [SAT], state written to /var/lib/smartmontools/smartd.TOSHIBA_MQ01ABD100-339KP439T.ata.state

6) Le contenu du mail est le suivant

This message was generated by the smartd daemon running on:

   host name:  a
   DNS domain: [Empty]

The following warning/error was logged by the smartd daemon:

TEST EMAIL from smartd for device: /dev/sda [SAT]

Device info:
TOSHIBA MQ01ABD100, S/N:339KP439T, WWN:5-000039-4a2b021d3, FW:AX003M, 1.00 TB

For details see host's SYSLOG.

Il reste à mettre un contrôle pour vérifier que tout est OK avant de supprimer la ligne  de test.

journalctl | grep smartd | grep Prefailure
janv. 16 15:41:16 a smartd[1313]: Device: /dev/sdc [SAT], SMART Prefailure Attribute: 10 Spin_Retry_Count changed from 151 to 152
janv. 21 00:22:09 a smartd[1239]: Device: /dev/sdb [SAT], SMART Prefailure Attribute: 10 Spin_Retry_Count changed from 152 to 153

AJOUT

http://valaurea.free.fr/documents/sig11_smart.html a écrit :

En somme, un fichier smartd.conf efficace peut être aussi simple que cela :
/dev/hda -d ata -a -m moi@chez.moi -I 194
/dev/hdb -d ata -a -m moi@chez.moi -I 231
Si tout était aussi facile, Linux serait beaucoup moins amusant.

Dernière modification par geole (Le 19/02/2020, à 13:16)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#30 Le 18/02/2020, à 20:53

Mia98

Re : Smartmontools n'envoie pas les mails

Je viens de rentrer et vois tout ce que tu m'as préparé, merci beaucoup ! cool
Je teste ça demain et te tiens au courant smile

Hors ligne

#31 Le 19/02/2020, à 13:02

Mia98

Re : Smartmontools n'envoie pas les mails

J'ai ouvert 2 terminaux, et pour vérifier immédiatement la commande récalcitrante, j'ai supprimé la partie horaire :

/dev/sda -a -d sat -o on -S on -m root -M exec /usr/share/smartmontools/smartd-runner

Mais même en root, je n'ai pas les droits :

root@mia-PC5:~# /dev/sda -a -d sat -o on -S on -m root -M exec /usr/share/smartmontools/smartd-runner
-su: /dev/sda: Permission non accordée
eole a écrit :

il n'y a pas de notion de mail apparente

Mon fichier /usr/share/smartmontools/smartd-runner est identique au tien, mais il est question de mail dans le fichier /etc/smartmontools.run.d pour lequel j'ai déjà tout essayé :

#!/bin/bash -e

# Send mail if /usr/bin/mail exists
if ! [ -x /usr/bin/mail ]; then
        echo "Your system does not have /usr/bin/mail.  Install the mailx or mailutils packa$
        exit 1
fi

input=$1
shift

#/usr/bin/mail "$@" < $input
/usr/bin/mail "root@mailslocaux.org" < $input

J'ai commenté la ligne qui était par défaut

/usr/bin/mail "$@" < $input

et j'ai essayé de mettre différentes adresse, expéditeur, destinataire, mails locaux, mais rien n'y fait.

Pour ton second message, tu as barré

eole a écrit :

et en profiter pour ajouter une option afin d'être plus à jour

Je n'ai pas compris pourquoi, ni à quoi sert  AD à la fin de la ligne.

J'ai effectué les manip, voilà le résultat :

févr. 19 10:49:12 mia-PC5 smartd[19957]: smartd received signal 15: Terminated
févr. 19 10:49:12 mia-PC5 smartd[19957]: Device: /dev/sda [SAT], state written to /var/lib/smartmontools/smartd.ST1000DX001_1CM162-Z1DD25RC.ata.state
févr. 19 10:49:12 mia-PC5 smartd[19957]: Device: /dev/sdb [SAT], state written to /var/lib/smartmontools/smartd.ST1000DX001_1CM162-Z1DD26MH.ata.state
févr. 19 10:49:12 mia-PC5 smartd[19957]: smartd is exiting (exit status 0)
févr. 19 10:49:12 mia-PC5 smartd[19067]: smartd 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-76-generic] (local build)
févr. 19 10:49:12 mia-PC5 smartd[19067]: Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
févr. 19 10:49:12 mia-PC5 smartd[19067]: Opened configuration file /etc/smartd.conf
févr. 19 10:49:12 mia-PC5 smartd[19067]: Configuration file /etc/smartd.conf was parsed, found DEVICESCAN, scanning devices
févr. 19 10:49:12 mia-PC5 smartd[19067]: Device: /dev/sda, type changed from 'scsi' to 'sat'
févr. 19 10:49:12 mia-PC5 smartd[19067]: Device: /dev/sda [SAT], opened
févr. 19 10:49:12 mia-PC5 smartd[19067]: Device: /dev/sda [SAT], ST1000DX001-1CM162, S/N:Z1DD25RC, WWN:5-000c50-0792cf436, FW:CC43, 1.00 TB
févr. 19 10:49:12 mia-PC5 smartd[19067]: Device: /dev/sda [SAT], found in smartd database: Seagate Desktop SSHD
févr. 19 10:49:12 mia-PC5 smartd[19067]: Device: /dev/sda [SAT], is SMART capable. Adding to "monitor" list.
févr. 19 10:49:12 mia-PC5 smartd[19067]: Device: /dev/sda [SAT], state read from /var/lib/smartmontools/smartd.ST1000DX001_1CM162-Z1DD25RC.ata.state
févr. 19 10:49:12 mia-PC5 smartd[19067]: Device: /dev/sdb, type changed from 'scsi' to 'sat'
févr. 19 10:49:12 mia-PC5 smartd[19067]: Device: /dev/sdb [SAT], opened
févr. 19 10:49:12 mia-PC5 smartd[19067]: Device: /dev/sdb [SAT], ST1000DX001-1CM162, S/N:Z1DD26MH, WWN:5-000c50-0792ce7ac, FW:CC43, 1.00 TB
févr. 19 10:49:12 mia-PC5 smartd[19067]: Device: /dev/sdb [SAT], found in smartd database: Seagate Desktop SSHD
févr. 19 10:49:12 mia-PC5 smartd[19067]: Device: /dev/sdb [SAT], is SMART capable. Adding to "monitor" list.
févr. 19 10:49:12 mia-PC5 smartd[19067]: Device: /dev/sdb [SAT], state read from /var/lib/smartmontools/smartd.ST1000DX001_1CM162-Z1DD26MH.ata.state
févr. 19 10:49:12 mia-PC5 smartd[19067]: Monitoring 2 ATA/SATA, 0 SCSI/SAS and 0 NVMe devices
févr. 19 10:49:12 mia-PC5 smartd[19067]: Executing test of <mail> to root@localhost xxx@gmail.com ...
févr. 19 10:49:13 mia-PC5 smartd[19067]: Test of <mail> to root@localhost xxx@gmail.com: successful
févr. 19 10:49:13 mia-PC5 smartd[19067]: Executing test of <mail> to root@localhost xxx@gmail.com ...
févr. 19 10:49:13 mia-PC5 smartd[19067]: Test of <mail> to root@localhost xxx@gmail.com: successful
févr. 19 10:49:13 mia-PC5 smartd[19067]: Device: /dev/sda [SAT], state written to /var/lib/smartmontools/smartd.ST1000DX001_1CM162-Z1DD25RC.ata.state
févr. 19 10:49:13 mia-PC5 smartd[19067]: Device: /dev/sdb [SAT], state written to /var/lib/smartmontools/smartd.ST1000DX001_1CM162-Z1DD26MH.ata.state
mia@mia-PC5:~$ 

Le journal dit que l'envoi a été effectué avec succès, mes résultats sont quasiment identiques aux tiens.
Je reçois toujours les mails de test envoyé à root, avec le transfert vers Thunderbird. Mais uniquement le mail de test, pas l'exécution de /usr/share/smartmontools/smartd-runner
Quant au test vers mon adresse mail externe, même le test ne fonctionne pas et n'a jamais fonctionné.

Pour celui-ci je n'ai aucune explications dans ma boite mail, mais je découvre dans Thunderbird que des mails de test envoyés le 13/02 sont arrivés hier soir, le 18/02 !
Visiblement encore un problème...
Mais avec des explications qui semblent plus parlantes, sauf pour moi roll

This is the mail system at host mailslocaux.org.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                   The mail system

<xxx@gmail.com>: connect to
    alt2.gmail-smtp-in.l.google.com[142.250.4.26]:25: Connection timed out


Reporting-MTA: dns; mailslocaux.org
X-Postfix-Queue-ID: 9F8B5403D1
X-Postfix-Sender: rfc822; root@mia-PC5
Arrival-Date: Thu, 13 Feb 2020 18:44:42 +0100 (CET)

Final-Recipient: rfc822; xxx@gmail.com
Original-Recipient: rfc822xxx@gmail.com
Action: failed
Status: 4.4.1
Diagnostic-Code: X-Postfix; connect to
    alt2.gmail-smtp-in.l.google.com[142.250.4.26]:25: Connection timed out


ForwardedMessage.eml
Sujet : 
SMART error (EmailTest) detected on host: mia-PC5
De : 
root <root@mia-PC5>
Date : 
13/02/2020 à 18:44
Pour : 
<root@mia-PC5>,<xxx@gmail.com>

This message was generated by the smartd daemon running on:

   host name:  mia-PC5
   DNS domain: [Empty]

The following warning/error was logged by the smartd daemon:

TEST EMAIL from smartd for device: /dev/sdb [SAT]

Device info:
ST1000DX001-1CM162, S/N:Z1DD26MH, WWN:5-000c50-0792ce7ac, FW:CC43, 1.00 TB

For details see host's SYSLOG.

Les infos du journalctl concernant smartd juste après l'opération :

févr. 19 10:49:12 mia-PC5 smartd[19957]: smartd received signal 15: Terminated
févr. 19 10:49:12 mia-PC5 smartd[19957]: Device: /dev/sda [SAT], state written to /var/lib/smartmontools/smartd.ST1000DX001_1CM162-Z1DD25RC.ata.state
févr. 19 10:49:12 mia-PC5 smartd[19957]: Device: /dev/sdb [SAT], state written to /var/lib/smartmontools/smartd.ST1000DX001_1CM162-Z1DD26MH.ata.state
févr. 19 10:49:12 mia-PC5 smartd[19957]: smartd is exiting (exit status 0)
févr. 19 10:49:12 mia-PC5 smartd[19067]: smartd 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-76-generic] (local build)
févr. 19 10:49:12 mia-PC5 smartd[19067]: Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
févr. 19 10:49:12 mia-PC5 smartd[19067]: Opened configuration file /etc/smartd.conf
févr. 19 10:49:12 mia-PC5 smartd[19067]: Configuration file /etc/smartd.conf was parsed, found DEVICESCAN, scanning devices
févr. 19 10:49:12 mia-PC5 smartd[19067]: Device: /dev/sda, type changed from 'scsi' to 'sat'
févr. 19 10:49:12 mia-PC5 smartd[19067]: Device: /dev/sda [SAT], opened
févr. 19 10:49:12 mia-PC5 smartd[19067]: Device: /dev/sda [SAT], ST1000DX001-1CM162, S/N:Z1DD25RC, WWN:5-000c50-0792cf436, FW:CC43, 1.00 TB
févr. 19 10:49:12 mia-PC5 smartd[19067]: Device: /dev/sda [SAT], found in smartd database: Seagate Desktop SSHD
févr. 19 10:49:12 mia-PC5 smartd[19067]: Device: /dev/sda [SAT], is SMART capable. Adding to "monitor" list.
févr. 19 10:49:12 mia-PC5 smartd[19067]: Device: /dev/sda [SAT], state read from /var/lib/smartmontools/smartd.ST1000DX001_1CM162-Z1DD25RC.ata.state
févr. 19 10:49:12 mia-PC5 smartd[19067]: Device: /dev/sdb, type changed from 'scsi' to 'sat'
févr. 19 10:49:12 mia-PC5 smartd[19067]: Device: /dev/sdb [SAT], opened
févr. 19 10:49:12 mia-PC5 smartd[19067]: Device: /dev/sdb [SAT], ST1000DX001-1CM162, S/N:Z1DD26MH, WWN:5-000c50-0792ce7ac, FW:CC43, 1.00 TB
févr. 19 10:49:12 mia-PC5 smartd[19067]: Device: /dev/sdb [SAT], found in smartd database: Seagate Desktop SSHD
févr. 19 10:49:12 mia-PC5 smartd[19067]: Device: /dev/sdb [SAT], is SMART capable. Adding to "monitor" list.
févr. 19 10:49:12 mia-PC5 smartd[19067]: Device: /dev/sdb [SAT], state read from /var/lib/smartmontools/smartd.ST1000DX001_1CM162-Z1DD26MH.ata.state
févr. 19 10:49:12 mia-PC5 smartd[19067]: Monitoring 2 ATA/SATA, 0 SCSI/SAS and 0 NVMe devices
févr. 19 10:49:12 mia-PC5 smartd[19067]: Executing test of <mail> to root@localhost xxx@gmail.com ...
févr. 19 10:49:13 mia-PC5 smartd[19067]: Test of <mail> to root@localhost xxx@gmail.com: successful
févr. 19 10:49:13 mia-PC5 smartd[19067]: Executing test of <mail> to root@localhost xxx@gmail.com ...
févr. 19 10:49:13 mia-PC5 smartd[19067]: Test of <mail> to root@localhost xxx@gmail.com: successful
févr. 19 10:49:13 mia-PC5 smartd[19067]: Device: /dev/sda [SAT], state written to /var/lib/smartmontools/smartd.ST1000DX001_1CM162-Z1DD25RC.ata.state
févr. 19 10:49:13 mia-PC5 smartd[19067]: Device: /dev/sdb [SAT], state written to /var/lib/smartmontools/smartd.ST1000DX001_1CM162-Z1DD26MH.ata.state
févr. 19 11:19:13 mia-PC5 smartd[19067]: Device: /dev/sda [SAT], SMART Prefailure Attribute: 1 Raw_Read_Error_Rate changed from 118 to 103
févr. 19 11:19:13 mia-PC5 smartd[19067]: Device: /dev/sda [SAT], SMART Usage Attribute: 190 Airflow_Temperature_Cel changed from 58 to 57
févr. 19 11:19:13 mia-PC5 smartd[19067]: Device: /dev/sda [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 42 to 43
févr. 19 11:19:16 mia-PC5 smartd[19067]: Device: /dev/sdb [SAT], SMART Usage Attribute: 190 Airflow_Temperature_Cel changed from 64 to 62
févr. 19 11:19:16 mia-PC5 smartd[19067]: Device: /dev/sdb [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 36 to 38
mia@mia-PC5:~$ 

Depuis des jours que je suis là-dessus, j'ai suivi quasiment tous les liens que je trouvais en français sur smartmontools, en particulier la partie smartd, et j'obtiens toujours le même résultat mad

Dernière modification par Mia98 (Le 19/02/2020, à 13:38)

Hors ligne

#32 Le 19/02/2020, à 13:14

grandtoubab

Re : Smartmontools n'envoie pas les mails

Encore faudrait il que smartd ait quelque chose à dire

le rapport et donc le mail ne sont ils pas uniquement fait en cas de faute sur le disque?

comme déjà dit ici https://forum.ubuntu-fr.org/viewtopic.php?id=2048254 avec le script dans anacron je reçis le rapport une fois par semaine.
Mais il s'agit d'un test hebdomadaire, pas d'un rapport de faute en temps réel

pour toi

Test of <mail> to root@localhost,xxxxxx@gmail.com: successful

tu dois l'avoir dans ta boite gmail , donc l'envoi de mail fonctionne

pour tester j'ai modifier ma conf

DEVICESCAN -a -n standby -m root@localhost -M test -M exec /usr/share/smartmontools/smartd-runner

c'est bien pris en compte

systemctl status smartd.service
● smartmontools.service - Self Monitoring and Reporting Technology (SMART) Daemon
     Loaded: loaded (/lib/systemd/system/smartmontools.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2020-02-19 12:44:09 CET; 9s ago
       Docs: man:smartd(8)
             man:smartd.conf(5)
   Main PID: 16675 (smartd)
     Status: "Next check of 1 device will start at 13:14:09"
      Tasks: 1 (limit: 4278)
     Memory: 6.6M
     CGroup: /system.slice/smartmontools.service
             └─16675 /usr/sbin/smartd -n

févr. 19 12:44:07 debian smartd[16675]: Device: /dev/sda [SAT], opened
févr. 19 12:44:07 debian smartd[16675]: Device: /dev/sda [SAT], Hitachi HTS725032A9A364, S/N:110305PCKC04BPJ0X3GK, WWN:5-000cca-645dc9889, FW:PC3OCH0A, >
févr. 19 12:44:07 debian smartd[16675]: Device: /dev/sda [SAT], found in smartd database: Hitachi Travelstar 7K500
févr. 19 12:44:08 debian smartd[16675]: Device: /dev/sda [SAT], is SMART capable. Adding to "monitor" list.
févr. 19 12:44:08 debian smartd[16675]: Device: /dev/sda [SAT], state read from /var/lib/smartmontools/smartd.Hitachi_HTS725032A9A364-110305PCKC04BPJ0X3>
févr. 19 12:44:08 debian smartd[16675]: Monitoring 1 ATA/SATA, 0 SCSI/SAS and 0 NVMe devices
févr. 19 12:44:08 debian smartd[16675]: Executing test of <mail> to root@localhost ...
févr. 19 12:44:08 debian smartd[16675]: Test of <mail> to root@localhost: successful
févr. 19 12:44:09 debian smartd[16675]: Device: /dev/sda [SAT], state written to /var/lib/smartmontools/smartd.Hitachi_HTS725032A9A364-110305PCKC04BPJ0X>
févr. 19 12:44:09 debian systemd[1]: Started Self Monitoring and Reporting Technology (SMART) Daemon.

"Next check of 1 device will start at 13:14:09" .....A suivre

Dernière modification par grandtoubab (Le 19/02/2020, à 21:41)


Linux tout seul sur HP Pavilion DV7 et Acer Aspire T650, Canon MG3650 en wifi
Debian 11 Bullseye Gnome/Xorg, Gnome/Wayland avec SDDM
https://bidouilledebian.wordpress.com/
ON M'A VU DANS LE VERCORS, SAUTER A L'ELASTIQUE..... J'AI DANS LES BOTTES DES MONTAGNES DE QUESTIONS....

Hors ligne

#33 Le 19/02/2020, à 13:34

geole

Re : Smartmontools n'envoie pas les mails

Bonjour

Pour ton premier message, si tu n'as rien modifié, le fournisseur internet a essayé d'expédier à l'adresse indiquée <xxx@gmail.com>:
Il y a mis de la bonne volonté en essayant plusieurs jours, puis il a abandonné  en te prévenant. La cause la plus probable est que cette adresse internet n'existe pas.

Les deux caractères AD   étaient un mauvais copier/coller (J'ai modifié ).

Je suis encore en train de chercher pour paramétrer une alerte moins grave que "disque failling now"  afin d'être certain que cela fonctionne.

Dernière modification par geole (Le 20/02/2020, à 15:02)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#34 Le 19/02/2020, à 13:54

Mia98

Re : Smartmontools n'envoie pas les mails

@ grandtoubab

grandtoubab a écrit :

Encore faudrait il que smartd ait quelque chose à dire

le rapport et donc le mail ne sont ils pas uniquement fait en cas de faute sur le disque?

De nouvelles fautes alors, parce-que mes disques sont déjà en mauvais état.
Mais si je reçois bien le mail de test dans la boite de root, ce n'est pas le cas pour ma boite gmail, donc même si nouvelles erreurs il y avait, je ne les recevrais pas.

J'ai bien remarqué cette ligne dans journalctl disant que l'envoi a été fait avec succès, mais je ne reçois rien.

@geole

oups, c'est modifié pour l'adresse, merci wink

geole a écrit :

Il y a mis de la bonne volonté en essayant plusieurs jours

Ah oui, ça j'en ai les lignes et des lignes d'essais d'envoi dans les journaux sad

Je t'assure que cette adresse existe, c'est une adresse que j'utilise tous les jours depuis des années, essaye-là depuis une adresse jetable si tu veux.

Edit : peut-être que la modération peut masquer mon adresse dans le message de grandtoubab ?

Dernière modification par Mia98 (Le 19/02/2020, à 14:17)

Hors ligne

#35 Le 19/02/2020, à 15:26

moko138

Re : Smartmontools n'envoie pas les mails

1) N'est-ce pas clair ?
En #31, on lit

Mia98 a écrit :
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients.
(...)
    (...).google.com[142.250.4.26]:25: Connection timed out

Et chez moi aussi :

Le serveur à l'adresse 142.250.4.26 met trop de temps à répondre.

  - -


2) Mais surtout, le but de l'opération m'échappe, parce que
a) L'alerte de smartd (smartd non bidouillé) s'affiche automatiquement.

b) En complément de smartd
  Soit les disques sont sains
Et alors un test manuel toutes les six semaines, stocké avec la date et consulté manuellement, est largement suffisant.
Par exemple :

sudo smartctl -a /dev/disk/by-id/<disque>  >/ton-chemin/SeagateXXXX-smart/SeagateXXXX-smart-$(date +%Y%m%d-%Hh%M).txt

       .
  Soit les disques sont dégradés
Et alors il faut les changer. POINT


%NOINDEX%
Un utilitaire précieux : ncdu
Photo, mini-tutoriel :  À la découverte de dcraw

Hors ligne

#36 Le 19/02/2020, à 15:50

geole

Re : Smartmontools n'envoie pas les mails

Mia98 a écrit :

De nouvelles fautes alors, parce-que mes disques sont déjà en mauvais état.

Peux-tu produire un rapport classique avec cette commande . Tu remplaceras X  par la bonne lettre

sudo smartctl    -a  /dev/sdX

Commande à faire autant de fois qu'il y a de disques.

======================================================================================================

J'avance sur la codification du paramétrage de smartd
La valeur par défaut est   -a

#   -a      Default: equivalent to -H -f -t -l error -l selftest -C 197 -U 198

En dépilant c'est la somme de

      #   -H      Monitor SMART Health Status, report if failed
      #    -f      Monitor for failure of any 'Usage' Attributes
      #   -t      Equivalent to -p and -u Directives
                  #   -p      Report changes in 'Prefailure' Normalized Attributes
                  #   -u      Report changes in 'Usage' Normalized Attributes
      #   -l  Monitor SMART log
      #   -l  selftest
      #   -C 197   Report if Current Pending Sector count non-zero
      #   -U 198   Report if Offline Uncorrectable count non-zero

Donc en clair , tu es informée uniquement lorsqu'il y a changement d'état d'un de ces indicateurs gérant la notion de failure.
Il est dommages de ne pas trouver, en standard, une possibilité d'avoir un message disant que tout va bien. Histoire de savoir que la chaîne de liaison est opérationnelle.   Une idée à creuser    (toutes les N heures?)

Dernière modification par geole (Le 19/02/2020, à 17:16)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#37 Le 19/02/2020, à 16:02

Mia98

Re : Smartmontools n'envoie pas les mails

@geolde
Ça avance, tu m'as mise sur la voie : j'ai essayé sur avec adresse Free, et je reçois enfin le mail de test sur sur adresse externe !
Le problème vient donc bien de mon adresse gmail... qui pourtant existe.
Je vais à l'avenir tester uniquement l'adresse Free et supprimer l'envoi à root dans le fichier de conf pour y voir plus clair

@grandtoubab
J'ai bien reçu le mail de test à mon adresse Free, mais toujours pas l'exécution de smartd.runner.
Du fait qu'il y a 2 lignes DEVICESCAN, une pour le test et une autre pour l’exécution, j'ai pensé que la seconde n'était peut-être pas prise en compte.
J'ai commenté la première, celle du test, mais je ne reçois plus rien.
J'ai donc modifié comme tu le suggères :

DEVICESCAN -a -n standby -m xxx@free.fr -M test -M exec /usr/share/smartmontools/smartd-runner

Et là miracle j'ai 2 fenêtres de smart-notifier qui s'affichent, une pour sda et une pour sdb :

1582123430.png

Mais cette fois, je ne reçois plus de mail de test dans ma boite Free  ! Quel sac de nœuds hmm

grandtoubab a écrit :

avec le script dans anacron je reçis le rapport une fois par semaine.
Mais il s'agit d'un test hebdomadaire, pas d'un rapport de faute en temps réel

Un point n'est pas clair pour moi :
On reçoit un mail en cas d'erreurs sur les disques, ou en cas de nouvelles erreurs ?
Dans le premier cas, je devrais systématiquement les recevoir.

J'avais mis ton test avec hebdomadaire de côté, en attendant d'avoir résolu le soucis pour l'exécution de smartd-runner, mais je ne reçois rien non par anacron.
Plus le temps aujourd'hui de chercher pourquoi, je dois aller bosser, je m'y remets demain wink

@moko138
C'est un pc que j'ai récupéré d'occasion il y a 2 ans.
Il a été utilisé plusieurs années par un gamer/développeur qui l'a plutôt malmené, d'où l'état des disques :

sda :
SMART overall-health self-assessment test result: PASSED
 5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       16
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   050   050   000    Old_age   Always       -       50

sdb :
SMART overall-health self-assessment test result: PASSED
 5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       56
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   001   001   000    Old_age   Always       -       104

Mais depuis que je l'ai, il me semble que ça pas bougé.
Je pense qu'il n'est donc pas nécessaire de changer les disques, mais une surveillance disons hebdomadaire, et de façon automatique, me rassurerait.

Merci à tous pour votre aide

Edit : @geole
on a posté en même temps, merci pour ton ajout

Dernière modification par Mia98 (Le 19/02/2020, à 16:06)

Hors ligne

#38 Le 19/02/2020, à 16:38

moko138

Re : Smartmontools n'envoie pas les mails

geole a écrit :
sudo smartctl    -a  /dev/sdX

(...)
La valeur par défaut est   -a

#   -a      Default: equivalent to -H -f -t -l error -l selftest -C 197 -U 198

                Attention geole !
Tu es en train de confondre l'option -a de smartd.conf

http://manpages.ubuntu.com/manpages/bio … onf.5.html

-a     Equivalent to turning on all of the following Directives: '-H' to check  the  SMART
       health  status,  '-f' to report failures of Usage (rather than Prefail) Attributes,
       '-t' to track changes in both Prefailure and Usage Attributes, '-l error' to report
       increases  in  the  number  of ATA errors, '-l selftest' to report increases in the
       number of Self-Test Log errors, '-l selfteststs' to  report  changes  of  Self-Test
       execution  status,  '-C 197' to report nonzero values of the current pending sector
       count, and '-U 198' to report nonzero values of the offline pending sector count.

avec l'option -a de smartctl :
http://manpages.ubuntu.com/manpages/bio … ctl.8.html

-a, --all
       Prints  all  SMART  information  about the disk, or TapeAlert information about the
       tape drive or changer.  For ATA devices this is equivalent to
       ´-H -i -c -A -l error -l selftest -l selective´

       and for SCSI, this is equivalent to
       ´-H -i -A -l error -l selftest´.

       For NVMe, this is equivalent to
       ´-H -i -c -A -l error'.
       Note that for ATA disks this does not enable the non-SMART options  and  the  SMART
       options which require support for 48-bit ATA commands.

%NOINDEX%
Un utilitaire précieux : ncdu
Photo, mini-tutoriel :  À la découverte de dcraw

Hors ligne

#39 Le 19/02/2020, à 16:41

moko138

Re : Smartmontools n'envoie pas les mails

Mia98 a écrit :

une surveillance disons hebdomadaire, et de façon automatique, me rassurerait.

Prendre sa température et sa tension est un remède souverain contre toutes les maladies.
C'est sûr.


%NOINDEX%
Un utilitaire précieux : ncdu
Photo, mini-tutoriel :  À la découverte de dcraw

Hors ligne

#40 Le 19/02/2020, à 17:07

grandtoubab

Re : Smartmontools n'envoie pas les mails

la syntaxe c'est de séparer les adresses mail per une virgule

DEVICESCAN -a -n standby -m xxx@free.fr,root -M test -M exec /usr/share/smartmontools/smartd-runner

pour ce qui me concerne sur mon PC j'utilise le SMTP de gmail pour envoyer un mail à l'exterieur

mais google refuse de le traiter

T=remote_smtp_smarthost H=smtp.gmail.com [66.102.1.108] X=TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256 CV=yes DN="C=US,ST=California,L=Mountain View,O=Google LLC,CN=smtp.gmail.com": SMTP error from remote mail server after pipelined end of data: 530-5.7.0 Authentication Required. Learn more at\n530 5.7.0  https://support.google.com/mail/?p=WantAuthError b16sm70873wmj.39 - gsmtp

comme je n'ai pas trop envie de me prendre la tête avec SMTP je m'arrete là

Excuse moi d'insister mais ce script


/etc/cron.weekly$ cat smartctl
#! /bin/bash
#set -e
/usr/sbin/smartctl -t short /dev/sda
/bin/sleep 180
/usr/sbin/smartctl -l selftest /dev/sda
/usr/sbin/smartctl -H /dev/sda
/usr/sbin/smartctl -x /dev/sda

m'envoi un résultat de check-up toute les semaines car anacron fait ce travail d'envoi de mail
https://linux.die.net/man/8/anacron

If a job generates any output on its standard output or standard error, the output is mailed to the user running Anacron (usually root), or to the address contained by the MAILTO environment variable in the crontab


dans mon cas anacron envoi à root@localhost

Dernière modification par grandtoubab (Le 19/02/2020, à 17:14)


Linux tout seul sur HP Pavilion DV7 et Acer Aspire T650, Canon MG3650 en wifi
Debian 11 Bullseye Gnome/Xorg, Gnome/Wayland avec SDDM
https://bidouilledebian.wordpress.com/
ON M'A VU DANS LE VERCORS, SAUTER A L'ELASTIQUE..... J'AI DANS LES BOTTES DES MONTAGNES DE QUESTIONS....

Hors ligne

#41 Le 19/02/2020, à 17:27

geole

Re : Smartmontools n'envoie pas les mails

moko138 a écrit :

                Attention geole !
Tu es en train de confondre l'option -a de smartd.conf

Bonjour moko138
Je ne confond pas, je présente simplement mal deux choses qui n'ont pas  de   rapport entre elles,
Je concède que l'expression "par ailleurs" n'était pas suffisante pour les dissocier.


Je suis en  train de vérifier ce qui va se passer avec cette commande

DEVICESCAN -a -R 9! -W 5,15,55 -d  removable -n standby -m xxxxxxx@xxxxxx,root  -M exec /usr/share/smartmontools/smartd-runner

Si toutes les heures, je reçois un message d'alerte, je proposerais cette codification.

DEVICESCAN -a -r9! -W 5,15,55 -d  removable -n standby -m xxxxxxx@xxxxxxxx,root  -M exec /usr/share/smartmontools/smartd-runner

qui ne devrait sortir qu'un message toutes les 400 heures environ.


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#42 Le 19/02/2020, à 17:57

grandtoubab

Re : Smartmontools n'envoie pas les mails

https://www.smartmontools.org/browser/t … .conf.5.in

Sur mon disque, prendre la température c'est l'indicateur 190, envoyer un warning si ça change de 2° ou si ça dépasse 58
DEVICESCAN -a -r 190! -R 190! -W 2,0,58 -n standby -m root@localhost -M test

°systemctl status smartd.service

● smartmontools.service - Self Monitoring and Reporting Technology (SMART) Daemon
     Loaded: loaded (/lib/systemd/system/smartmontools.service; enabled; vendor preset: enabled)
     Active: active (running) since Wed 2020-02-19 16:48:17 CET; 6s ago
       Docs: man:smartd(8)
             man:smartd.conf(5)
   Main PID: 25595 (smartd)
     Status: "Next check of 1 device will start at 17:18:17"
      Tasks: 1 (limit: 4278)
     Memory: 2.3M
     CGroup: /system.slice/smartmontools.service
             └─25595 /usr/sbin/smartd -n

févr. 19 16:48:16 debian smartd[25595]: Device: /dev/sda [SAT], state read from /var/lib/smartmontools/smartd.Hitachi_HTS725032A9A364-110305PCKC04BPJ0X3GK.ata.state
févr. 19 16:48:16 debian smartd[25595]: Monitoring 1 ATA/SATA, 0 SCSI/SAS and 0 NVMe devices
févr. 19 16:48:16 debian smartd[25595]: Executing test of <mail> to root@localhost ...
févr. 19 16:48:16 debian smartd[25595]: Test of <mail> to root@localhost: successful
févr. 19 16:48:16 debian smartd[25595]: Device: /dev/sda [SAT], initial Temperature is 41 Celsius (Min/Max ??/41)
févr. 19 16:48:16 debian smartd[25595]: Device: /dev/sda [SAT], SMART Usage Attribute: 190 Airflow_Temperature_Cel changed from 58 [Raw 42 (Min/Max 15/42)] to 59 [>
févr. 19 16:48:16 debian smartd[25595]: Sending warning via <mail> to root@localhost ...
févr. 19 16:48:16 debian smartd[25595]: Warning via <mail> to root@localhost: successful
févr. 19 16:48:17 debian smartd[25595]: Device: /dev/sda [SAT], state written to /var/lib/smartmontools/smartd.Hitachi_HTS725032A9A364-110305PCKC04BPJ0X3GK.ata.sta>
févr. 19 16:48:17 debian systemd[1]: Started Self Monitoring and Reporting Technology (SMART) Daemon.

ça fonctionne

Mail reçu

Sujet :
SMART error (Usage) detected on host: debian
De :
root@debian
Date :
19/02/2020 à 16:48
Pour :
<root@localhost>

This message was generated by the smartd daemon running on:

   host name:  debian
   DNS domain: [Empty]

The following warning/error was logged by the smartd daemon:

Device: /dev/sda [SAT], SMART Usage Attribute: 190 Airflow_Temperature_Cel changed from 58 [Raw 42 (Min/Max 15/42)] to 59 [Raw 41 (Min/Max 15/42)]

Device info:
Hitachi HTS725032A9A364, S/N:110305PCKC04BPJ0X3GK, WWN:5-000cca-645dc9889, FW:PC3OCH0A, 320 GB

For details see host's SYSLOG.

You can also use the smartctl utility for further investigation.
Another message will be sent in 24 hours if the problem persists.

Mais attention un seul message du même type par jour

To prevent your email in-box from getting filled up with warning messages, by default only a single warning and (depending on '-s' option) daily reminder emails will be sent for each of the enabled alert type

Dernière modification par grandtoubab (Le 19/02/2020, à 21:20)


Linux tout seul sur HP Pavilion DV7 et Acer Aspire T650, Canon MG3650 en wifi
Debian 11 Bullseye Gnome/Xorg, Gnome/Wayland avec SDDM
https://bidouilledebian.wordpress.com/
ON M'A VU DANS LE VERCORS, SAUTER A L'ELASTIQUE..... J'AI DANS LES BOTTES DES MONTAGNES DE QUESTIONS....

Hors ligne

#43 Le 19/02/2020, à 20:39

geole

Re : Smartmontools n'envoie pas les mails

Bonsoir
Un petit point de récapitulation.
A)  Si on a besoin ponctuellement de vérifier que smartctl envoie toujours des emails, on peut faire le test d'une façon plus facile que de modifier le fichier de référence: Je propose cette ligne de commande.

echo "DEVICESCAN -a -m AdresseInternet@Fournisseur,root@localhost -M test" > $HOME/FIC
sudo smartd -n -q onecheck -c $HOME/FIC

B) Si on veut faire un suivi aléatoire,  Grandtoubab   a proposé une surveillance de la température.

C) Si on veut être informé que le disque a fonctionné pendant une heure, je propose  le même style de codification

DEVICESCAN -a -R 9! -W 5,15,55 -d  removable -n standby -m AdresseInternet@Fournisseur,root  -M exec /usr/share/smartmontools/smartd-runner

Le message reçu sera

This message was generated by the smartd daemon running on:

   host name:  a
   DNS domain: [Empty]

The following warning/error was logged by the smartd daemon:

Device: /dev/sda [SAT], SMART Usage Attribute: 9 Power_On_Hours changed from 46 [Raw 21674] to 46 [Raw 21675]

Device info:
TOSHIBA MQ01ABD100, S/N:339KP439T, WWN:5-000039-4a2b021d3, FW:AX003M, 1.00 TB

For details see host's SYSLOG.

You can also use the smartctl utility for further investigation.
Another message will be sent in 24 hours if the problem persists.

D) Si on veut être informé que le disque a fonctionné pendant 1% de sa capacité de vie, je propose  le même style de codification

DEVICESCAN -a -r 9! -W 5,15,55 -d  removable -n standby -m AdresseInternet@Fournisseur,root  -M exec /usr/share/smartmontools/smartd-runner

Cette commande n'est pas encore  vérifiée..

NOTA: Il reste à trouver une meilleure codification pour les utilisateurs disposant de plusieurs disques.

Dernière modification par geole (Le 19/02/2020, à 20:45)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#44 Le 19/02/2020, à 21:24

Mia98

Re : Smartmontools n'envoie pas les mails

@geole

geole a écrit :

Peux-tu produire un rapport classique avec cette commande

C'est ce que faisais quand j'ai commencé à utiliser smartmontools, avant de découvrir smartd, mais je n'y pensais pas régulièrement, je dirais même que j'oubliais roll

mia@mia-PC5:~$ sudo smartctl -a /dev/sda
[sudo] Mot de passe de mia :             
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-76-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Desktop SSHD
Device Model:     ST1000DX001-1CM162
Serial Number:    Z1DD25RC
LU WWN Device Id: 5 000c50 0792cf436
Firmware Version: CC43
User Capacity:    1000204886016 bytes [1,00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-2, ACS-3 T13/2161-D revision 3b
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Wed Feb 19 16:37:45 2020 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x82)	Offline data collection activity
					was completed without error.
					Auto Offline Data Collection: Enabled.
Self-test execution status:      (   0)	The previous self-test routine completed
					without error or no self-test has ever 
					been run.
Total time to complete Offline 
data collection: 		(  575) seconds.
Offline data collection
capabilities: 			 (0x7b) SMART execute Offline immediate.
					Auto Offline data collection on/off support.
					Suspend Offline collection upon new
					command.
					Offline surface scan supported.
					Self-test supported.
					Conveyance Self-test supported.
					Selective Self-test supported.
SMART capabilities:            (0x0003)	Saves SMART data before entering
					power-saving mode.
					Supports SMART auto save timer.
Error logging capability:        (0x01)	Error logging supported.
					General Purpose Logging supported.
Short self-test routine 
recommended polling time: 	 (   1) minutes.
Extended self-test routine
recommended polling time: 	 ( 109) minutes.
Conveyance self-test routine
recommended polling time: 	 (   2) minutes.
SCT capabilities: 	       (0x1081)	SCT Status supported.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   116   099   006    Pre-fail  Always       -       107195664
  3 Spin_Up_Time            0x0003   097   097   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   099   099   020    Old_age   Always       -       1063
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       16
  7 Seek_Error_Rate         0x000f   084   060   030    Pre-fail  Always       -       252183893
  9 Power_On_Hours          0x0032   068   068   000    Old_age   Always       -       28171
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   099   099   020    Old_age   Always       -       1120
183 Runtime_Bad_Block       0x0032   100   100   000    Old_age   Always       -       0
184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   050   050   000    Old_age   Always       -       50
188 Command_Timeout         0x0032   100   099   000    Old_age   Always       -       0 0 7
189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   060   048   045    Old_age   Always       -       40 (Min/Max 29/40)
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       0
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       51
193 Load_Cycle_Count        0x0032   099   099   000    Old_age   Always       -       2470
194 Temperature_Celsius     0x0022   040   052   000    Old_age   Always       -       40 (0 17 0 0 0)
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
240 Head_Flying_Hours       0x0000   100   253   000    Old_age   Offline      -       28007h+35m+46.832s
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       24330555579
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       205005570791

SMART Error Log Version: 1
ATA Error Count: 5
	CR = Command Register [HEX]
	FR = Features Register [HEX]
	SC = Sector Count Register [HEX]
	SN = Sector Number Register [HEX]
	CL = Cylinder Low Register [HEX]
	CH = Cylinder High Register [HEX]
	DH = Device/Head Register [HEX]
	DC = Device Command Register [HEX]
	ER = Error register [HEX]
	ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 5 occurred at disk power-on lifetime: 25014 hours (1042 days + 6 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 ff ff ff 0f  Error: WP at LBA = 0x0fffffff = 268435455

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  61 00 10 ff ff ff 4f 00      00:38:14.385  WRITE FPDMA QUEUED
  61 00 08 ff ff ff 4f 00      00:38:14.385  WRITE FPDMA QUEUED
  60 00 08 ff ff ff 4f 00      00:38:14.384  READ FPDMA QUEUED
  60 00 80 ff ff ff 4f 00      00:38:13.971  READ FPDMA QUEUED
  61 00 01 ff ff ff 4f 00      00:38:13.953  WRITE FPDMA QUEUED

Error 4 occurred at disk power-on lifetime: 25014 hours (1042 days + 6 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 ff ff ff 0f  Error: UNC at LBA = 0x0fffffff = 268435455

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 00 80 ff ff ff 4f 00      00:38:10.088  READ FPDMA QUEUED
  60 00 00 ff ff ff 4f 00      00:38:10.088  READ FPDMA QUEUED
  60 00 80 ff ff ff 4f 00      00:38:10.088  READ FPDMA QUEUED
  60 00 80 ff ff ff 4f 00      00:38:10.086  READ FPDMA QUEUED
  60 00 00 ff ff ff 4f 00      00:38:10.083  READ FPDMA QUEUED

Error 3 occurred at disk power-on lifetime: 25013 hours (1042 days + 5 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 08 83 67 03  Error: UNC at LBA = 0x03678308 = 57115400

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 00 80 00 86 67 43 00      00:03:55.854  READ FPDMA QUEUED
  60 00 80 00 29 67 43 00      00:03:55.312  READ FPDMA QUEUED
  60 00 00 00 24 67 43 00      00:03:55.308  READ FPDMA QUEUED
  60 00 00 00 1f 67 43 00      00:03:55.305  READ FPDMA QUEUED
  60 00 80 80 1e 67 43 00      00:03:55.303  READ FPDMA QUEUED

Error 2 occurred at disk power-on lifetime: 25013 hours (1042 days + 5 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 f8 c0 66 03  Error: UNC at LBA = 0x0366c0f8 = 57065720

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 00 08 f8 c0 66 43 00      00:03:51.277  READ FPDMA QUEUED
  60 00 08 f0 c0 66 43 00      00:03:51.277  READ FPDMA QUEUED
  60 00 08 e8 c0 66 43 00      00:03:51.277  READ FPDMA QUEUED
  60 00 08 e0 c0 66 43 00      00:03:51.277  READ FPDMA QUEUED
  60 00 08 d8 c0 66 43 00      00:03:51.276  READ FPDMA QUEUED

Error 1 occurred at disk power-on lifetime: 25013 hours (1042 days + 5 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 f8 c0 66 03  Error: UNC at LBA = 0x0366c0f8 = 57065720

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 00 00 80 c1 66 43 00      00:03:47.634  READ FPDMA QUEUED
  60 00 00 80 83 66 43 00      00:03:46.958  READ FPDMA QUEUED
  60 00 80 00 80 66 43 00      00:03:46.676  READ FPDMA QUEUED
  60 00 00 00 7e 66 43 00      00:03:46.676  READ FPDMA QUEUED
  60 00 80 80 80 45 43 00      00:03:41.111  READ FPDMA QUEUED

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%     28154         -
# 2  Short offline       Completed without error       00%     28150         -
# 3  Short offline       Completed without error       00%     28127         -
# 4  Short offline       Completed without error       00%     28121         -
# 5  Short offline       Completed without error       00%     28088         -
# 6  Short offline       Completed without error       00%     28056         -
# 7  Short offline       Completed without error       00%     28053         -
# 8  Short offline       Completed without error       00%     28050         -
# 9  Short offline       Completed without error       00%     28049         -
#10  Short offline       Completed without error       00%     28047         -
#11  Short offline       Completed without error       00%     28045         -
#12  Short offline       Completed without error       00%     28044         -
#13  Short offline       Completed without error       00%     28043         -
#14  Short offline       Completed without error       00%     28042         -
#15  Short offline       Completed without error       00%     28041         -
#16  Short offline       Completed without error       00%     28040         -
#17  Short offline       Completed without error       00%     28040         -
#18  Short offline       Completed without error       00%     28039         -
#19  Short offline       Completed without error       00%     28038         -
#20  Short offline       Completed without error       00%     28037         -
#21  Short offline       Completed without error       00%     28036         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

mia@mia-PC5:~$ sudo smartctl -a /dev/sdb
smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.15.0-76-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Desktop SSHD
Device Model:     ST1000DX001-1CM162
Serial Number:    Z1DD26MH
LU WWN Device Id: 5 000c50 0792ce7ac
Firmware Version: CC43
User Capacity:    1000204886016 bytes [1,00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    7200 rpm
Form Factor:      3.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-2, ACS-3 T13/2161-D revision 3b
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Wed Feb 19 16:38:41 2020 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x82)	Offline data collection activity
					was completed without error.
					Auto Offline Data Collection: Enabled.
Self-test execution status:      (   0)	The previous self-test routine completed
					without error or no self-test has ever 
					been run.
Total time to complete Offline 
data collection: 		(  575) seconds.
Offline data collection
capabilities: 			 (0x7b) SMART execute Offline immediate.
					Auto Offline data collection on/off support.
					Suspend Offline collection upon new
					command.
					Offline surface scan supported.
					Self-test supported.
					Conveyance Self-test supported.
					Selective Self-test supported.
SMART capabilities:            (0x0003)	Saves SMART data before entering
					power-saving mode.
					Supports SMART auto save timer.
Error logging capability:        (0x01)	Error logging supported.
					General Purpose Logging supported.
Short self-test routine 
recommended polling time: 	 (   1) minutes.
Extended self-test routine
recommended polling time: 	 ( 106) minutes.
Conveyance self-test routine
recommended polling time: 	 (   2) minutes.
SCT capabilities: 	       (0x1081)	SCT Status supported.

SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000f   117   099   006    Pre-fail  Always       -       155987456
  3 Spin_Up_Time            0x0003   097   097   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   099   099   020    Old_age   Always       -       1067
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       56
  7 Seek_Error_Rate         0x000f   083   060   030    Pre-fail  Always       -       204473115
  9 Power_On_Hours          0x0032   068   068   000    Old_age   Always       -       28167
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   099   099   020    Old_age   Always       -       1120
183 Runtime_Bad_Block       0x0032   100   100   000    Old_age   Always       -       0
184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   001   001   000    Old_age   Always       -       104
188 Command_Timeout         0x0032   100   099   000    Old_age   Always       -       0 0 8
189 High_Fly_Writes         0x003a   098   098   000    Old_age   Always       -       2
190 Airflow_Temperature_Cel 0x0022   065   050   045    Old_age   Always       -       35 (Min/Max 27/35)
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       0
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       51
193 Load_Cycle_Count        0x0032   099   099   000    Old_age   Always       -       2079
194 Temperature_Celsius     0x0022   035   050   000    Old_age   Always       -       35 (0 17 0 0 0)
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       0
240 Head_Flying_Hours       0x0000   100   253   000    Old_age   Offline      -       28031h+07m+24.084s
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       50630617162
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       158059870532

SMART Error Log Version: 1
ATA Error Count: 1
	CR = Command Register [HEX]
	FR = Features Register [HEX]
	SC = Sector Count Register [HEX]
	SN = Sector Number Register [HEX]
	CL = Cylinder Low Register [HEX]
	CH = Cylinder High Register [HEX]
	DH = Device/Head Register [HEX]
	DC = Device Command Register [HEX]
	ER = Error register [HEX]
	ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 1 occurred at disk power-on lifetime: 13660 hours (569 days + 4 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 51 00 c8 f4 5e 09  Error: UNC at LBA = 0x095ef4c8 = 157217992

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 00 00 80 f7 5e 49 00   5d+14:32:53.424  READ FPDMA QUEUED
  60 00 80 00 f2 5e 49 00   5d+14:32:53.424  READ FPDMA QUEUED
  60 00 80 80 f1 5e 49 00   5d+14:32:53.416  READ FPDMA QUEUED
  61 00 a8 28 de 72 4a 00   5d+14:32:53.415  WRITE FPDMA QUEUED
  61 00 08 ff ff ff 4f 00   5d+14:32:53.415  WRITE FPDMA QUEUED

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%     28147         -
# 2  Short offline       Completed without error       00%     28146         -
# 3  Short offline       Completed without error       00%     28123         -
# 4  Short offline       Completed without error       00%     28042         -
# 5  Short offline       Completed without error       00%     28041         -
# 6  Short offline       Completed without error       00%     28040         -
# 7  Short offline       Completed without error       00%     28039         -
# 8  Short offline       Completed without error       00%     28038         -
# 9  Short offline       Completed without error       00%     28037         -
#10  Short offline       Completed without error       00%     28037         -
#11  Short offline       Completed without error       00%     28036         -
#12  Short offline       Completed without error       00%     28035         -
#13  Short offline       Completed without error       00%     28034         -
#14  Short offline       Completed without error       00%     28033         -
#15  Short offline       Completed without error       00%     28032         -
#16  Short offline       Completed without error       00%     28031         -
#17  Short offline       Completed without error       00%     28020         -
#18  Short offline       Completed without error       00%     28012         -
#19  Short offline       Completed without error       00%     28002         -
#20  Short offline       Completed without error       00%     27996         -
#21  Short offline       Completed without error       00%     27943         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
geole a écrit :

Donc en clair , tu es informée uniquement lorsqu'il y a changement d'état d'un de ces indicateurs gérant la notion de failure.

J'avais essayé aussi de décortiquer l'option -a du fichier de configuration, ainsi que les autres -o on -s on -d sat, mais incapable de voir si informée uniquement lors d'un changement d'état.
Merci pour l'info wink

@ grandtoutbab
Tu pourrais éditer ton message #32 pour supprimer mon adresse mail stp, j'avais oublié de la masquer, j'ai modidfié dans mon message.
Pour les adresses mail séparées par une virgule, c'est ce que je fais, j'ai supprimé root juste pour ne pas m'embrouiller avec les éventuels messages d'erreur dans les logs.

grandtoutbab a écrit :

Excuse moi d'insister mais ce script m'envoi un résultat de check-up toute les semaines car anacron fait ce travail d'envoi de mail

Tu as raison d'insister, je t'avais répondu plus haut mais le sujet commence à être touffu : je reçois bien les message de root dans Thunderbird avec la création d'un compte movemail, mais uniquement par le Cron Daemon pour clamscan et les mails de test de smartd.
Le cron pour smartctl n'arrive pas jusqu'à la boite de root.
J'ai mis en place une programmation horaire pour avoir le résultat plus rapidement.

Voilà le script que j'ai mis dans /etc/cron.hourly/smartctl :

mia@mia-PC5:~$ cat /etc/cron.hourly/smartctl
#! /bin/bash
#set -e
/usr/sbin/smartctl -t short /dev/sda
/bin/sleep 180
/usr/sbin/smartctl -l selftest /dev/sda
/usr/sbin/smartctl -H /dev/sda
/usr/sbin/smartctl -x /dev/sda

/usr/sbin/smartctl -t short /dev/sdb
/bin/sleep 180
/usr/sbin/smartctl -l selftest /dev/sdb
/usr/sbin/smartctl -H /dev/sdb
/usr/sbin/smartctl -x /dev/sdb

La deuxième chose à faire était de créer un alias, qui fonctionne puisque je reçois les mails de clamtk et les test de smartd.

Si je trouve où ça coince, le script me conviendrait tout à fait.
Je viens de survoler la page de ton lien, je n'ai rien vu sur l'envoi de mails de root.
Mais si je choisis cette option, il faudra penser à faire le ménage :

Bugs

Anacron supprime jamais les fichiers horodatage. Supprimer les fichiers inutilisés manuellement.

Hors ligne

#45 Le 19/02/2020, à 21:37

grandtoubab

Re : Smartmontools n'envoie pas les mails

une autre precision

-M exec /usr/share/smartmontools/smartd-runner ça déclenche la notification mais rien n'interdit de lancer un script qu'on à codé soit même
des examples sont fournis

/usr/share/doc/smartmontools/examples/Example1
/usr/share/doc/smartmontools/examples/Example2
/usr/share/doc/smartmontools/examples/Example3
/usr/share/doc/smartmontools/examples/Example4
/usr/share/doc/smartmontools/examples/Example5
/usr/share/doc/smartmontools/examples/Example6
/usr/share/doc/smartmontools/examples/Example7

on peut donc se coder un script pour envoyer un mail a chaque warning

@Mia98 ne pas confondre cron et anacron
j'utilise anacron
anacron fait ce travail d'envoi de mail
par defaut le mail est envoyé à root
https://linux.die.net/man/8/anacron

ça fonctionne très bien

journalctl | grep cron
févr. 19 19:42:57 debian systemd[1]: Started Trigger anacron every hour.
févr. 19 19:42:58 debian systemd[1]: Started Run anacron jobs.
févr. 19 19:42:58 debian anacron[2209]: Anacron 2.3 started on 2020-02-19
févr. 19 19:42:58 debian cron[2223]: (CRON) INFO (pidfile fd = 3)
févr. 19 19:42:58 debian anacron[2209]: Will run job `cron.hourly' in 40 min.
févr. 19 19:42:58 debian anacron[2209]: Jobs will be executed sequentially
févr. 19 19:42:59 debian cron[2223]: (CRON) INFO (Running @reboot jobs)
févr. 19 20:22:58 debian anacron[2209]: Job `cron.hourly' started
févr. 19 20:22:58 debian anacron[7664]: Updated timestamp for job `cron.hourly' to 2020-02-19
févr. 19 20:23:30 debian anacron[2209]: Job `cron.hourly' terminated
févr. 19 20:23:30 debian anacron[2209]: Normal exit (1 job run)
févr. 19 20:23:30 debian systemd[1]: anacron.service: Succeeded.
févr. 19 20:30:01 debian CRON[7753]: pam_unix(cron:session): session opened for user root by (uid=0)
févr. 19 20:30:01 debian CRON[7755]: (root) CMD ([ -x /etc/init.d/anacron ] && if [ ! -d /run/systemd/system ]; then /usr/sbin/invoke-rc.d anacron start >/dev/null; fi)
févr. 19 20:30:01 debian CRON[7753]: pam_unix(cron:session): session closed for user root
févr. 19 20:30:34 debian systemd[1]: Started Run anacron jobs.
févr. 19 20:30:34 debian anacron[7763]: Anacron 2.3 started on 2020-02-19
févr. 19 20:30:34 debian anacron[7763]: Will run job `cron.hourly' in 40 min.
févr. 19 20:30:34 debian anacron[7763]: Jobs will be executed sequentially

Dernière modification par grandtoubab (Le 19/02/2020, à 21:47)


Linux tout seul sur HP Pavilion DV7 et Acer Aspire T650, Canon MG3650 en wifi
Debian 11 Bullseye Gnome/Xorg, Gnome/Wayland avec SDDM
https://bidouilledebian.wordpress.com/
ON M'A VU DANS LE VERCORS, SAUTER A L'ELASTIQUE..... J'AI DANS LES BOTTES DES MONTAGNES DE QUESTIONS....

Hors ligne

#46 Le 20/02/2020, à 12:06

Mia98

Re : Smartmontools n'envoie pas les mails

Bonjour à tous,

Concernant le script de grandtoubab :

Si j'interprète bien, la tâche se déclenche à chaque heure comme demandé.

journalctl | grep cron
févr. 19 08:56:14 mia-PC5 systemd[1]: Started Run anacron jobs.
févr. 19 08:56:15 mia-PC5 anacron[10936]: Anacron 2.3 started on 2020-02-19
févr. 19 08:56:15 mia-PC5 anacron[10936]: Will run job `cron.daily' in 5 min.
févr. 19 08:56:15 mia-PC5 anacron[10936]: Jobs will be executed sequentially
févr. 19 09:01:15 mia-PC5 anacron[10936]: Job `cron.daily' started
févr. 19 09:01:15 mia-PC5 anacron[12286]: Updated timestamp for job `cron.daily' to 2020-02-19
févr. 19 09:01:34 mia-PC5 anacron[10936]: Job `cron.daily' terminated
févr. 19 09:01:34 mia-PC5 anacron[10936]: Normal exit (1 job run)
févr. 19 09:01:34 mia-PC5 systemd[1]: Started Run anacron jobs.
févr. 19 09:01:34 mia-PC5 anacron[12466]: Anacron 2.3 started on 2020-02-19
févr. 19 09:01:34 mia-PC5 anacron[12466]: Normal exit (0 jobs run)
févr. 19 09:17:01 mia-PC5 CRON[13426]: pam_unix(cron:session): session opened for user root by (uid=0)
févr. 19 09:17:01 mia-PC5 CRON[13427]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
févr. 19 09:17:01 mia-PC5 CRON[13426]: pam_unix(cron:session): session closed for user root
févr. 19 10:00:01 mia-PC5 CRON[16044]: pam_unix(cron:session): session opened for user mia by (uid=0)
févr. 19 10:03:14 mia-PC5 systemd[1]: Started Run anacron jobs.
févr. 19 10:03:14 mia-PC5 anacron[16240]: Anacron 2.3 started on 2020-02-19
févr. 19 10:03:15 mia-PC5 anacron[16240]: Normal exit (0 jobs run)
févr. 19 10:12:54 mia-PC5 CRON[16044]: pam_unix(cron:session): session closed for user mia
févr. 19 10:17:02 mia-PC5 CRON[17176]: pam_unix(cron:session): session opened for user root by (uid=0)
févr. 19 10:17:02 mia-PC5 CRON[17177]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
févr. 19 10:17:02 mia-PC5 CRON[17176]: pam_unix(cron:session): session closed for user root
févr. 19 11:02:51 mia-PC5 systemd[1]: Started Run anacron jobs.
févr. 19 11:02:51 mia-PC5 anacron[19951]: Anacron 2.3 started on 2020-02-19
févr. 19 11:02:51 mia-PC5 anacron[19951]: Normal exit (0 jobs run)
févr. 19 11:15:01 mia-PC5 CRON[20663]: pam_unix(cron:session): session opened for user mia by (uid=0)
févr. 19 11:17:01 mia-PC5 CRON[20793]: pam_unix(cron:session): session opened for user root by (uid=0)
févr. 19 11:17:01 mia-PC5 CRON[20794]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
févr. 19 11:17:01 mia-PC5 CRON[20793]: pam_unix(cron:session): session closed for user root
févr. 19 11:26:07 mia-PC5 CRON[20663]: pam_unix(cron:session): session closed for user mia
févr. 19 12:00:51 mia-PC5 systemd[1]: Started Run anacron jobs.
févr. 19 12:00:51 mia-PC5 anacron[23454]: Anacron 2.3 started on 2020-02-19
févr. 19 12:00:51 mia-PC5 anacron[23454]: Normal exit (0 jobs run)
févr. 19 12:17:01 mia-PC5 CRON[24584]: pam_unix(cron:session): session opened for user root by (uid=0)
févr. 19 12:17:01 mia-PC5 CRON[24585]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
févr. 19 12:17:01 mia-PC5 CRON[24584]: pam_unix(cron:session): session closed for user root
févr. 19 13:02:14 mia-PC5 systemd[1]: Started Run anacron jobs.
févr. 19 13:02:14 mia-PC5 anacron[27895]: Anacron 2.3 started on 2020-02-19
févr. 19 13:02:14 mia-PC5 anacron[27895]: Normal exit (0 jobs run)
févr. 19 13:17:01 mia-PC5 CRON[28881]: pam_unix(cron:session): session opened for user root by (uid=0)
févr. 19 13:17:01 mia-PC5 CRON[28882]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
févr. 19 13:17:01 mia-PC5 CRON[28881]: pam_unix(cron:session): session closed for user root
févr. 19 14:05:42 mia-PC5 systemd[1]: Started Run anacron jobs.
févr. 19 14:05:42 mia-PC5 anacron[32024]: Anacron 2.3 started on 2020-02-19
févr. 19 14:05:42 mia-PC5 anacron[32024]: Normal exit (0 jobs run)
févr. 19 14:17:01 mia-PC5 CRON[453]: pam_unix(cron:session): session opened for user root by (uid=0)
févr. 19 14:17:01 mia-PC5 CRON[454]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
févr. 19 14:17:01 mia-PC5 CRON[453]: pam_unix(cron:session): session closed for user root

Et pourtant il n'y a que le scan ce clamtk qui arrive dans Thunderbird.
Il se trouve dans un cron journalier, je ne vois pas ce qui déclenche l'envoi d'un mail. :

0 10 * * * /usr/bin/clamscan --exclude-dir=/home/mia/.clamtk/viruses --exclude-dir=smb4k --exclude-dir=/run/user/mia/gvfs --exclude-dir=/home/mia/.gvfs --exclude-dir=.thunderbird --exclude-dir=.mozilla-thunderbird --exclude-dir=.evolution --exclude-dir=Mail --exclude-dir=kmail -i  --detect-pua -r /home/mia --log="$HOME/.clamtk/history/$(date +\%b-\%d-\%Y).log" 2>/dev/null # clamtk-scan

Je cherche à trouver ce qui ne va pas en épluchant les fichiers, mais avec tous les tests que j'ai faits, difficile de m'y retrouver.

Dans syslog, on voit que c'est envoyé depuis mon adresse gmail, il faudrait que je trouve où je peux changer cela, ça devrait être envoyé par mailslocaux, c'est peut-être le problème...

Feb 20 08:54:39 mia-PC5 postfix/error[23206]: 507AF40407: to=<xxx@gmail.com>, relay=none, delay=244035, delays=244035/0.04/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[142.250.4.26]:25: Connection timed out)
Feb 20 08:54:48 mia-PC5 anacron[22295]: Job `cron.daily' terminated
Feb 20 08:59:31 mia-PC5 anacron[22295]: Job `cron.weekly' started
Feb 20 08:59:31 mia-PC5 anacron[23562]: Updated timestamp for job `cron.weekly' to 2020-02-20
Feb 20 08:59:32 mia-PC5 anacron[22295]: Job `cron.weekly' terminated
Feb 20 09:00:43 mia-PC5 smartd[32336]: Device: /dev/sda [SAT], SMART Usage Attribute: 190 Airflow_Temperature_Cel changed from 61 to 72
Feb 20 09:00:43 mia-PC5 smartd[32336]: Device: /dev/sda [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 39 to 28
Feb 20 09:00:43 mia-PC5 smartd[32336]: Device: /dev/sdb [SAT], SMART Usage Attribute: 190 Airflow_Temperature_Cel changed from 64 to 73
Feb 20 09:00:43 mia-PC5 smartd[32336]: Device: /dev/sdb [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 36 to 27

Ces lignes disent que quelque chose est failed en rapport avec le terminal, mais ça ne m'éclaire pas davantage :

Feb 20 09:17:01 mia-PC5 CRON[24903]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Feb 20 09:21:21 mia-PC5 gnome-terminal-[4919]: g_menu_insert_item: assertion 'G_IS_MENU_ITEM (item)' failed

Voilà tout le contenu du fichier syslog depuis ce matin. On peut voir que les envois se font from :
- root@mia-PC5
- mia@mia-PC5
- une adresse gmx que j'ai utilisée pour mettre en place msmtp, j'ai supprimé/purgé msmtp puisque je crois comprendre que postfix fait la même chose, le fichier .msmtprc est cependant resté dans mon home. Il n'y a qu'à cet endroit je pense qu'il est question de l'adresse gmx.
- mon adresse gmail, il faut que je retrouve dans quel fichier a été fait le choix de cet expéditeur car ça déclenche plein de messages d'erreur qui s'empilent.

Feb 20 08:54:39 mia-PC5 postfix/qmgr[22694]: 52EC340406: from=<root@mia-PC5>, size=855, nrcpt=1 (queue active)
Feb 20 08:54:39 mia-PC5 postfix/qmgr[22694]: 4790A4044A: from=<root@mia-PC5>, size=860, nrcpt=1 (queue active)
Feb 20 08:54:39 mia-PC5 postfix/qmgr[22694]: 1F43240428: from=<root@mia-PC5>, size=855, nrcpt=1 (queue active)
Feb 20 08:54:39 mia-PC5 postfix/qmgr[22694]: 090D2403E8: from=<root@mia-PC5>, size=732, nrcpt=2 (queue active)
Feb 20 08:54:39 mia-PC5 postfix/qmgr[22694]: 333B4403E9: from=<root@mia-PC5>, size=732, nrcpt=2 (queue active)
Feb 20 08:54:39 mia-PC5 postfix/qmgr[22694]: 10836403D6: from=<>, size=2911, nrcpt=1 (queue active)
Feb 20 08:54:39 mia-PC5 postfix/qmgr[22694]: 5DB29403C1: from=<root@mia-PC5>, size=732, nrcpt=2 (queue active)
Feb 20 08:54:39 mia-PC5 postfix/qmgr[22694]: E016340430: from=<mia@mia-PC5>, size=442, nrcpt=1 (queue active)
Feb 20 08:54:39 mia-PC5 postfix/qmgr[22694]: 525374040F: from=<root@mia-PC5>, size=732, nrcpt=2 (queue active)
Feb 20 08:54:39 mia-PC5 postfix/qmgr[22694]: 507AF40407: from=<root@mia-PC5>, size=732, nrcpt=2 (queue active)
Feb 20 08:54:39 mia-PC5 postfix/error[23193]: 52EC340406: to=<xxx@gmx.fr>, orig_to=<root@mia-PC5>, relay=none, delay=244035, delays=244035/0.01/0/0.03, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx00.gmx.net[212.227.15.10]:25: Connection timed out)
Feb 20 08:54:39 mia-PC5 postfix/error[23194]: 4790A4044A: to=<xxx@gmx.fr>, orig_to=<root@localhost>, relay=none, delay=69872, delays=69872/0.01/0/0.02, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx00.gmx.net[212.227.15.10]:25: Connection timed out)
Feb 20 08:54:39 mia-PC5 postfix/error[23196]: 1F43240428: to=<xxx@gmx.fr>, orig_to=<root@mia-PC5>, relay=none, delay=232190, delays=232190/0.02/0/0.02, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx00.gmx.net[212.227.15.10]:25: Connection timed out)
Feb 20 08:54:39 mia-PC5 postfix/error[23200]: 333B4403E9: to=<xxx@gmail.com>, relay=none, delay=336469, delays=336469/0.03/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[142.250.4.26]:25: Connection timed out)
Feb 20 08:54:39 mia-PC5 postfix/error[23198]: 090D2403E8: to=<xxx@gmail.com>, relay=none, delay=336469, delays=336469/0.02/0/0.02, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[142.250.4.26]:25: Connection timed out)
Feb 20 08:54:39 mia-PC5 postfix/error[23194]: E016340430: to=<xxx@gmx.fr>, orig_to=<root@mia-PC5>, relay=none, delay=170034, delays=170034/0.03/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx00.gmx.net[212.227.15.10]:25: Connection timed out)
Feb 20 08:54:39 mia-PC5 postfix/error[23193]: 5DB29403C1: to=<xxx@gmail.com>, relay=none, delay=233935, delays=233935/0.03/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[142.250.4.26]:25: Connection timed out)
Feb 20 08:54:39 mia-PC5 postfix/error[23204]: 525374040F: to=<xxx@gmail.com>, relay=none, delay=236116, delays=236116/0.03/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[142.250.4.26]:25: Connection timed out)
Feb 20 08:54:39 mia-PC5 postfix/error[23202]: 10836403D6: to=<xxx@gmx.fr>, orig_to=<root@mia-PC5>, relay=none, delay=69198, delays=69198/0.03/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx00.gmx.net[212.227.15.10]:25: Connection timed out)
Feb 20 08:54:39 mia-PC5 postfix/error[23206]: 507AF40407: to=<xxx@gmail.com>, relay=none, delay=244035, delays=244035/0.04/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[142.250.4.26]:25: Connection timed out)
Feb 20 08:54:48 mia-PC5 anacron[22295]: Job `cron.daily' terminated
Feb 20 08:59:31 mia-PC5 anacron[22295]: Job `cron.weekly' started
Feb 20 08:59:31 mia-PC5 anacron[23562]: Updated timestamp for job `cron.weekly' to 2020-02-20
Feb 20 08:59:32 mia-PC5 anacron[22295]: Job `cron.weekly' terminated
Feb 20 09:00:43 mia-PC5 smartd[32336]: Device: /dev/sda [SAT], SMART Usage Attribute: 190 Airflow_Temperature_Cel changed from 61 to 72
Feb 20 09:00:43 mia-PC5 smartd[32336]: Device: /dev/sda [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 39 to 28
Feb 20 09:00:43 mia-PC5 smartd[32336]: Device: /dev/sdb [SAT], SMART Usage Attribute: 190 Airflow_Temperature_Cel changed from 64 to 73
Feb 20 09:00:43 mia-PC5 smartd[32336]: Device: /dev/sdb [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 36 to 27
Feb 20 09:04:14 mia-PC5 upowerd[1544]: unhandled action 'unbind' on /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0
Feb 20 09:04:14 mia-PC5 kernel: [199710.056634] usb 2-1.6: reset high-speed USB device number 3 using ehci-pci
Feb 20 09:04:14 mia-PC5 kernel: [199710.165983] usb-storage 2-1.6:1.0: USB Mass Storage device detected
Feb 20 09:04:14 mia-PC5 kernel: [199710.166387] scsi host6: usb-storage 2-1.6:1.0
Feb 20 09:04:14 mia-PC5 upowerd[1544]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.6/2-1.6:1.0
Feb 20 09:04:15 mia-PC5 kernel: [199711.189301] scsi 6:0:0:0: Direct-Access     WD       Elements 10B8    1007 PQ: 0 ANSI: 6
Feb 20 09:04:15 mia-PC5 kernel: [199711.189761] sd 6:0:0:0: Attached scsi generic sg3 type 0
Feb 20 09:04:15 mia-PC5 kernel: [199711.190285] sd 6:0:0:0: [sdc] 3906963456 512-byte logical blocks: (2.00 TB/1.82 TiB)
Feb 20 09:04:15 mia-PC5 kernel: [199711.191276] sd 6:0:0:0: [sdc] Write Protect is off
Feb 20 09:04:15 mia-PC5 kernel: [199711.191279] sd 6:0:0:0: [sdc] Mode Sense: 47 00 10 08
Feb 20 09:04:15 mia-PC5 kernel: [199711.192276] sd 6:0:0:0: [sdc] No Caching mode page found
Feb 20 09:04:15 mia-PC5 kernel: [199711.192282] sd 6:0:0:0: [sdc] Assuming drive cache: write through
Feb 20 09:04:15 mia-PC5 kernel: [199711.195646]  sdc: sdc1
Feb 20 09:04:15 mia-PC5 kernel: [199711.198765] sd 6:0:0:0: [sdc] Attached SCSI disk
Feb 20 09:04:17 mia-PC5 ntfs-3g[23879]: Version 2017.3.23 integrated FUSE 28
Feb 20 09:04:17 mia-PC5 ntfs-3g[23879]: Mounted /dev/sdc1 (Read-Write, label "WD1", NTFS 3.1)
Feb 20 09:04:17 mia-PC5 ntfs-3g[23879]: Cmdline options: rw,nodev,nosuid,uid=1000,gid=1000,uhelper=udisks2
Feb 20 09:04:17 mia-PC5 ntfs-3g[23879]: Mount options: rw,nodev,nosuid,uhelper=udisks2,allow_other,nonempty,relatime,default_permissions,fsname=/dev/sdc1,blkdev,blksize=4096
Feb 20 09:04:17 mia-PC5 ntfs-3g[23879]: Global ownership and permissions enforced, configuration type 7
Feb 20 09:04:17 mia-PC5 systemd[1]: Started Clean the /media/mia/WD1 mount point.
Feb 20 09:04:17 mia-PC5 udisksd[1044]: Mounted /dev/sdc1 at /media/mia/WD1 on behalf of uid 1000
Feb 20 09:04:31 mia-PC5 anacron[22295]: Job `cron.monthly' started
Feb 20 09:04:31 mia-PC5 anacron[22295]: Job `cron.monthly' terminated
Feb 20 09:04:31 mia-PC5 anacron[22295]: Normal exit (3 jobs run)
Feb 20 09:04:31 mia-PC5 systemd[1]: Started Run anacron jobs.
Feb 20 09:04:31 mia-PC5 anacron[23924]: Anacron 2.3 started on 2020-02-20
Feb 20 09:04:31 mia-PC5 anacron[23924]: Normal exit (0 jobs run)
Feb 20 09:05:10 mia-PC5 systemd[1]: Reloading.
Feb 20 09:09:03 mia-PC5 smartd[32336]: Device: /dev/sda [SAT], SMART Usage Attribute: 190 Airflow_Temperature_Cel changed from 72 to 68
Feb 20 09:09:03 mia-PC5 smartd[32336]: Device: /dev/sda [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 28 to 32
Feb 20 09:09:03 mia-PC5 smartd[32336]: Device: /dev/sdb [SAT], SMART Usage Attribute: 190 Airflow_Temperature_Cel changed from 73 to 70
Feb 20 09:09:03 mia-PC5 smartd[32336]: Device: /dev/sdb [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 27 to 30
Feb 20 09:12:33 mia-PC5 gvfsd-metadata[2219]: g_udev_device_has_property: assertion 'G_UDEV_IS_DEVICE (device)' failed
Feb 20 09:12:33 mia-PC5 gvfsd-metadata[2219]: message repeated 7 times: [ g_udev_device_has_property: assertion 'G_UDEV_IS_DEVICE (device)' failed]
Feb 20 09:17:01 mia-PC5 CRON[24903]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Feb 20 09:21:21 mia-PC5 gnome-terminal-[4919]: g_menu_insert_item: assertion 'G_IS_MENU_ITEM (item)' failed
Feb 20 09:22:43 mia-PC5 crontab[25239]: (mia) LIST (mia)
Feb 20 09:23:38 mia-PC5 systemd-timesyncd[902]: Synchronized to time server [2001:67c:1560:8003::c7]:123 (ntp.ubuntu.com).
Feb 20 09:35:03 mia-PC5 freshclam[1630]: Thu Feb 20 09:35:03 2020 -> Received signal: wake up
Feb 20 09:35:03 mia-PC5 freshclam[1630]: Thu Feb 20 09:35:03 2020 -> ClamAV update process started at Thu Feb 20 09:35:03 2020
Feb 20 09:35:03 mia-PC5 freshclam[1630]: Thu Feb 20 09:35:03 2020 -> ^Your ClamAV installation is OUTDATED!
Feb 20 09:35:03 mia-PC5 freshclam[1630]: Thu Feb 20 09:35:03 2020 -> ^Local version: 0.102.1 Recommended version: 0.102.2
Feb 20 09:35:03 mia-PC5 freshclam[1630]: Thu Feb 20 09:35:03 2020 -> DON'T PANIC! Read https://www.clamav.net/documents/upgrading-clamav
Feb 20 09:35:03 mia-PC5 freshclam[1630]: Thu Feb 20 09:35:03 2020 -> daily.cld database is up to date (version: 25728, sigs: 2190240, f-level: 63, builder: raynman)
Feb 20 09:35:03 mia-PC5 freshclam[1630]: Thu Feb 20 09:35:03 2020 -> main.cld database is up to date (version: 59, sigs: 4564902, f-level: 60, builder: sigmgr)
Feb 20 09:35:03 mia-PC5 freshclam[1630]: Thu Feb 20 09:35:03 2020 -> bytecode.cvd database is up to date (version: 331, sigs: 94, f-level: 63, builder: anvilleg)
Feb 20 09:35:14 mia-PC5 clamd[1049]: Thu Feb 20 09:35:14 2020 -> SelfCheck: Database status OK.
Feb 20 09:35:33 mia-PC5 gnome-terminal-[4919]: g_menu_insert_item: assertion 'G_IS_MENU_ITEM (item)' failed
Feb 20 09:39:03 mia-PC5 smartd[32336]: Device: /dev/sda [SAT], SMART Usage Attribute: 190 Airflow_Temperature_Cel changed from 68 to 61
Feb 20 09:39:03 mia-PC5 smartd[32336]: Device: /dev/sda [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 32 to 39
Feb 20 09:39:03 mia-PC5 smartd[32336]: Device: /dev/sdb [SAT], SMART Usage Attribute: 190 Airflow_Temperature_Cel changed from 70 to 66
Feb 20 09:39:03 mia-PC5 smartd[32336]: Device: /dev/sdb [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 30 to 34
Feb 20 09:46:07 mia-PC5 systemd-resolved[904]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
Feb 20 09:46:07 mia-PC5 systemd-resolved[904]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.
Feb 20 09:50:10 mia-PC5 gnome-terminal-[4919]: g_menu_insert_item: assertion 'G_IS_MENU_ITEM (item)' failed
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: 4593740402: from=<mia@mia-PC5>, size=442, nrcpt=1 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: 4AFCB40404: from=<root@mia-PC5>, size=855, nrcpt=1 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: 4CC0540448: from=<root@mia-PC5>, size=860, nrcpt=1 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: 932E840417: from=<root@mia-PC5>, size=732, nrcpt=2 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: 9590040416: from=<root@mia-PC5>, size=855, nrcpt=1 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: 98B3F4043E: from=<mia@mia-PC5>, size=443, nrcpt=1 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: 9A82C4044C: from=<root@mia-PC5>, size=790, nrcpt=1 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: DC2C3403D7: from=<>, size=2911, nrcpt=1 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: DDF95403DB: from=<root@mia-PC5>, size=717, nrcpt=1 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: DA85740439: from=<>, size=2866, nrcpt=1 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: 85591403C3: from=<root@mia-PC5>, size=855, nrcpt=1 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: 8D7F94043C: from=<mia@mia-PC5>, size=366, nrcpt=1 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: 8DE7240414: from=<root@mia-PC5>, size=855, nrcpt=1 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: 829A0403CC: from=<root@mia-PC5>, size=732, nrcpt=2 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: 88BD940366: from=<>, size=2802, nrcpt=1 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: 6E19C40415: from=<root@mia-PC5>, size=732, nrcpt=2 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: F053C40429: from=<root@mia-PC5>, size=732, nrcpt=2 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: F0C1D403E0: from=<root@mia-PC5>, size=732, nrcpt=2 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: 2521B4042B: from=<root@mia-PC5>, size=732, nrcpt=2 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: 2C4264044D: from=<root@mia-PC5>, size=790, nrcpt=1 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: 206FF403C5: from=<>, size=2817, nrcpt=1 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: 25783403E1: from=<root@mia-PC5>, size=732, nrcpt=2 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: 2901B40405: from=<root@mia-PC5>, size=732, nrcpt=2 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: 27DFC4041F: from=<>, size=2881, nrcpt=1 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: 247D1403D1: from=<>, size=2832, nrcpt=1 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: 27B3C4042A: from=<root@mia-PC5>, size=855, nrcpt=1 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: AF97540451: from=<root@mia-PC5>, size=790, nrcpt=1 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: A83BC4043B: from=<mia@mia-PC5>, size=366, nrcpt=1 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: A083840365: from=<>, size=2866, nrcpt=1 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: AE82D40434: from=<mia@mia-PC5>, size=527, nrcpt=1 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: B435B40413: from=<mia@mia-PC5>, size=524, nrcpt=1 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: B248A40443: from=<root@mia-PC5>, size=734, nrcpt=2 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: B514640442: from=<root@mia-PC5>, size=859, nrcpt=1 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: BAD95403DA: from=<root@mia-PC5>, size=717, nrcpt=1 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: B058E40440: from=<root@mia-PC5>, size=859, nrcpt=1 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: B3E4840419: from=<mia@mia-PC5>, size=521, nrcpt=1 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: 7D70040450: from=<root@mia-PC5>, size=790, nrcpt=1 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: 77F8D40410: from=<root@mia-PC5>, size=855, nrcpt=1 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: 7CFF340441: from=<root@mia-PC5>, size=734, nrcpt=2 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: 7029F4040E: from=<root@mia-PC5>, size=855, nrcpt=1 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: 7C66F40367: from=<root@mia-PC5>, size=855, nrcpt=1 (queue active)
Feb 20 09:59:39 mia-PC5 postfix/qmgr[22694]: 75AA940411: from=<root@mia-PC5>, size=732, nrcpt=2 (queue active)
Feb 20 10:00:01 mia-PC5 CRON[27383]: (mia) CMD (/usr/bin/clamscan --exclude-dir=/home/mia/.clamtk/viruses --exclude-dir=smb4k --exclude-dir=/run/user/mia/gvfs --exclude-dir=/home/mia/.gvfs --exclude-dir=.thunderbird --exclude-dir=.mozilla-thunderbird --exclude-dir=.evolution --exclude-dir=Mail --exclude-dir=kmail -i  --detect-pua -r /home/mia --log="$HOME/.clamtk/history/$(date +%b-%d-%Y).log" 2>/dev/null # clamtk-scan)
Feb 20 10:00:09 mia-PC5 postfix/smtp[27352]: connect to mx00.gmx.net[212.227.15.10]:25: Connection timed out
Feb 20 10:00:09 mia-PC5 postfix/smtp[27357]: connect to mx00.gmx.net[212.227.15.10]:25: Connection timed out
Feb 20 10:00:09 mia-PC5 postfix/smtp[27354]: connect to mx00.gmx.net[212.227.15.10]:25: Connection timed out
Feb 20 10:00:09 mia-PC5 postfix/smtp[27353]: connect to mx00.gmx.net[212.227.15.10]:25: Connection timed out
Feb 20 10:00:09 mia-PC5 postfix/smtp[27356]: connect to mx00.gmx.net[212.227.15.10]:25: Connection timed out
Feb 20 10:00:09 mia-PC5 postfix/smtp[27358]: connect to gmail-smtp-in.l.google.com[173.194.79.27]:25: Connection timed out
Feb 20 10:00:09 mia-PC5 postfix/smtp[27361]: connect to gmail-smtp-in.l.google.com[2a00:1450:4013:c01::1a]:25: Connection timed out
Feb 20 10:00:09 mia-PC5 postfix/smtp[27360]: connect to gmail-smtp-in.l.google.com[173.194.79.27]:25: Connection timed out
Feb 20 10:00:09 mia-PC5 postfix/smtp[27359]: connect to gmail-smtp-in.l.google.com[173.194.79.27]:25: Connection timed out
Feb 20 10:00:09 mia-PC5 postfix/smtp[27355]: connect to gmail-smtp-in.l.google.com[173.194.79.27]:25: Connection timed out
Feb 20 10:00:39 mia-PC5 postfix/smtp[27356]: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out
Feb 20 10:00:39 mia-PC5 postfix/smtp[27352]: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out
Feb 20 10:00:39 mia-PC5 postfix/smtp[27356]: 9590040416: to=<xxx@gmx.fr>, orig_to=<root@mia-PC5>, relay=none, delay=239943, delays=239883/0.03/60/0, dsn=4.4.1, status=deferred (connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:00:39 mia-PC5 postfix/smtp[27352]: 4593740402: to=<xxx@gmx.fr>, orig_to=<root@mia-PC5>, relay=none, delay=254380, delays=254320/0.01/60/0, dsn=4.4.1, status=deferred (connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:00:39 mia-PC5 postfix/smtp[27357]: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out
Feb 20 10:00:39 mia-PC5 postfix/smtp[27357]: 98B3F4043E: to=<xxx@gmx.fr>, orig_to=<root@mia-PC5>, relay=none, delay=156297, delays=156237/0.04/60/0, dsn=4.4.1, status=deferred (connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:00:39 mia-PC5 postfix/smtp[27354]: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out
Feb 20 10:00:39 mia-PC5 postfix/smtp[27353]: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out
Feb 20 10:00:39 mia-PC5 postfix/smtp[27354]: 4CC0540448: to=<xxx@gmx.fr>, orig_to=<root@localhost>, relay=none, delay=73832, delays=73772/0.02/60/0, dsn=4.4.1, status=deferred (connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:00:39 mia-PC5 postfix/smtp[27353]: 4AFCB40404: to=<xxx@gmx.fr>, orig_to=<root@mia-PC5>, relay=none, delay=247995, delays=247935/0.01/60/0, dsn=4.4.1, status=deferred (connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:00:39 mia-PC5 postfix/error[27434]: 9A82C4044C: to=<xxx@gmx.fr>, orig_to=<root@mailslocaux.org>, relay=none, delay=71772, delays=71712/60/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:00:39 mia-PC5 postfix/error[27435]: DC2C3403D7: to=<xxx@gmx.fr>, orig_to=<root@mia-PC5>, relay=none, delay=73308, delays=73248/60/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:00:39 mia-PC5 postfix/error[27434]: 85591403C3: to=<xxx@gmx.fr>, orig_to=<root@mia-PC5>, relay=none, delay=237895, delays=237835/60/0/0.03, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:00:39 mia-PC5 postfix/error[27437]: DA85740439: to=<xxx@gmx.fr>, orig_to=<root@mia-PC5>, relay=none, delay=138982, delays=138922/60/0/0.03, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:00:39 mia-PC5 postfix/error[27443]: 27DFC4041F: to=<xxx@gmx.fr>, orig_to=<root@mia-PC5>, relay=none, delay=138983, delays=138923/60/0/0.02, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:00:39 mia-PC5 postfix/error[27435]: 8DE7240414: to=<xxx@gmx.fr>, orig_to=<root@mia-PC5>, relay=none, delay=239943, delays=239883/60/0/0.03, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:00:39 mia-PC5 postfix/error[27441]: 206FF403C5: to=<xxx@gmx.fr>, orig_to=<root@mia-PC5>, relay=none, delay=138983, delays=138923/60/0/0.02, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:00:39 mia-PC5 postfix/error[27438]: 88BD940366: to=<xxx@gmx.fr>, orig_to=<root@mia-PC5>, relay=none, delay=143183, delays=143123/60/0/0.03, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:00:39 mia-PC5 postfix/error[27439]: 2C4264044D: to=<xxx@gmx.fr>, orig_to=<root@mailslocaux.org>, relay=none, delay=71771, delays=71711/60/0/0.02, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:00:39 mia-PC5 postfix/error[27434]: 247D1403D1: to=<xxx@gmx.fr>, orig_to=<root@mia-PC5>, relay=none, delay=138983, delays=138923/60/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:00:39 mia-PC5 postfix/error[27437]: 27B3C4042A: to=<xxx@gmx.fr>, orig_to=<root@mia-PC5>, relay=none, delay=236150, delays=236090/60/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:00:39 mia-PC5 postfix/error[27438]: B514640442: to=<xxx@gmx.fr>, orig_to=<root@localhost>, relay=none, delay=83486, delays=83425/60/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:00:39 mia-PC5 postfix/error[27439]: B058E40440: to=xxx@gmx.fr>, orig_to=<root@localhost>, relay=none, delay=83486, delays=83425/60/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:00:39 mia-PC5 postfix/error[27443]: A083840365: to=<xxx@gmx.fr>, orig_to=<root@mia-PC5>, relay=none, delay=143033, delays=142973/60/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:00:39 mia-PC5 postfix/error[27435]: AE82D40434: to=<xxx@gmx.fr>, orig_to=<root@mailslocaux.org>, relay=none, delay=172749, delays=172688/60/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:00:39 mia-PC5 postfix/error[27441]: B435B40413: to=<xxx@gmx.fr>, orig_to=<root@localhost>, relay=none, delay=172628, delays=172567/60/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:00:39 mia-PC5 postfix/error[27446]: AF97540451: to=<xxx@gmx.fr>, orig_to=<root@mailslocaux.org>, relay=none, delay=71496, delays=71435/60/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:00:39 mia-PC5 postfix/error[27434]: 7D70040450: to=<xxx@gmx.fr>, orig_to=<root@mailslocaux.org>, relay=none, delay=71496, delays=71436/60/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:00:39 mia-PC5 postfix/error[27449]: 77F8D40410: to=<xxx@gmx.fr>, orig_to=<root@mia-PC5>, relay=none, delay=240076, delays=240016/60/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:00:39 mia-PC5 postfix/error[27437]: 7029F4040E: to=<xxx@gmx.fr>, orig_to=<root@mia-PC5>, relay=none, delay=240076, delays=240016/60/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:00:39 mia-PC5 postfix/error[27447]: B3E4840419: to=<xxx@gmx.fr>, orig_to=<root@localhost>, relay=none, delay=172599, delays=172538/60/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:00:39 mia-PC5 postfix/error[27451]: 7C66F40367: to=<xxx@gmx.fr>, orig_to=<root@mia-PC5>, relay=none, delay=237895, delays=237835/60/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:00:39 mia-PC5 postfix/smtp[27359]: connect to gmail-smtp-in.l.google.com[2a00:1450:4013:c01::1a]:25: Connection timed out
Feb 20 10:00:39 mia-PC5 postfix/smtp[27360]: connect to gmail-smtp-in.l.google.com[2a00:1450:4013:c01::1a]:25: Connection timed out
Feb 20 10:00:39 mia-PC5 postfix/smtp[27361]: connect to gmail-smtp-in.l.google.com[173.194.79.27]:25: Connection timed out
Feb 20 10:00:39 mia-PC5 postfix/smtp[27355]: connect to gmail-smtp-in.l.google.com[2a00:1450:4013:c01::1a]:25: Connection timed out
Feb 20 10:00:39 mia-PC5 postfix/smtp[27358]: connect to gmail-smtp-in.l.google.com[2a00:1450:4013:c01::1a]:25: Connection timed out
Feb 20 10:01:09 mia-PC5 postfix/smtp[27359]: connect to alt1.gmail-smtp-in.l.google.com[142.250.4.27]:25: Connection timed out
Feb 20 10:01:09 mia-PC5 postfix/smtp[27360]: connect to alt1.gmail-smtp-in.l.google.com[2404:6800:4003:c06::1a]:25: Connection timed out
Feb 20 10:01:09 mia-PC5 postfix/smtp[27361]: connect to alt1.gmail-smtp-in.l.google.com[142.250.4.27]:25: Connection timed out
Feb 20 10:01:09 mia-PC5 postfix/smtp[27355]: connect to alt1.gmail-smtp-in.l.google.com[2404:6800:4003:c06::1a]:25: Connection timed out
Feb 20 10:01:09 mia-PC5 postfix/smtp[27358]: connect to alt1.gmail-smtp-in.l.google.com[2404:6800:4003:c06::1a]:25: Connection timed out
Feb 20 10:01:39 mia-PC5 postfix/smtp[27359]: connect to alt1.gmail-smtp-in.l.google.com[2404:6800:4003:c06::1a]:25: Connection timed out
Feb 20 10:01:39 mia-PC5 postfix/smtp[27360]: connect to alt1.gmail-smtp-in.l.google.com[142.250.4.27]:25: Connection timed out
Feb 20 10:01:39 mia-PC5 postfix/smtp[27361]: connect to alt1.gmail-smtp-in.l.google.com[2404:6800:4003:c06::1a]:25: Connection timed out
Feb 20 10:01:39 mia-PC5 postfix/smtp[27358]: connect to alt1.gmail-smtp-in.l.google.com[142.250.4.27]:25: Connection timed out
Feb 20 10:01:39 mia-PC5 postfix/smtp[27355]: connect to alt1.gmail-smtp-in.l.google.com[142.250.4.27]:25: Connection timed out
Feb 20 10:02:09 mia-PC5 postfix/smtp[27360]: connect to alt2.gmail-smtp-in.l.google.com[108.177.97.27]:25: Connection timed out
Feb 20 10:02:09 mia-PC5 postfix/smtp[27359]: connect to alt2.gmail-smtp-in.l.google.com[108.177.97.27]:25: Connection timed out
Feb 20 10:02:09 mia-PC5 postfix/smtp[27360]: 829A0403CC: to=<xxx@gmail.com>, relay=none, delay=237985, delays=237835/0.06/150/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com[108.177.97.27]:25: Connection timed out)
Feb 20 10:02:09 mia-PC5 postfix/smtp[27359]: 8D7F94043C: to=<xxx@gmail.com>, relay=none, delay=157929, delays=157779/0.05/150/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com[108.177.97.27]:25: Connection timed out)
Feb 20 10:02:09 mia-PC5 postfix/smtp[27361]: connect to alt2.gmail-smtp-in.l.google.com[2404:6800:4008:c00::1b]:25: Connection timed out
Feb 20 10:02:09 mia-PC5 postfix/smtp[27358]: connect to alt2.gmail-smtp-in.l.google.com[108.177.97.27]:25: Connection timed out
Feb 20 10:02:09 mia-PC5 postfix/smtp[27355]: connect to alt2.gmail-smtp-in.l.google.com[108.177.97.27]:25: Connection timed out
Feb 20 10:02:09 mia-PC5 postfix/smtp[27361]: 6E19C40415: to=<xxx@gmail.com>, relay=none, delay=240033, delays=239883/0.06/150/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com[2404:6800:4008:c00::1b]:25: Connection timed out)
Feb 20 10:02:09 mia-PC5 postfix/smtp[27358]: DDF95403DB: to=<xxx@gmail.com>, relay=none, delay=418049, delays=417898/0.04/150/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com[108.177.97.27]:25: Connection timed out)
Feb 20 10:02:09 mia-PC5 postfix/smtp[27355]: 932E840417: to=<xxx@gmail.com>, relay=none, delay=240033, delays=239883/0.03/150/0, dsn=4.4.1, status=deferred (connect to alt2.gmail-smtp-in.l.google.com[108.177.97.27]:25: Connection timed out)
Feb 20 10:02:09 mia-PC5 postfix/error[27439]: F053C40429: to=<xxx@gmail.com>, relay=none, delay=236241, delays=236090/150/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[108.177.97.27]:25: Connection timed out)
Feb 20 10:02:09 mia-PC5 postfix/error[27449]: 25783403E1: to=<xxx@gmail.com>, relay=none, delay=345123, delays=344973/150/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[108.177.97.27]:25: Connection timed out)
Feb 20 10:02:09 mia-PC5 postfix/error[27443]: F0C1D403E0: to=<xxx@gmail.com>, relay=none, delay=345124, delays=344973/150/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[108.177.97.27]:25: Connection timed out)
Feb 20 10:02:09 mia-PC5 postfix/error[27446]: 2901B40405: to=<xxx@gmail.com>, relay=none, delay=248085, delays=247935/150/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[108.177.97.27]:25: Connection timed out)
Feb 20 10:02:09 mia-PC5 postfix/error[27435]: 2521B4042B: to=<xxx@gmail.com>, relay=none, delay=236240, delays=236090/150/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[108.177.97.27]:25: Connection timed out)
Feb 20 10:02:09 mia-PC5 postfix/error[27451]: A83BC4043B: to=<xxx@gmail.com>, relay=none, delay=157999, delays=157848/150/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[108.177.97.27]:25: Connection timed out)
Feb 20 10:02:09 mia-PC5 postfix/error[27434]: B248A40443: to=<xxx@gmail.com>, relay=none, delay=83576, delays=83425/150/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[108.177.97.27]:25: Connection timed out)
Feb 20 10:02:09 mia-PC5 postfix/error[27438]: BAD95403DA: to=<xxx@gmail.com>, relay=none, delay=418049, delays=417898/150/0/0.02, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[108.177.97.27]:25: Connection timed out)
Feb 20 10:02:09 mia-PC5 postfix/error[27441]: 7CFF340441: to=<xxx@gmail.com>, relay=none, delay=83576, delays=83426/150/0/0.02, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[108.177.97.27]:25: Connection timed out)
Feb 20 10:02:09 mia-PC5 postfix/error[27449]: 75AA940411: to=<xxx@gmail.com>, relay=none, delay=240166, delays=240016/150/0/0.02, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[108.177.97.27]:25: Connection timed out)
Feb 20 10:03:51 mia-PC5 systemd[1]: Started Run anacron jobs.
Feb 20 10:03:51 mia-PC5 anacron[27640]: Anacron 2.3 started on 2020-02-20
Feb 20 10:03:51 mia-PC5 anacron[27640]: Normal exit (0 jobs run)
Feb 20 10:04:39 mia-PC5 postfix/qmgr[22694]: 52EC340406: from=<root@mia-PC5>, size=855, nrcpt=1 (queue active)
Feb 20 10:04:39 mia-PC5 postfix/qmgr[22694]: 5DB29403C1: from=<root@mia-PC5>, size=732, nrcpt=2 (queue active)
Feb 20 10:04:39 mia-PC5 postfix/qmgr[22694]: 525374040F: from=<root@mia-PC5>, size=732, nrcpt=2 (queue active)
Feb 20 10:04:39 mia-PC5 postfix/qmgr[22694]: 507AF40407: from=<root@mia-PC5>, size=732, nrcpt=2 (queue active)
Feb 20 10:04:39 mia-PC5 postfix/qmgr[22694]: E016340430: from=<mia@mia-PC5>, size=442, nrcpt=1 (queue active)
Feb 20 10:04:39 mia-PC5 postfix/qmgr[22694]: 090D2403E8: from=<root@mia-PC5>, size=732, nrcpt=2 (queue active)
Feb 20 10:04:39 mia-PC5 postfix/qmgr[22694]: 1F43240428: from=<root@mia-PC5>, size=855, nrcpt=1 (queue active)
Feb 20 10:04:39 mia-PC5 postfix/qmgr[22694]: 10836403D6: from=<>, size=2911, nrcpt=1 (queue active)
Feb 20 10:04:39 mia-PC5 postfix/qmgr[22694]: 4790A4044A: from=<root@mia-PC5>, size=860, nrcpt=1 (queue active)
Feb 20 10:04:39 mia-PC5 postfix/qmgr[22694]: 333B4403E9: from=<root@mia-PC5>, size=732, nrcpt=2 (queue active)
Feb 20 10:04:39 mia-PC5 postfix/error[27691]: 52EC340406: to=<xxx@gmx.fr>, orig_to=<root@mia-PC5>, relay=none, delay=248235, delays=248235/0.01/0/0.02, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:04:39 mia-PC5 postfix/error[27694]: 525374040F: to=<xxx98@gmail.com>, relay=none, delay=240316, delays=240316/0.01/0/0.02, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[108.177.97.27]:25: Connection timed out)
Feb 20 10:04:39 mia-PC5 postfix/error[27698]: E016340430: to=<xxx@gmx.fr>, orig_to=<root@mia-PC5>, relay=none, delay=174235, delays=174235/0.02/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:04:39 mia-PC5 postfix/error[27696]: 507AF40407: to=<xxx@gmail.com>, relay=none, delay=248235, delays=248235/0.01/0/0.01, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[108.177.97.27]:25: Connection timed out)
Feb 20 10:04:39 mia-PC5 postfix/error[27692]: 5DB29403C1: to=<xxx@gmail.com>, relay=none, delay=238135, delays=238135/0.01/0/0.02, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[108.177.97.27]:25: Connection timed out)
Feb 20 10:04:39 mia-PC5 postfix/error[27691]: 090D2403E8: to=<xxx@gmail.com>, relay=none, delay=340670, delays=340670/0.02/0/0.11, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[108.177.97.27]:25: Connection timed out)
Feb 20 10:04:39 mia-PC5 postfix/error[27700]: 1F43240428: to=<xxx@gmx.fr>, orig_to=<root@mia-PC5>, relay=none, delay=236391, delays=236391/0.02/0/0.11, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:04:39 mia-PC5 postfix/error[27704]: 333B4403E9: to=<xxx@gmail.com>, relay=none, delay=340670, delays=340669/0.03/0/0.11, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[108.177.97.27]:25: Connection timed out)
Feb 20 10:04:39 mia-PC5 postfix/error[27702]: 10836403D6: to=<xxx@gmx.fr>, orig_to=<root@mia-PC5>, relay=none, delay=73399, delays=73399/0.02/0/0.11, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:04:39 mia-PC5 postfix/error[27694]: 4790A4044A: to=<xxx@gmx.fr>, orig_to=<root@localhost>, relay=none, delay=74073, delays=74072/0.03/0/0.11, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to mx01.gmx.net[212.227.17.4]:25: Connection timed out)
Feb 20 10:07:10 mia-PC5 NetworkManager[5184]: <info>  [1582189630.0354] connectivity: (wlx10feed1ba06f) timed out
Feb 20 10:07:10 mia-PC5 NetworkManager[5184]: <info>  [1582189630.0355] manager: NetworkManager state is now CONNECTED_SITE
Feb 20 10:07:10 mia-PC5 dbus-daemon[1016]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.430' (uid=0 pid=5184 comm="/usr/sbin/NetworkManager --no-daemon " label="unconfined")
Feb 20 10:07:10 mia-PC5 systemd[1]: Starting Network Manager Script Dispatcher Service...
Feb 20 10:07:10 mia-PC5 dbus-daemon[1016]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Feb 20 10:07:10 mia-PC5 nm-dispatcher: req:1 'connectivity-change': new request (1 scripts)
Feb 20 10:07:10 mia-PC5 nm-dispatcher: req:1 'connectivity-change': start running ordered scripts...
Feb 20 10:07:10 mia-PC5 systemd[1]: Started Network Manager Script Dispatcher Service.
Feb 20 10:09:03 mia-PC5 smartd[32336]: Device: /dev/sda [SAT], SMART Prefailure Attribute: 1 Raw_Read_Error_Rate changed from 117 to 118
Feb 20 10:09:03 mia-PC5 smartd[32336]: Device: /dev/sda [SAT], SMART Usage Attribute: 190 Airflow_Temperature_Cel changed from 61 to 60
Feb 20 10:09:03 mia-PC5 smartd[32336]: Device: /dev/sda [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 39 to 40
Feb 20 10:09:03 mia-PC5 smartd[32336]: Device: /dev/sdb [SAT], SMART Usage Attribute: 190 Airflow_Temperature_Cel changed from 66 to 65
Feb 20 10:09:03 mia-PC5 smartd[32336]: Device: /dev/sdb [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 34 to 35
Feb 20 10:09:59 mia-PC5 postfix/pickup[22695]: 235ED40456: uid=1000 from=<mia>
Feb 20 10:09:59 mia-PC5 postfix/cleanup[28011]: 235ED40456: message-id=<20200220090959.235ED40456@mailslocaux.org>
Feb 20 10:09:59 mia-PC5 postfix/qmgr[22694]: 235ED40456: from=<mia@mailslocaux.org>, size=1999, nrcpt=1 (queue active)
Feb 20 10:09:59 mia-PC5 postfix/local[28013]: 235ED40456: to=<mia@mailslocaux.org>, orig_to=<mia>, relay=local, delay=0.08, delays=0.05/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
Feb 20 10:09:59 mia-PC5 postfix/qmgr[22694]: 235ED40456: removed
Feb 20 10:11:40 mia-PC5 NetworkManager[5184]: <info>  [1582189900.3357] manager: NetworkManager state is now CONNECTED_GLOBAL
Feb 20 10:11:40 mia-PC5 dbus-daemon[1016]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.430' (uid=0 pid=5184 comm="/usr/sbin/NetworkManager --no-daemon " label="unconfined")
Feb 20 10:11:40 mia-PC5 systemd[1]: Starting Network Manager Script Dispatcher Service...
Feb 20 10:11:40 mia-PC5 dbus-daemon[1016]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Feb 20 10:11:40 mia-PC5 systemd[1]: Started Network Manager Script Dispatcher Service.
Feb 20 10:11:40 mia-PC5 nm-dispatcher: req:1 'connectivity-change': new request (1 scripts)
Feb 20 10:11:40 mia-PC5 nm-dispatcher: req:1 'connectivity-change': start running ordered scripts...
Feb 20 10:17:01 mia-PC5 CRON[28417]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)

Je vais être pas mal occupée les prochains jours, excusez-moi d'avance si je ne réponds pas rapidement.

Edit : je ne sais pas vous, mais j'ai un problème d'affichage avec les balises code : les lignes disparaissent quand j'utilise les ascenseurs

Dernière modification par Mia98 (Le 20/02/2020, à 12:11)

Hors ligne

#47 Le 20/02/2020, à 12:27

grandtoubab

Re : Smartmontools n'envoie pas les mails

j'ai déja explique le mail par Anacron

https://linux.die.net/man/8/anacronIf
If  a job generates any output on its standard output or standard error , the output is mailed to the user running Anacron (usually root), or to the address contained by the MAILTO environment variable in the crontab, if such exists. If the LOGNAME environment variable is set, it will be used as From: field.

Comme c'est root qui lance les tâches , par defaut la mail est envoyé à root, si le script produit un résultat , sinon si le script n'a rien à dire , bien evidemment il n'' y aura pas de mail

si tu veux que les mails arrive dans une autre boite tu mets MAILTO=toto@dugland.com dans /etc/anacrontab
https://linux.die.net/man/5/anacrontab
Donc le première chose à vérifier c'est que ton script produit un résultat quand il est lancé en ligne de commande
Exemple

/etc/cron.daily$ bash ze-test-kernel-installed
jeudi 20 février 2020, 11:31:31 (UTC+0100)
*********************************************************************************************
linux-image-4.19.0-8-amd64/stable,now 4.19.98-1 amd64  [installé]
linux-image-5.4.0-4-amd64/testing,unstable,now 5.4.19-1 amd64  [installé, automatique]
linux-image-amd64/testing,unstable,now 5.4.19-1 amd64  [installé]
*********************************************************************************************
linux-headers-4.19.0-8-amd64/stable,now 4.19.98-1 amd64  [installé]
linux-headers-5.4.0-4-amd64/testing,unstable,now 5.4.19-1 amd64  [installé]
linux-headers-amd64/testing,unstable,now 5.4.19-1 amd64  [installé]
*********************************************************************************************
linux-headers-4.19.0-8-common/stable,stable,now 4.19.98-1 all  [installé, automatique]
linux-headers-5.4.0-4-common/testing,testing,unstable,unstable,now 5.4.19-1 all  [installé, automatique]
*********************************************************************************************
jeudi 20 février 2020, 11:31:36 (UTC+0100)

le script

/etc/cron.weekly$ cat smartctl
#! /bin/bash
#set -e
/usr/sbin/smartctl -t short /dev/sda
/bin/sleep 180
/usr/sbin/smartctl -l selftest /dev/sda
/usr/sbin/smartctl -H /dev/sda
/usr/sbin/smartctl -x /dev/sda

produit ça

/etc/cron.weekly$ sudo bash smartctl
   

smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.0-4-amd64] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Short self-test routine immediately in off-line mode".
Drive command "Execute SMART Short self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 2 minutes for test to complete.
Test will complete after Thu Feb 20 11:37:42 2020 CET
Use smartctl -X to abort test.

=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%     14564     

........ et bla bla bla jusqu'à ................

ID      Size     Value  Description
0x0001  2            0  Command failed due to ICRC error
0x0002  2            0  R_ERR response for data FIS
0x0005  2            0  R_ERR response for non-data FIS
0x0009  2            3  Transition from drive PhyRdy to drive PhyNRdy
0x000a  2            2  Device-to-host register FISes sent due to a COMRESET
0x000b  2            0  CRC errors within host-to-device FIS
0x000d  2            0  Non-CRC errors within host-to-device FIS

Idem pour les balises, c'est le site Ubuntu qui doit merder


Pour le reste je ne me lasse pas de répeter que pour la gestion des mails  j'utilise exim et non pas postfix donc je ne peux pas aider pour ça
Voir avec un spécialiste de postfix

Dernière modification par grandtoubab (Le 20/02/2020, à 12:52)


Linux tout seul sur HP Pavilion DV7 et Acer Aspire T650, Canon MG3650 en wifi
Debian 11 Bullseye Gnome/Xorg, Gnome/Wayland avec SDDM
https://bidouilledebian.wordpress.com/
ON M'A VU DANS LE VERCORS, SAUTER A L'ELASTIQUE..... J'AI DANS LES BOTTES DES MONTAGNES DE QUESTIONS....

Hors ligne

#48 Le 20/02/2020, à 13:25

geole

Re : Smartmontools n'envoie pas les mails

grandtoubab a écrit :

Pour le reste je ne me lasse pas de répéter que pour la gestion des mails  j'utilise exim et non pas postfix donc je ne peux pas aider pour ça
Voir avec un spécialiste de postfix

Bonjour
En premier, il serait bon de  refaire la configuration avec cette commande car il est possible qu'il ne soit pas très bien paramétré.

sudo dpkg-reconfigure postfix

Dernière modification par geole (Le 20/02/2020, à 13:26)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#49 Le 20/02/2020, à 14:35

Mia98

Re : Smartmontools n'envoie pas les mails

@ grandtoubab

grandtoubab a écrit :

Comme c'est root qui lance les tâches , par defaut la mail est envoyé à root, si le script produit un résultat , sinon si le script n'a rien à dire , bien evidemment il n'' y aura pas de mail

J'ai bien compris que lors d'un test avec smartd on ne reçoit rien si pas de nouvelles erreurs.
Mais je pensais qu'avec ton script, on en recevait dans tous les cas :

grandtoutbab a écrit :

comme déjà dit ici https://forum.ubuntu-fr.org/viewtopic.php?id=2048254 avec le script dans anacron je reçis le rapport une fois par semaine.
Mais il s'agit d'un test hebdomadaire, pas d'un rapport de faute en temps réel

grandtoubab a écrit :

Pour le reste je ne me lasse pas de répéter que pour la gestion des mails  j'utilise exim et non pas postfix donc je ne peux pas aider pour ça

Je suis un peu perdue dans les logiciels de gestion de mail, il me semblait que pour les mails en interne c'était mailutils.

Merci pour le temps que tu as passé à m'aider, et pour ta patience envers une éternelle débutante.

@geole

Super, je me demandais bien comment retrouver cette fenêtre de configuration de Postfix !
Tu dois avoir raison, j'ai eu des doutes sur le paramétrage de ce fichier, si tu peux me dire où j'ai mal fait :

1582204444.png
1582204517.png
1582204558.png
1582204602.png
1582204636.png
1582204677.png
1582204717.png
1582204758.png
1582204758.png
1582204826.png
1582204893.png
1582204933.png
1582204978.png

Merci beaucoup

Hors ligne

#50 Le 20/02/2020, à 14:59

geole

Re : Smartmontools n'envoie pas les mails

Bonjour
Je ne peux pas te dire s'il y a des erreurs dans ce que tu as saisis. A priori, je n'en ai pas vu.
Je te transmets mon fichier de configuration que j'ai actualisé hier. Tu pourras comparer et voir s'il y a des différences majeures.
Il est aussi possible que le problème ne soit pas dans postfix. En effet, il me semble que maintenant tu reçois bien les  émails.
Nota: J'ai mis en XXX  certaines zones

etc/postfix$ cat main.cf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = no

# See http://www.postfix.org/COMPATIBILITY_README.html -- default to 2 on
# fresh installs.
compatibility_level = 2


mydestination = $myhostname, Courrier du micro portable, a, localhost.localdomain, localhost
relayhost = 
mynetworks = 127.0.0.1/32 xxxx.xxxx.xxxx.2/32 [::1]/128 [xxxx::xxxx:xxxx:xxxx:xxxx]/128
mailbox_size_limit = 0500000
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
a@a:/etc/postfix$ 

Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne