{{tag>Brouillon top IO mem}} # Notes atop http://www.atoptool.nl/ Voir aussi : * [Sysdig](https://www.system-linux.eu/index.php?post/2018/10/25/Sysdig) * [[notes sysstat]] / sar * systemd-cgtop * tload (procps) * btop * powertop * Réseau : vnstat, iptraf-ng, nethogs, nload, bwm-ng Source http://ghichepcanhan.com/2014/05/03/linux-basics-monitor-system-resources-and-processes-using-atop/ ~~~bash atop -r -b 12:00 atop -r 20160712 -b 20:30 atopsar -A -b 13:00 -e 13:35 ~~~ Hier //(Yesterday)// ~~~bash atop -r y ~~~ Avant-hier ~~~bash atop -r yy ~~~ Fichier texte avec conso CPU et commandes lancées ~~~bash atop -r 20240209 -c -b 10:00 -e 10:10 | tee cpu.log ~~~ ## Configuration Atop enregistre la table des process par défaut toutes les 10 minutes. `/etc/atop/atop.daily` ~~~bash #INTERVAL=600 # interval 10 minutes INTERVAL=60 ~~~ A ne pas confondre avec intervalle défini pour le mode interactif, qui est de 10 seconds par défaut. Il est possible de le changer en créer un fichier atoprc. `/etc/atoprc` ~~~bash interval 5 ~~~ ## Installation à partir des sources avec Netatop Installation des dépendances pour Atop ~~~bash sudo apt-get build-dep atop sudo apt-get install linux-headers-amd64 ~~~ Dépendance pour Netatop : ~~~bash apt-get install zlib1g-dev ~~~ ~~~bash wget http://www.atoptool.nl/download/atop-2.2-3.tar.gz tar xzvf atop-2.2-3.tar.gz cd atop-2.2-3/ `make systemdinstall` ou `make sysvinstall` ~~~ ~~~bash wget http://www.atoptool.nl/download/netatop-0.6.tar.gz tar xzvf netatop-0.6.tar.gz cd netatop-0.6/ make make install service netatop start ~~~ Si Init ~~~bash update-rc.d netatop defaults ~~~ Si SystemD ~~~bash systemctl enable netatop ~~~ Netatop sert pour monitorer la bande passante. Nous tester ~~~bash atop ~~~ Puis `n` comme network. ## Utilisation m : memory a : All process / Only active process U apache : Utilisateur **apache** uniquement u : Conso par utilisateur(s) ----- ## Autre outil monitoring ~~~bash systemd-cgtop ~~~