linux:server-load-history
Ceci est une ancienne révision du document !
Table des matières
Historique de charge serveur dans une page web
Voici une combinaison s'un script shell, et une page web avec la librairie javascript Dygraph pour suivre la charge serveur.
Script
#!/bin/bash TIMESTAMP=`date +"%Y-%m-%d %T"` #echo $TIMESTAMP LOAD=`cat /proc/loadavg | awk '{print $1","$2","$3}'` #echo $LOAD LINE=$TIMESTAMP","$LOAD echo $LINE >> /var/www/load.log
Page web
linux/server-load-history.1487275303.txt.gz · Dernière modification : 2020/07/24 22:03 (modification externe)