logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 03-06-2020 08:35:18

Anonyme
Invité

Conky avec info Smart

Bonjour,

Suite à mes déboires par rapport à mes diques durs, je suis en train d'intégrer smart "infos" dans mon conky.
Par manque de place et ne voulant qu'un seul et unique conky, j'aimerai savoir les infos les plus importantes à avoir sous l'oeil en permanence.
J'en ai déjà intégré quelques une.
Je reconnais que je ne pense pas souvent à vérifier l'état de santé des mes diques, mais je ne suis pas le seul, je pense.
Maintenant, j'ouvre souvent (trop à mon goût) l'utilitaire Disques et cette paranno devient chiante

Conky_Infos_Smart.png

Comme ça, c'est plus pratique. smile

.

Dernière modification par Anonyme (03-06-2020 08:35:59)

#2 03-06-2020 10:18:50

Croutons
Membre
Distrib. : Debian12
Noyau : Linux 6.1.0-13-amd64
(G)UI : Fluxbox(NakeDeb)
Inscription : 16-12-2016

Re : Conky avec info Smart

Une sauvegarde tu mettras en place Yoda1.gif
out.gif

-->les cahiers du debutant<--      WikiDF-->Découvrir les principales commandes Linux<-- 
L' expérience, c'est le nom que chacun donne à ses erreurs. Oscar Wilde

Hors ligne

#3 03-06-2020 10:32:44

Debian Alain
Membre
Lieu : Bretagne
Distrib. : sid (unstable) / bullseye (stable)
Noyau : Linux sid 6.4.0-3-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

Re : Conky avec info Smart

je pense que

- "read error rate"
- "seek error rate"

ne sont pas nécessaires à tout prix .  roll

par contre "reallocated sectors count " est très important .  tongue
c'est l'un des rares indicateurs importants sur le rapport de smartctl .  smile

tu nous communiquera ton script ? merci  big_smile

Dernière modification par Debian Alain (03-06-2020 11:26:00)

Hors ligne

#4 04-06-2020 07:06:17

Anonyme
Invité

Re : Conky avec info Smart

Debian Alain a écrit :

je pense que

- "read error rate"
- "seek error rate"

ne sont pas nécessaires à tout prix .  roll

par contre "reallocated sectors count " est très important .  tongue
c'est l'un des rares indicateurs importants sur le rapport de smartctl .  smile

tu nous communiquera ton script ? merci  big_smile



Merci Debian Alain wink

Ajouter à ton sudoers :


## Same thing without a password
TON_USER  ALL=NOPASSWD:/usr/sbin/hddtemp
TON_USER  ALL = NOPASSWD: /usr/sbin/smartctl
 



.conkyrc



conky.config = {
  alignment = 'top_middle',
  maximum_width = 1366,
  minimum_width = 300,
 
  gap_x = -650,
  gap_y = 75,
  border_inner_margin = 2,
  border_outer_margin = 8,
 
  stippled_borders = 1,
    border_width = 1,
   
 
 
  own_window = true,
    own_window_class = 'Conky',
    own_window_type = 'normal',
    own_window_transparent = false,
    own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
   
   
    double_buffer = true,

 
  short_units = true,
    format_human_readable = false,
    times_in_seconds = false,
  update_interval = 1,
  use_spacer = 'none',
  net_avg_samples = 1,
  cpu_avg_samples = 1,
  top_cpu_separate = false,

  use_xft = true,
  override_utf8_locale = true,

  draw_shades = true,
  draw_borders = false,
  draw_graph_borders = true,

  default_bar_width = 50,
    default_bar_height = 6,
  default_graph_width = 60,
    default_graph_height = 35,

  --own_window_colour = '73675F',
  own_window_colour = '1E1E1E',
  default_color = '5E5350',
  default_shade_color = '0F0F0F',
        color1 = '666666',
        color2 = '1793d0',

}

conky.text = [[
${voffset 0}
${font good times:style=Bold:size=14}${color A5968C}${alignc}${texeci 3600 date +%A | awk '{print toupper(substr($0,0,1))tolower(substr($0,2))}'} ${time %d %B %Y}
${image ~/.conky/images/intel.png -p 5,40}
${font good times:style=Bold:size=12}${color A5968C}${alignc -45}${execi 1000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*://' | sed -e 's/Intel//g' | uniq | cut -c 1-26}$color
${voffset 40}${offset 10}${font good times:style=Bold:size=14}${color A5968C}CPU$color${alignr 12}${exec sensors | grep 'CPU Temperature:' | awk '{print $3}' | cut -c2-3} °C $color
${offset 10}${font good times:style=Bold:size=14}${color A5968C}FAN$color${alignr 2}${exec sensors | grep 'CPU FAN Speed:' | awk '{print $4}'}${font Regular:style=Bold:size=12} Tr/min $color
${offset 10}${font good times:style=Bold:size=14}${color A5968C}Core 0$color${alignr 12}${exec sensors | grep 'Core 0' | awk '{print $3}' | cut -c2-3} °C $color
${offset 10}${font good times:style=Bold:size=14}${color A5968C}Core 1$color${alignr 12}${exec sensors | grep 'Core 1' | awk '{print $3}' | cut -c2-3} °C $color
${offset 10}${font good times:style=Bold:size=14}${color A5968C}Core 2$color${alignr 12}${exec sensors | grep 'Core 2' | awk '{print $3}' | cut -c2-3} °C $color
${offset 10}${font good times:style=Bold:size=14}${color A5968C}Core 3$color${alignr 12}${exec sensors | grep 'Core 3' | awk '{print $3}' | cut -c2-3} °C $color

${image ~/.conky/images/nvidia.png -p 0,250}
${offset 60}${font good times:style=Bold:size=14}${color A5968C}${exec nvidia-smi --query-gpu=gpu_name --format=csv,noheader,nounits}$color
${voffset 0}${alignr 60}${font good times:style=Bold:size=14}${exec nvidia-settings -q 'GPUCurrentFanSpeedRPM' | grep Attribute | cut -d ' ' -f 6 | cut -c 1-4 | tr -d '.'}${alignr 100}${font Regular:style=Bold:size=12}Tr/min
${font good times:style=Bold:size=14}${alignc}${execi 60 nvidia-settings -query [gpu:0]/GPUCoreTemp -t}${offset 5}°C
${voffset 10}${alignc}${execbar 20,220 nvidia-settings -query [gpu:0]/GPUCoreTemp -t}
${voffset 10}${font good times:style=Bold:size=16}${color A5968C}${alignc}HDD$color
${voffset 0}${font good times:style=Bold:size=14}${alignc}${execi 10 sudo hddtemp -n /dev/sda}${offset 5}°C
${voffset 10}${font good times:style=Bold:size=16}${color A5968C}${alignc}RAM$color
${offset 10}${color 595454}${font Matias:style=Bold:size=14}${goto 10}RAM${goto 280}${color}$memperc%\
${voffset 0}${goto 60}${if_match ${memperc} > 0}${color A5968C}${else}${color}${endif}${font :size=9}▩\
${if_match ${memperc} > 10}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 15}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 20}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 25}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 30}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 35}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 40}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 45}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 50}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 55}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 60}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 65}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 70}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 75}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 80}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 85}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 90}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} > 95}${color A5968C}${else}${color}${endif}▩\
${if_match ${memperc} == 100}${color A5968C}${else}${color}${endif}▩

${offset 10}${color 595454}${font Matias:style=Bold:size=14}${goto 10}SWAP${goto 280}${color}$swapperc%\
${voffset 0}${goto 60}${if_match ${swapperc} > 0}${color A5968C}${else}${color}${endif}${font :size=9}▩\
${if_match ${swapperc} > 10}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 15}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 20}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 25}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 30}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 35}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 40}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 45}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 50}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 55}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 60}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 65}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 70}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 75}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 80}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 85}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 90}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} > 95}${color A5968C}${else}${color}${endif}▩\
${if_match ${swapperc} == 100}${color A5968C}${else}${color}${endif}▩

${font good times:style=Bold:size=16}${color A5968C}${alignc}NET$color
${offset 10}${font Matias:style=Bold:size=14}${goto 10}${color 595454}Up: ${goto 280}${color}${upspeedf enp5s0}\
${voffset 0}${goto 60}${if_match ${upspeedf enp5s0} > 0}${color FF9042}${else}${color}${endif}${font :size=9}▩\
${if_match ${upspeedf enp5s0} > 10}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 15}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 20}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 25}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 30}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 35}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 40}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 45}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 50}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 55}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 60}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 65}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 70}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 75}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 80}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 85}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 90}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 95}${color FF9042}${else}${color}${endif}▩\
${if_match ${upspeedf enp5s0} > 100}${color FF9042}${else}${color}${endif}▩

${offset 10}${font Matias:style=Bold:size=14}${goto 10}${color 595454}Down: ${goto 280}${color}${downspeedf enp5s0}\
${voffset 0}${goto 60}${if_match ${downspeedf enp5s0} > 0}${color 8BC34A}${else}${color}${endif}${font :size=9}▩\
${if_match ${downspeedf enp5s0} > 50}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 100}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 125}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 150}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 175}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 200}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 225}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 250}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 275}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 300}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 350}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 400}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 450}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 500}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 600}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 700}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 800}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 850}${color 8BC34A}${else}${color}${endif}▩\
${if_match ${downspeedf enp5s0} > 900}${color 8BC34A}${else}${color}${endif}▩\
${voffset 10}
${color #8BC34A}${alignc}${font Matias:style=Bold:size=16} SMART INFOS :
${color #A5968C}${alignc}${font Matias:style=Bold:size=15}${execi 1800 sudo smartctl -a /dev/sda | grep "Model Family:" | awk '{print $0}'}
${voffset 10}${font Matias:style=Bold:size=14}${color}ID 01${alignc} Read Error Rate : ${color #8BC34A}${alignc -130}${execi 1800 sudo smartctl -a /dev/sda | grep Raw_Read_Error_Rate | awk '{print $10}'}
${color}ID 07${alignc} Seek Error Rate : ${color #8BC34A}${alignc -130}${execi 1800 sudo smartctl -a /dev/sda | grep Seek_Error_Rate | awk '{print $10}'}
${color}ID 195${alignc} Hardware ECC Recovered : ${color #8BC34A}${alignc -130}${execi 1800 sudo smartctl -a /dev/sda | grep Hardware_ECC_Recovered | awk '{print $10}'}
${voffset 10}${color}ID 05${alignc} Reallocated Sectors Count : ${color #8BC34A}${alignc -130}${execi 1800 sudo smartctl -a /dev/sda | grep Reallocated_Sector_Ct | awk '{print $10}'}
${color}ID 196${alignc} Reallocation Event Count : ${color #8BC34A}${alignc -130}${execi 1800 sudo smartctl -a /dev/sda | grep Reallocated_Event_Count | awk '{print $10}'}
${voffset 10}${color}ID 199${alignc} UltraDMA CRC Error Count : ${color #8BC34A}${alignc -130}${execi 1800 sudo smartctl -a /dev/sda | grep UDMA_CRC_Error_Count | awk '{print $10}'}
${voffset 0}${font}
]];
 



Ce script est pas mal aussi pour tout les diques présent:


for i in /dev/[sh]d[abcdefghijklmnopqrstuvwxyz]; do echo "=== Disque Dur: $i ==="; sudo smartctl -a $i | awk '/ID#|Raw_Read_Error_Rate|Throughput_Performance|Reallocated_Sector_Ct|Seek_Error_Rate|Seek_Time_Performance|Spin_Retry_Count|Reallocated_Event_Count|Current_Pending_Sector|Offline_Uncorrectable|UDMA_CRC_Error_Count/ { print $0 }'; done;
 

Dernière modification par Anonyme (04-06-2020 07:16:47)

#5 04-06-2020 08:23:59

Debian Alain
Membre
Lieu : Bretagne
Distrib. : sid (unstable) / bullseye (stable)
Noyau : Linux sid 6.4.0-3-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

Re : Conky avec info Smart

Anonyme, voilà mon travail .

donne moi ton avis :

sudo visudo


... / ...
## Same thing without a password
alain  ALL=NOPASSWD: /usr/sbin/hddtemp
alain  ALL=NOPASSWD: /usr/sbin/smartctl
alain  ALL=NOPASSWD: /usr/sbin/fdisk
 



sudo gedit /etc/conky/conky.conf


... / ...
$hr
${alignc}-- Reallocated_Sector_Ct / Current_Pending_Sector --

sda : ${execi 10 lsblk -f /dev/sda | grep "sda1" | awk '{print $4}'} : ${execi 10 sudo fdisk -l /dev/sda | grep -iE "Modèle de disque :" | awk '{print $NF}'}  ${alignc}${execi 10 sudo smartctl -a /dev/sda | grep "5 Reallocated_Sector_Ct" | awk '{print $10}'} / ${execi 10 sudo smartctl -a /dev/sda | grep "197 Current_Pending_Sector" | awk '{print $10}'}
sdb : ${execi 10 lsblk -f /dev/sdb | grep "sdb1" | awk '{print $4}'} : ${execi 10 sudo fdisk -l /dev/sdb | grep -iE "Modèle de disque :" | awk '{print $NF}'}  ${alignc}${execi 10 sudo smartctl -a /dev/sdb | grep "5 Reallocated_Sector_Ct" | awk '{print $10}'} / ${execi 10 sudo smartctl -a /dev/sdb | grep "197 Current_Pending_Sector" | awk '{print $10}'}
sdc : ${execi 10 lsblk -f /dev/sdc | grep "sdc1" | awk '{print $4}'} : ${execi 10 sudo fdisk -l /dev/sdc | grep -iE "Modèle de disque :" | awk '{print $NF}'}  ${alignc}${execi 10 sudo smartctl -a /dev/sdc | grep "5 Reallocated_Sector_Ct" | awk '{print $10}'} / ${execi 10 sudo smartctl -a /dev/sdc | grep "197 Current_Pending_Sector" | awk '{print $10}'}
sdd : ${execi 10 lsblk -f /dev/sdd | grep "sdd1" | awk '{print $4}'} : ${execi 10 sudo fdisk -l /dev/sdd | grep -iE "Modèle de disque :" | awk '{print $NF}'}  ${alignc}${execi 10 sudo smartctl -a /dev/sdd | grep "5 Reallocated_Sector_Ct" | awk '{print $10}'} / ${execi 10 sudo smartctl -a /dev/sdd | grep "197 Current_Pending_Sector" | awk '{print $10}'}
sde : ${execi 10 lsblk -f /dev/sde | grep "sde1" | awk '{print $4}'} : ${execi 10 sudo fdisk -l /dev/sde | grep -iE "Modèle de disque :" | awk '{print $NF}'}  ${alignc}${execi 10 sudo smartctl -a /dev/sde | grep "5 Reallocated_Sector_Ct" | awk '{print $10}'} / ${execi 10 sudo smartctl -a /dev/sde | grep "197 Current_Pending_Sector" | awk '{print $10}'}

SSD : D. Units Read: / D. Units Written: / % Used:

${alignc} ${execi 10 sudo smartctl -a /dev/nvme0n1 | grep "Model Number:" | awk '{print $NF}'} : ${alignc}${execi 10 sudo smartctl -a /dev/nvme0n1 | grep "Data Units Read:" | awk '{print $5}' | grep -o [0-9]*} GB / ${execi 10 sudo smartctl -a /dev/nvme0n1 | grep "Data Units Written:" | awk '{print $5}'| grep -o [0-9]*} GB / ${execi 10 sudo smartctl -a /dev/nvme0n1 | grep "Percentage Used:" | awk '{print $NF}'| grep -o [0-9]*} %
... / ...
 



8zW1bGw.png

Dernière modification par Debian Alain (08-06-2020 15:17:15)

Hors ligne

#6 20-06-2020 19:27:39

Anonyme
Invité

Re : Conky avec info Smart

Avoir les infos SMART dans un conky peuvent être génantes quand on visionne une vidéo. Micro bloquage du visionnage de 1 à 2 secondes lors du rafraichissement des infos.

Dernière modification par Anonyme (20-06-2020 19:35:14)

#7 20-06-2020 19:42:28

Debian Alain
Membre
Lieu : Bretagne
Distrib. : sid (unstable) / bullseye (stable)
Noyau : Linux sid 6.4.0-3-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

Re : Conky avec info Smart

veux bien Anonyme , tu l'as remarqué  ?
dans quel cas de figure ?
parce que moi , jusqu'ici , tout est ok  ...

Hors ligne

#8 20-06-2020 20:02:26

Anonyme
Invité

Re : Conky avec info Smart

@Debian Alain

Il faut regarder un film sans le lacher une seconde du regard. (Pas toujours évident) wink

Toi, tu as un SSD, non ?
Si oui, ça peut peut-être faire la différence.

Dernière modification par Anonyme (20-06-2020 20:11:31)

#9 20-06-2020 20:16:02

Debian Alain
Membre
Lieu : Bretagne
Distrib. : sid (unstable) / bullseye (stable)
Noyau : Linux sid 6.4.0-3-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

Re : Conky avec info Smart

Il faut regarder un film sans le lacher une seconde du regard. (Pas toujours évident)


Toi, tu as unSSD, non ?


euuh , oui .

en effet , çà doit jouer .

je regarde souvent la t.v. en streaming , pas encore remarqué .

pour les videos sur hdd , pas remarqué non plus mais pas vraiment cherché .

Hors ligne

#10 20-06-2020 20:22:35

Anonyme
Invité

Re : Conky avec info Smart

Enfin, si ça t'arrive, ne cherche pas trop loin comme moi. Ce petit problème n'est pas facile à isoler. (à cibler)
Je n'ai rien trouvé dans les logs.
Le seul truc qui m'a permis de trouver, c'est que mpv comme mplayer me faisaient la même chose avec des configuration bien différente. wink

Je n'ai rien constaté par contre au niveau du streaming, mais vu la connection foireuse que j'ai, c'est pas étonnant.

Dernière modification par Anonyme (20-06-2020 20:28:36)

#11 20-06-2020 21:00:22

Debian Alain
Membre
Lieu : Bretagne
Distrib. : sid (unstable) / bullseye (stable)
Noyau : Linux sid 6.4.0-3-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

Re : Conky avec info Smart

je sais pas si çà peut t'aider , Anonyme , essayé sur les clips suivants :

testé avec les videos clips suivants (sur hdd) .

sudo smartctl -i  /dev/sdb


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

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Green
Device Model:     WDC WD20EARX-00PASB0
Serial Number:    WD-WCAZAC460461
LU WWN Device Id: 5 0014ee 25bc0c13d
Firmware Version: 51.0AB51
User Capacity:    2000398934016 bytes [2,00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ATA8-ACS (minor revision not indicated)
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Sat Jun 20 21:57:52 2020 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
 



-- Era - Come Into My World --
CKvSL0y.png
-- Albinoni - Adagio in G minor [Violin & Organ] --
4GgAAuN.png
-- Helene Segara - les vallees d`irlande --
ksG6JmW.png
-- Scatman (ski-ba-bop-ba-dop-bop) Official Video HD -Scatman John --
ksG6JmW.png

rien remarqué de particulier .

pas encore essayé avec un film .

Hors ligne

#12 21-06-2020 10:58:31

Debian Alain
Membre
Lieu : Bretagne
Distrib. : sid (unstable) / bullseye (stable)
Noyau : Linux sid 6.4.0-3-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

Re : Conky avec info Smart

légèrement modifié mon conky .

voilà une partie :

$hr
${alignc}Reallocated_Sector_Ct     hdparm -t (MB/Sec.)

sda : ${execi 60 lsblk -f /dev/sda | grep "sda1" | awk '{print $4}'} ${goto 175}: ${execi 60 sudo smartctl -a  /dev/sda | grep -iE "Device Model:" | awk '{print $NF}'}  ${goto 390}${execi 60 sudo smartctl -a /dev/sda | grep "5 Reallocated_Sector_Ct" | awk '{print $10}'} ${execi 60 sudo hdparm -t /dev/sda | grep "Timing buffered disk reads:" | awk '{print $11}'}
sdb : ${execi 60 lsblk -f /dev/sdb | grep "sdb1" | awk '{print $4}'} ${goto 175}: ${execi 60 sudo smartctl -a  /dev/sdb | grep -iE "Device Model:" | awk '{print $NF}'}  ${goto 390}${execi 60 sudo smartctl -a /dev/sdb | grep "5 Reallocated_Sector_Ct" | awk '{print $10}'} ${execi 60 sudo hdparm -t /dev/sdb | grep "Timing buffered disk reads:" | awk '{print $11}'}
sdc : ${execi 60 lsblk -f /dev/sdc | grep "sdc1" | awk '{print $4}'} ${goto 175}: ${execi 60 sudo smartctl -a  /dev/sdc | grep -iE "Device Model:" | awk '{print $NF}'}  ${goto 390}${execi 60 sudo smartctl -a /dev/sdc | grep "5 Reallocated_Sector_Ct" | awk '{print $10}'} ${execi 60 sudo hdparm -t /dev/sdc | grep "Timing buffered disk reads:" | awk '{print $11}'}
sdd : ${execi 60 lsblk -f /dev/sdd | grep "sdd1" | awk '{print $4}'} ${goto 175}: ${execi 60 sudo smartctl -a  /dev/sdd | grep -iE "Device Model:" | awk '{print $NF}'}  ${goto 390}${execi 60 sudo smartctl -a /dev/sdd | grep "5 Reallocated_Sector_Ct" | awk '{print $10}'} ${execi 60 sudo hdparm -t /dev/sdd | grep "Timing buffered disk reads:" | awk '{print $11}'}
sde : ${execi 60 lsblk -f /dev/sde | grep "sde1" | awk '{print $4}'} ${goto 175}: ${execi 60 sudo smartctl -a  /dev/sde | grep -iE "Device Model:" | awk '{print $NF}'}  ${goto 390}${execi 60 sudo smartctl -a /dev/sde | grep "5 Reallocated_Sector_Ct" | awk '{print $10}'} ${execi 60 sudo hdparm -t /dev/sde | grep "Timing buffered disk reads:" | awk '{print $11}'}



KVNWHGJ.png

Dernière modification par Debian Alain (21-06-2020 11:05:58)

Hors ligne

Pied de page des forums