{"id":221,"date":"2022-01-06T23:15:25","date_gmt":"2022-01-06T22:15:25","guid":{"rendered":"https:\/\/codacola.xyz\/?p=221"},"modified":"2022-04-15T21:41:00","modified_gmt":"2022-04-15T19:41:00","slug":"logwatch-debian-11-bullseye","status":"publish","type":"post","link":"https:\/\/hinakuu.xyz\/?p=221","title":{"rendered":"Logwatch Linux Debian"},"content":{"rendered":"\n<p>Logwatch est un utilitaire permettant de surveiller les journaux syst\u00e8me et de cr\u00e9er des rapports. Ces rapports comprennent les tentatives de connexion infructueuses, les tentatives de connexion r\u00e9ussie, l&rsquo;espace de stockage utilis\u00e9\/disponible, les erreurs de kernel, etc.<\/p>\n\n\n\n<p>Source : <a href=\"https:\/\/wiki.debian-fr.xyz\/Logwatch\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/wiki.debian-fr.xyz\/Logwatch<\/a><\/p>\n\n\n\n<p>Ce n&rsquo;est pas mauvais de le rappeler encore une fois, un syst\u00e8me \u00e0 jour est plus s\u00e9curis\u00e9!<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">apt-get update\napt-get upgrade<\/mark><\/pre>\n\n\n\n<p>Passer la commande suivante pour installer logwatch:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">apt-get install logwatch<\/mark><\/pre>\n\n\n\n<p>Par d\u00e9faut Logwatch installe Postfix si vous n&rsquo;avez pas de service SMTP install\u00e9. Lorsque ce sera demand\u00e9, s\u00e9lectionnez la configuration \u00ab\u00a0Internet Site\u00a0\u00bb.<\/p>\n\n\n\n<p>Si vous pr\u00e9f\u00e9rez Exim, (re)installez-le au pr\u00e9alable.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Configurez Logwatch<\/h3>\n\n\n\n<p>Une fois install\u00e9 vous aurez \u00e0 faire une configuration minimale de logwatch.<\/p>\n\n\n\n<p>Les options sont nombreuses, je vous encourage \u00e0 lire le man<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">nano \/usr\/share\/logwatch\/default.conf\/logwatch.conf<\/mark><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-pale-pink-color\">Output = mail\nFormat = text<\/mark>\n<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-pale-pink-color\">MailTo = root (ou tout autre adresse fonctionnelle)\nMailFrom = logwatch@votredomaine.org (ou tout autre adresse fonctionnelle)<\/mark><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Le format html<\/h3>\n\n\n\n<p>A l&rsquo;heure ou j&rsquo;\u00e9crit, le paquet logwatch 7.3.6.cvs20090906-1squeeze1 contient un bug (pas trop g\u00eanant&#8230;): il manque les fichiers pour le format html.<\/p>\n\n\n\n<p>Vous pouvez tout de m\u00eame facilement utiliser le format html. Il suffit de cr\u00e9er les fichiers suivants:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">nano \/usr\/share\/logwatch\/default.conf\/html\/footer.html<\/mark><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-pale-pink-color\">Logwatch \u00a9Copyright 2002-2006 Kirk Bauer<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">\n\n<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-pale-pink-color\">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:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">\n\n<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-pale-pink-color\">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.\n\n&lt;\/body>&lt;\/html> <\/mark><\/code><\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">nano \/usr\/share\/logwatch\/default.conf\/html\/header.html<\/mark><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-pale-pink-color\"> &lt;!DOCTYPE HTML PUBLIC \"-\/\/W3C\/\/DTD HTML 4.0 Transitional\/\/EN\" \"http:\/\/www.w3.org\/TR\/REC-html40\/loose.dtd\"> &lt;html> &lt;head> &lt;title>Logwatch $Version ( $VDate )&lt;\/title> &lt;meta name=\"generator\" content=\"Logwatch $Version ( $VDate )\"> &lt;style type=\"text\/css\">\n\n h1 {color: gray; border-bottom: 3px double silver}\n h2,h3 {color: gray; border-bottom: 1px solid silver}\n .ref {padding-left: 1%}\n .service {padding-left: 1%; font-family: Monospace}\n .return_link {border-top: 1px; border-bottom: 1px;\n padding: 1%; margin-top: 1%; margin-bottom: 1%;}\n .copyright {color: black; border-top: 1px solid grey;\n border-bottom: 1px solid grey;\n padding: 1%; margin-top: 1%; margin-bottom: 1%;}\n\n&lt;\/style> &lt;\/head> &lt;body style=\"width:90%; margin-left: 5%; margin-right: 5%\" bgcolor=\"#FFFFFF\"><\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-luminous-vivid-amber-color\">\n<\/mark><\/code><\/pre>\n\n\n\n<p>Et de remplacer<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-pale-pink-color\">Format = text <\/mark>par <mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-pale-pink-color\">Format = html<\/mark><\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">V\u00e9rifiez le fonctionnement<\/h3>\n\n\n\n<p>Tapez la commande suivante pour tester l&rsquo;installation<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">logwatch<\/mark><\/pre>\n\n\n\n<p>Allez v\u00e9rifier ensuite vos mails pour vous assurer qu&rsquo;il est bien arriv\u00e9. V\u00e9rifiez votre boite \u00e0 spam si n\u00e9cessaire&#8230;<\/p>\n\n\n\n<p>Vous devriez recevoir un mail du syst\u00e8me:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>################### Logwatch 7.3.6 (05\/19\/07) #################### \n       Processing Initiated: Fri Aug  5 11:16:24 2011\n       Date Range Processed: yesterday\n                             ( 2011-Aug-04 )\n                             Period is day.\n       Detail Level of Output: 0\n       Type of Output\/Format: mail \/ text\n       Logfiles for Host: vanille.zehome.org\n ##################################################################<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Cron<\/h3>\n\n\n\n<p>V\u00e9rifiez que la t\u00e2che cron est bien activ\u00e9e Vous devriez avoir une t\u00e2che journali\u00e8re automatiquement cr\u00e9\u00e9e:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-green-cyan-color\">cat \/etc\/cron.daily\/00logwatch <\/mark><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>!\/bin\/bash\nCheck if removed-but-not-purged\ntest -x \/usr\/share\/logwatch\/scripts\/logwatch.pl || exit 0\nexecute\n\/usr\/sbin\/logwatch --output mail\nNote: It's possible to force the recipient in above command\nJust pass --mailto address@a.com instead of --output mail<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Logwatch est un utilitaire permettant de surveiller les journaux syst\u00e8me et de cr\u00e9er des rapports. Ces rapports comprennent<\/p>\n","protected":false},"author":1,"featured_media":222,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-221","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/hinakuu.xyz\/index.php?rest_route=\/wp\/v2\/posts\/221","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hinakuu.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hinakuu.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hinakuu.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hinakuu.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=221"}],"version-history":[{"count":1,"href":"https:\/\/hinakuu.xyz\/index.php?rest_route=\/wp\/v2\/posts\/221\/revisions"}],"predecessor-version":[{"id":656,"href":"https:\/\/hinakuu.xyz\/index.php?rest_route=\/wp\/v2\/posts\/221\/revisions\/656"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hinakuu.xyz\/index.php?rest_route=\/wp\/v2\/media\/222"}],"wp:attachment":[{"href":"https:\/\/hinakuu.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hinakuu.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hinakuu.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}