logwatch
Ceci est une ancienne révision du document !
Table des matières
Surveillance des log (logwatch)
Présentation
logwatch est un logiciel qui permet de recevoir par mail des informations sur le serveur. Ces informations sont issues de l'analyse des log.
Installation
root@mazarini:~# apt-get install logwatch
Configuration
/var/cache/logwatch
Création du répertoire s'il n'existe pas.
root@mazarini:~# sudo mkdir -p /var/cache/logwatch root@mazarini:~# ls -l /var/cache/logwatch total 0 root@mazarini:~#
/etc/logwatch/conf/logwatch.conf
Commandes
Gestion du daemon
root@mazarini:~# /etc/init.d/ntp stop root@mazarini:~# /etc/init.d/ntp start root@mazarini:~# /etc/init.d/ntp restart
Interrogation
# ntpq -p remote refid st t when poll reach delay offset jitter ============================================================================== gw-01.darksky.i 213.251.128.249 2 u 48 64 1 4.463 2.915 0.000 ns0.luns.net.uk 158.43.192.66 2 u 47 64 1 22.373 -0.584 0.000 62-210-28-176.r 84.255.209.79 4 u 46 64 1 0.452 -0.475 0.000 ntp-2.arkena.ne 193.190.230.65 2 u 45 64 1 0.916 0.336 0.000 ntp1.online.net 145.238.203.14 2 u 44 64 1 0.293 2.246 0.000 #
Références
- Choix du pool de serveurs
logwatch.1604611288.txt.gz · Dernière modification : 2023/07/04 10:55 (modification externe)