Logwatch et html

Salut,
un petit “bug” dans le paquet logwatch pour squeeze (7.3.6.cvs20090906-1squeeze1)
Si vous choisissez html comme format de sorti:

logwatch Can not open HTML Header at /usr/share/logwatch/default.conf/html/header.html: No such file or directory

Effectivement les fichiers ne sont pas dans le deb…

Vous savez ou je peux trouver ces fichiers manquants ?
A moins que ce ne soit fait exprès ?

Salut,

j’ai eu le même souci, j’ai pas encore “dépatouillé” ça, si j’ai du nouveau j’te fais signe :wink:

Bof, je suppose qu’il suffit de récupérer ça dans une ancienne version.
Mais je me demandais surtout si ce n’était pas fait exprès cette suppression… Et je n’ai encore rien trouvé.

Pourquoi Logwatch “htlm” ?
j’ai la version sans X sur mon serveur et jamais eu de problèmes, chaque matin, j’ai le rapport dans ma BAL.

Pour générer un rapport en format html je pense

Oui c’est exactement ça.
Ce n’est pas important, mais forcement ça génère une erreur si on choisi ce format… Et c’est agaçant les erreurs!

Vu: bugs.debian.org/cgi-bin/bugreport.cgi?bug=584681

Vous pouvez tout de même facilement utiliser le format html. Il suffit de créer les fichiers suivants:

/usr/share/logwatch/default.conf/html/footer.html[code]


Logwatch ©Copyright 2002-2006 Kirk Bauer

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

[/code] /usr/share/logwatch/default.conf/html/header.html[code] Logwatch $Version ( $VDate ) h1 {color: gray; border-bottom: 3px double silver} h2,h3 {color: gray; border-bottom: 1px solid silver} .ref {padding-left: 1%} .service {padding-left: 1%; font-family: Monospace} .return_link {border-top: 1px; border-bottom: 1px; padding: 1%; margin-top: 1%; margin-bottom: 1%;} .copyright {color: black; border-top: 1px solid grey; border-bottom: 1px solid grey; padding: 1%; margin-top: 1%; margin-bottom: 1%;}
[/code]

Fichiers récupérés du paquet 7.3.6-1

Le tuto sur le Wiki

Je sais pas si tu as déjà regardé du côté de Awstat et de Munin :think:

Salut,
Awstats oui: isalo.org/wiki.debian-fr/ind … le=AWStats

munin, non. Je regarde.

Logwatch c’était histoire d’ajouter au manuel de sécurisation que je suis en train (doucement) de faire.

iptables - surveillance - logwatch - rkhunter - Chkrootkit - fail2ban…

Faut que j’attaque fail2ban. J’ai un peu la flemme… :wink:

Parano ? non, à peine … :laughing: