Table des matières

, , ,

Notes atop

http://www.atoptool.nl/

Voir aussi :

Source http://ghichepcanhan.com/2014/05/03/linux-basics-monitor-system-resources-and-processes-using-atop/

atop -r -b 12:00
atop -r 20160712 -b 20:30
atopsar -A -b 13:00 -e 13:35

Hier (Yesterday)

atop -r y

Avant-hier

atop -r yy

Fichier texte avec conso CPU et commandes lancées

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

#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

interval 5

Installation à partir des sources avec Netatop

Installation des dépendances pour Atop

sudo apt-get build-dep atop
sudo apt-get install linux-headers-amd64

Dépendance pour Netatop :

apt-get install zlib1g-dev
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''
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

update-rc.d netatop defaults

Si SystemD

systemctl enable netatop

Netatop sert pour monitorer la bande passante. Nous tester

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

systemd-cgtop