Linux Debian Logs

De FroggDev - Fr
Aller à : navigation, rechercher

/etc/rsyslog.conf

log que les erreurs et avertissements

  • nano /etc/rsyslog.conf
auth.*,authpriv.*                                       /var/log/auth.log
*.warn,*.err,*.crit,*.alert,*.emerg                     /var/log/syslog
daemon.warn,daemon.err,daemon.alert,daemon.emerg        /var/log/daemon.log
kern.warn,kern.err,kern.crit,kern.alert,kern.emerg      /var/log/kern.log
lpr.warn , lpr.err, lpr.crit, lpr.alert,lpr.emerg       /var/log/lpr.log
mail.warn,mail.err,mail.crit,mail.alert,mail.emerg      /var/log/mail.log
user.warn,user.err,user.crit,user.alert,user.emerg      /var/log/user.log
news.warn,news.err,news.crit,news.alert,news.emerg      /var/log/news.log
cron.warn,cron.err,cron.crit,cron.alert,cron.emerg      /var/log/cron.log
  • afficher les logs
journalctl -b -p 3 #number is log level from 1 to 7

Erreur dans les logs

  • message d'erreur dans in syslog
[Warning] Using unique option prefix key_buffer instead of key_buffer_size is deprecated and will be removed in a future
[Warning] Using unique option prefix myisam-recover instead of myisam-recover-options is deprecated and will be removed in a future	

changer key_buffer par key_buffer_size et myisam-recover par myisam-recover-options dans my.cnf

  • message d'erreur dans in syslog
/usr/sbin/irqbalance: Balancing is ineffective on systems with a single cache domain.  Shutting down

desactiver irqbalance mettre ENABLED=0 dans /etc/default/irqbalance

http://askubuntu.com/questions/17806/how-do-i-disable-irqbalance

  • message d'erreur dans user.log
 Oct 23 14:18:21 froggdebian vmsvc[510]: [ warning] [guestinfo] RecordRoutingInfo: Unable to collect IPv4 routing table.

ajouter rtc.diffFromUTC=0 au fichier .vmx de la machine virtuel (dans l'esx)

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2048572

  • message d'erreur dans user.log
Oct 23 19:28:01 froggdebian vmsvc[511]: [ warning] [guestinfo] RecordRoutingInfo: Unable to collect IPv4 routing table.

renomer libtimeSync.so en libtimeSync.so.bak

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2094561

https://communities.vmware.com/message/2398967

  • message d'erreur dans user.log
 NMI watchdog: disabled (cpu0): hardware events not enabled

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2031297

https://software.intel.com/en-us/articles/disable-nmi-watchdog-when-using-pmu-event-based-sampling

ajouter nmi_watchdog=0 dans /boot/grub/grub.cfg

  • supprimer les messages de cron

ajouter la ligne suivante aavnt pam_unix.so dans /etc/pam.d/common-session-noninteractive

session [success=1 default=ignore] pam_succeed_if.so service in cron quiet use_uid

http://ubuntuforums.org/showthread.php?t=1256801

  • erreur de chargement du swap
Oct 23 16:39:15 froggdebian systemd[1]: Job dev-disk-by\x2duuid-ed79b1a6\x2debbb\x2d45d5\x2db21f\x2d9f1fb4b5226a.device/start timed out.
Oct 23 16:39:15 froggdebian systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-ed79b1a6\x2debbb\x2d45d5\x2db21f\x2d9f1fb4b5226a.device.

commenter le swap dans /etc/fstab

  • erreur de host
Nov 12 09:00:01 froggdebian sm-msp-queue[26192]: My unqualified host name (froggdebian) unknown; sleeping for retry
Nov 12 09:01:02 froggdebian sm-msp-queue[26192]: unable to qualify my own domain name (froggdebian) -- using short name

editer /etc/hosts

127.0.0.1 localhost
127.0.0.1 home.frogg.fr home

lancer la commande

hostname home.frogg.fr

pour tester le resultat

hostname -f