[fail2ban][Argh!] bidouiller les fichiers système

2015-02-10 Par sujet Philippe Gras
Une question qui a en réalité plus à voir avec le système qu'avec  
fail2ban…


Comme ça se produit dans fail2ban, je me lance quand même ici sans  
HS ;-)


J'ai un paquet de lignes qui ne servent à rien dans mes logs :
# cat fail2ban.log
2015-02-08 06:28:58,509 fail2ban.server : INFO   Changed logging  
target to /var/log/fail2ban.log for Fail2ban v0.8.6
2015-02-08 06:29:04,215 fail2ban.filter : INFO   Log rotation  
detected for /var/log/nginx/$log*.access.log
2015-02-08 06:29:04,263 fail2ban.filter : INFO   Log rotation  
detected for /var/log/nginx/access.log
2015-02-08 06:29:04,293 fail2ban.filter : INFO   Log rotation  
detected for /var/log/nginx/$log*.error.log
2015-02-08 06:29:04,296 fail2ban.filter : INFO   Log rotation  
detected for /var/log/nginx/error.log
2015-02-08 06:29:04,451 fail2ban.filter : INFO   Log rotation  
detected for /var/log/nginx/$log*.access.log
2015-02-08 06:29:04,548 fail2ban.filter : INFO   Log rotation  
detected for /var/log/nginx/$log*.error.log
2015-02-08 06:29:04,569 fail2ban.filter : INFO   Log rotation  
detected for /var/log/nginx/$log*.error.log
2015-02-08 06:29:04,681 fail2ban.filter : INFO   Log rotation  
detected for /var/log/nginx/$log*.error.log
2015-02-08 06:29:04,720 fail2ban.filter : INFO   Log rotation  
detected for /var/log/nginx/$log*.access.log
2015-02-08 06:29:04,751 fail2ban.filter : INFO   Log rotation  
detected for /var/log/nginx/$log*.access.log
2015-02-08 06:29:04,844 fail2ban.filter : INFO   Log rotation  
detected for /var/log/nginx/$log*.access.log
2015-02-08 06:29:04,896 fail2ban.filter : INFO   Log rotation  
detected for /var/log/nginx/$log*.access.log
2015-02-08 06:29:04,957 fail2ban.filter : INFO   Log rotation  
detected for /var/log/nginx/$log*.access.log
2015-02-08 06:29:27,477 fail2ban.filter : INFO   Log rotation  
detected for /var/log/nginx/$log*.access.log
2015-02-08 06:29:38,540 fail2ban.filter : INFO   Log rotation  
detected for /var/log/mail.log
2015-02-08 06:29:38,717 fail2ban.filter : INFO   Log rotation  
detected for /var/log/mail.log
2015-02-08 06:29:38,722 fail2ban.filter : INFO   Log rotation  
detected for /var/log/mail.log
2015-02-08 06:29:39,720 fail2ban.filter : INFO   Log rotation  
detected for /var/log/mail.log
2015-02-08 06:29:39,725 fail2ban.filter : INFO   Log rotation  
detected for /var/log/mail.log
2015-02-08 06:29:39,994 fail2ban.filter : INFO   Log rotation  
detected for /var/log/nginx/$log*.access.log
2015-02-08 06:29:40,544 fail2ban.filter : INFO   Log rotation  
detected for /var/log/mail.log
2015-02-08 06:31:16,397 fail2ban.filter : INFO   Log rotation  
detected for /var/log/nginx/access.log
2015-02-08 06:31:16,435 fail2ban.filter : INFO   Log rotation  
detected for /var/log/nginx/error.log
2015-02-08 06:33:25,121 fail2ban.filter : INFO   Log rotation  
detected for /var/log/nginx/$log*.access.log
2015-02-08 06:33:25,976 fail2ban.filter : INFO   Log rotation  
detected for /var/log/nginx/$log*.access.log
2015-02-08 06:33:26,022 fail2ban.filter : INFO   Log rotation  
detected for /var/log/nginx/$log*.access.log
2015-02-08 06:33:53,507 fail2ban.filter : INFO   Log rotation  
detected for /var/log/nginx/$log*.access.log
2015-02-08 06:33:54,193 fail2ban.filter : INFO   Log rotation  
detected for /var/log/nginx/$log*.access.log
2015-02-08 07:06:44,456 fail2ban.filter : INFO   Log rotation  
detected for /var/log/nginx/$log*.error.log
2015-02-08 07:06:44,880 fail2ban.filter : INFO   Log rotation  
detected for /var/log/nginx/$log*.error.log
 
==
J'ai un certain nombre de fichiers de logs HTTP différents que j'ai  
renommés $log*, ça ne vous étonne pas.


Ces lignes d'info ne servent à rien et sont redondantes, la question  
a été posée et résolue sur Internet :

https://github.com/fail2ban/fail2ban/issues/129

On a un lien vers le correctif dans le tropique du GitHub, et j'ai  
comparé avec ce que j'ai chez moi :

# locate filter.py
/usr/lib/python2.7/lib2to3/fixes/fix_filter.py
/usr/lib/python2.7/lib2to3/fixes/fix_filter.pyc
/usr/share/fail2ban/server/filter.py

# vi /usr/share/fail2ban/server/filter.py

class FileContainer:

def __init__(self, filename, tail = False):
self.__filename = filename
self.__tail = tail
self.__handler = None
# Try to open the file. Raises an exception if an  
error occured.

handler = open(filename)
stats = os.fstat(handler.fileno())
self.__ino = stats.st_ino
try:
firstLine = handler.readline()
# Computes the MD5 of the first line.
self.__hash = md5sum(firstLine).digest()
# Start at the beginning of file if tail  
mode is off.

if tail:
handler.seek(0, 2)
self.__pos = 

Xen 4.1, PyGrub et reboot impossible

2015-02-10 Par sujet Guillaume

Bonjour,

J'ai un soucis avec Xen 4.1 présent dans les dépots de Wheezy.

infos:
j'utilise xl comme toolstack et PyGrub comme bootloader.

soucis:
Il m'est impossible de reboot un DomU via les commandes
* reboot
* shutdown -r now

le log sur le Dom0 :
$ cat /var/log/xen/xl-vm1.log
Waiting for domain vm1 (domid 20) to die [pid 7584]
Domain 20 is dead
Action for shutdown reason code 1 is restart
Domain 20 needs to be cleaned up: destroying the domain
Done. Rebooting now
failed to run bootloader: -3

--
Guillaume

--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists

Pour vous DESABONNER, envoyez un message avec comme objet unsubscribe
vers debian-user-french-requ...@lists.debian.org
En cas de soucis, contactez EN ANGLAIS listmas...@lists.debian.org
Archive: https://lists.debian.org/54da02f5.4090...@gwilhom.fr



Re: Installation carte graphique Radeon

2015-02-10 Par sujet le.pigeon

Salut, les driver installé sont :
xserver-xorg-video-*

bonne journée
On 07/02/2015 20:00, Zuthos Oddy wrote:

Bonjour,

Merci de ton aide.

pourrais-tu m'indiquer de quel package il s'agit. Ceci afin d'être sur que
j'installe les pilotes libres.

Merci d'avance


citation de=le.pigeon

salut,
j'ai une radeon 3450 hd agp et j'ai eu un probleme similaire. J'ai
installé le driver libre ET mis le tout dans :
/etc/X11/x.conf.d/20-radeon.conf

faut bien rajouter le .d sinon ça ne fonctionnait pas. En pièce jointe
mon fichier de conf avec les options disponible dans le man.
En espérant que ça vous aide.

++
On 06/02/2015 21:06, Zuthos Oddy wrote:

Bonjour,

j'essaye d'installer une carte graphique après une installation d'une
Debian wheezy sur un nouveau PC.

cette derniére:
# lspci | grep VGA
01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI
Oland [Radeon HD 8500 Series]

est une Radeon.
Lors du démarage de xorg, j'ai un no screen laconique.

La seule façon de démarrer xorg est de créer un fichier xorg.conf et de
forcer le pilote fbdev. radeon ou vesa ne fonctionnant pas

J'ai donc installé firmware-linux-nonfree en testing qui semble avoir le
bon pilote
et j'ai suivi les indications trouvé sur ce site:
https://wiki.debian.org/fr/AtiHowTo

Arrivé à la section dépannage, je n'ai pas eu de réponse à la commande:
# dmesg | grep -E 'drm|radeon' | grep -iE 'firmware|microcode'

Malheureusement, le site n'explique pas quoi faire dans ce cas de
figure.

Bref, si quelqu'un avait une suggestion, une solution ou même des
encouragements...

Je vous en remercie d'avance







--
Lisez la FAQ de la liste avant de poser une question :
http://wiki.debian.org/fr/FrenchLists

Pour vous DESABONNER, envoyez un message avec comme objet unsubscribe
vers debian-user-french-requ...@lists.debian.org
En cas de soucis, contactez EN ANGLAIS listmas...@lists.debian.org
Archive: https://lists.debian.org/54da112d.1050...@openmailbox.org