informatique:linux:monitoring_linux
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| informatique:linux:monitoring_linux [2015/09/08 06:32] – pteu | informatique:linux:monitoring_linux [2025/01/17 13:59] (current) – pteu | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ======Monitoring | + | ======Monitoring, diagnostique, benchmark====== |
| //sous Linux// | //sous Linux// | ||
| Line 17: | Line 17: | ||
| Dans le même genre que saidar, en plus détaillé. | Dans le même genre que saidar, en plus détaillé. | ||
| + | ====neofetch==== | ||
| + | |||
| + | Affiche un résumé des informations système : | ||
| + | <code bash> | ||
| + | $ neofetch | ||
| + | | ||
| + | , | ||
| + | , | ||
| + | , | ||
| + | ', | ||
| + | `d$$' | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | `Y$$ | ||
| + | `Y$$. | ||
| + | `$$b. | ||
| + | | ||
| + | `" | ||
| + | `""" | ||
| + | </ | ||
| + | |||
| + | ====inxi==== | ||
| + | |||
| + | A l' | ||
| + | <code bash> | ||
| + | $ inxi -F | ||
| + | System: | ||
| + | Machine: | ||
| + | v: MTCDT10N.86A.0165.2013.0114.1540 date: 01/14/2013 | ||
| + | CPU: | ||
| + | | ||
| + | Graphics: | ||
| + | | ||
| + | | ||
| + | Audio: | ||
| + | Network: | ||
| + | IF: eno0 state: up speed: 100 Mbps duplex: full mac: 00: | ||
| + | | ||
| + | Drives: | ||
| + | ID-1: /dev/sda vendor: Toshiba model: DT01ACA050 size: 465.76 GiB | ||
| + | Partition: ID-1: / size: 19.10 GiB used: 4.33 GiB (22.7%) fs: ext4 dev: /dev/sda2 | ||
| + | ID-2: /boot size: 486.8 MiB used: 171.6 MiB (35.2%) fs: ext4 dev: /dev/sda1 | ||
| + | ID-3: /home size: 438.12 GiB used: 247.96 GiB (56.6%) fs: ext4 dev: /dev/sda3 | ||
| + | ID-4: swap-1 size: 511.0 MiB used: 76.0 MiB (14.9%) fs: swap dev: /dev/sda4 | ||
| + | Sensors: | ||
| + | Info: Processes: 128 Uptime: 28d 6h 37m Memory: 1.93 GiB used: 415.9 MiB (21.0%) Init: systemd runlevel: 5 | ||
| + | | ||
| + | </ | ||
| =====Processus===== | =====Processus===== | ||
| Line 23: | Line 74: | ||
| <code bash> | <code bash> | ||
| htop | htop | ||
| + | </ | ||
| + | |||
| + | ====btop==== | ||
| + | [[https:// | ||
| + | |||
| + | Marche aussi parfaitement sous MacOS avec [[https:// | ||
| + | |||
| + | {{ : | ||
| + | ====pidstat==== | ||
| + | |||
| + | **pidstat** affiche l' | ||
| + | <code bash> | ||
| + | # " | ||
| + | pidstat -d -l 1 30 | ||
| + | </ | ||
| + | |||
| + | ====ps==== | ||
| + | |||
| + | <code bash> | ||
| + | # lister les processus bloqués en state=D (Disk sleep (uninterruptible)) | ||
| + | for x in `seq 1 1 10`; do ps -eo state, | ||
| </ | </ | ||
| Line 57: | Line 129: | ||
| ====ntop==== | ====ntop==== | ||
| + | |||
| + | ====tcpdump==== | ||
| + | |||
| + | Outil indispensable pour le diagnostique réseau, [[informatique: | ||
| ====vnstat==== | ====vnstat==== | ||
| + | ====zmap==== | ||
| + | |||
| + | https:// | ||
| + | |||
| + | =====System===== | ||
| + | |||
| + | ====lm-sensors==== | ||
| + | |||
| + | Permet d' | ||
| + | <code bash> | ||
| + | apt install -y lm-sensors | ||
| + | |||
| + | sensors | ||
| + | </ | ||
| + | |||
| + | ====mpstat==== | ||
| + | |||
| + | <code bash> | ||
| + | mpstat -P ALL 5 | ||
| + | Linux 3.10.0-514.26.2.el7.x86_64 (ldri601z) 02/08/2018 _x86_64_ (8 CPU) | ||
| + | 10: | ||
| + | 10: | ||
| + | 10: | ||
| + | 10: | ||
| + | 10: | ||
| + | 10: | ||
| + | 10: | ||
| + | 10: | ||
| + | 10: | ||
| + | 10: | ||
| + | [..] | ||
| + | </ | ||
| + | |||
| + | ====powertop==== | ||
| + | |||
| + | powertop permet d' | ||
| + | <code bash> | ||
| + | apt install powertop | ||
| + | |||
| + | # appliquer les recommandations de configuration (attention : peut être disruptif) | ||
| + | powertop --auto-tune | ||
| + | </ | ||
| + | |||
| + | ====vmstat==== | ||
| + | |||
| + | <code bash> | ||
| + | vmstat 1 | ||
| + | procs -----------memory------------ | ||
| + | | ||
| + | | ||
| + | | ||
| + | | ||
| + | </ | ||
| + | La première ligne n'est pas à prendre en compte puisqu' | ||
| + | |||
| + | Ici on voit un fort %age d' | ||
| =====IO===== | =====IO===== | ||
| + | |||
| + | Voir les stats d'IO d'un processus : '' | ||
| + | |||
| + | ====iostat==== | ||
| + | |||
| + | <code bash> | ||
| + | iostat -x 2 5 | ||
| + | Device: | ||
| + | sda | ||
| + | sdb | ||
| + | sdc | ||
| + | </ | ||
| ====iotop==== | ====iotop==== | ||
| + | |||
| <code bash> | <code bash> | ||
| iotop -p PID -k | iotop -p PID -k | ||
| + | |||
| + | # afficher le cumul des IO des processus actifs | ||
| + | iotop -oa | ||
| </ | </ | ||
| Line 85: | Line 233: | ||
| dnstop -4 eth0 | dnstop -4 eth0 | ||
| </ | </ | ||
| + | |||
| + | |||
| + | =====Benchmark===== | ||
| + | |||
| + | ====s-tui==== | ||
| + | |||
| + | **s-tui** est une interface à utiliser pour monitorer et, si le logiciel **stress** est installé, lancer un stress-test de la CPU depuis la même interface graphique. | ||
| + | <code bash> | ||
| + | apt install -y s-tui stress | ||
| + | </ | ||
| + | |||
| + | ====sysbench==== | ||
| + | |||
| + | |||
| + | =====Liens utiles===== | ||
| + | |||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | |||
informatique/linux/monitoring_linux.1441693927.txt.gz · Last modified: 2015/09/08 06:32 by pteu