Monit
De Banane Atomic
Aller à la navigationAller à la recherche
Installation
sudo pacman -S monit sudo systemctl enable monit.service sudo systemctl start monit.service |
Configuration
/etc/monitrc |
# inclure d'autres fichiers de configuration include /etc/monit.d/* |
Log
/etc/monitrc |
# syslog set logfile syslog facility log_daemon # dans un fichier set logfile /var/log/monit.log |
Web access
/etc/monitrc |
set httpd port 2812 # définit le port d’accès use address localhost # définit l'adresse d'écoute allow localhost # allow localhost to connect to the server allow x.x.x.x # allow ip to connect to the server allow admin:monit # require user 'admin' with password 'monit' allow @monit # allow users of group 'monit' to connect (rw) allow @users readonly # allow users of group 'users' to connect readonly |
nginx
/etc/nginx/nginx.conf |
server { listen 80; server_name monit.domain.fr; location / { proxy_pass http://127.0.0.1:2812; proxy_set_header Host $host; } } |
Espace disque
/etc/monitrc |
check filesystem root with path / if space usage > 90% then alert |