logwatch
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
logwatch [2020/11/05 21:16] – [Configuration initiale] pascal | logwatch [2023/07/04 10:55] (Version actuelle) – modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 8: | Ligne 8: | ||
===== Configuration ===== | ===== Configuration ===== | ||
- | ==== sudo mkdir / | + | ==== / |
Création du répertoire s'il n' | Création du répertoire s'il n' | ||
< | < | ||
- | root@mazarini: | + | root@mazarini: |
root@mazarini: | root@mazarini: | ||
total 0 | total 0 | ||
root@mazarini: | root@mazarini: | ||
</ | </ | ||
- | ==== Choisir son serveur de référence | + | ==== / |
+ | Copier le fichier / | ||
+ | === Configuration initiale | ||
< | < | ||
- | # pool.ntp.org maps to about 1000 low-stratum NTP servers. | + | ######################################################## |
- | # pick a different set every time it starts up. Please consider joining the | + | # This was written and is maintained by: |
- | # pool: <http:// | + | # Kirk Bauer <kirk@kaybee.org> |
- | server 0.fr.pool.ntp.org iburst dynamic | + | # |
- | server 1.fr.pool.ntp.org iburst dynamic | + | # Please send all comments, suggestions, |
- | server 2.fr.pool.ntp.org iburst dynamic | + | # etc, to kirk@kaybee.org. |
- | server 3.fr.pool.ntp.org iburst dynamic | + | # |
- | server ntp.online.net | + | ######################################################## |
- | </ | + | |
- | Il faut choisir des **serveurs proche de chez soi**. Souvent, ce ne sont pas des machines mais des pools de machines qui tournent. | + | |
- | J'ai choisi de prendre les serveurs ntp de mon hébergeur et les 4 pools français. Il y a des pools définis par zone géographique. | + | # NOTE: |
+ | # All these options are the defaults if you run logwatch with no | ||
+ | # | ||
+ | # | ||
- | La machine ntp.online.net correspond à un pool de machines. | + | # You can put comments anywhere you want to. They are effective for the |
+ | # rest of the line. | ||
- | iburst : interroger les serveurs plusieurs fois en cas de non réponse | + | # this is in the format of < |
+ | # and end of the lines is removed. | ||
+ | # is removed. | ||
- | dynamic | + | # Yes = True = On = 1 |
+ | # No = False = Off = 0 | ||
+ | |||
+ | # You can override the default temp directory (/tmp) here | ||
+ | TmpDir = / | ||
+ | |||
+ | # | ||
+ | #By default Logwatch will print to stdout in text with no encoding. | ||
+ | #To make email Default set Output = mail to save to file set Output = file | ||
+ | Output = stdout | ||
+ | #To make Html the default formatting Format = html | ||
+ | Format = text | ||
+ | #To make Base64 [aka uuencode] Encode = base64 | ||
+ | Encode = none | ||
+ | |||
+ | # Input Encoding | ||
+ | # Logwatch assumes that the input is in UTF-8 encoding. | ||
+ | # will use iconv to convert text to the UTF-8 encoding. | ||
+ | # to an empty string to use the default current locale. | ||
+ | # encoding, the input characters are converted to UTF-8, discarding any | ||
+ | # illegal characters. | ||
+ | # and `iconv -l` lists valid character set encodings. | ||
+ | # Setting CharEncoding to UTF-8 simply discards illegal UTF-8 characters. | ||
+ | # | ||
+ | |||
+ | # Default person to mail reports to. Can be a local account or a | ||
+ | # complete email address. | ||
+ | # --output mail should be passed on command line to enable mail feature. | ||
+ | MailTo = root | ||
+ | # WHen using option --multiemail, | ||
+ | # email recipient per host processed. | ||
+ | # for hostname host1 to user@example.com, | ||
+ | # | ||
+ | # Multiple recipients can be specified by separating them with a space. | ||
+ | |||
+ | # Default person to mail reports from. Can be a local account or a | ||
+ | # complete email address. | ||
+ | MailFrom = Logwatch | ||
+ | |||
+ | # if set, the results will be saved in < | ||
+ | # or displayed. Be sure to set Output = file also. | ||
+ | #Filename = / | ||
+ | |||
+ | # Use archives? | ||
+ | # (i.e. / | ||
+ | # be searched in addition to the / | ||
+ | # This usually will not do much if your range is set to just | ||
+ | # ' | ||
+ | # By default this is now set to Yes. To turn off Archives uncomment this. | ||
+ | #Archives = No | ||
+ | |||
+ | # The default time range for the report... | ||
+ | # The current choices are All, Today, Yesterday | ||
+ | Range = yesterday | ||
+ | |||
+ | # The default detail level for the report. | ||
+ | # This can either be Low, Med, High or a number. | ||
+ | # Low = 0 | ||
+ | # Med = 5 | ||
+ | # High = 10 | ||
+ | Detail = Low | ||
+ | |||
+ | |||
+ | # The ' | ||
+ | # (in / | ||
+ | # The default service(s) to report on. This should be left as All for | ||
+ | # most people. | ||
+ | Service = All | ||
+ | # You can also disable certain services (when specifying all) | ||
+ | Service = " | ||
+ | # prints useful network configuration info. | ||
+ | Service = " | ||
+ | # prints useful system configuration info. | ||
+ | Service = " | ||
+ | # is a wrapper for the eximstats program. | ||
+ | # If you only cared about FTP messages, you could use these 2 lines | ||
+ | # instead of the above: | ||
+ | #Service = ftpd-messages | ||
+ | #Service = ftpd-xferlog | ||
+ | # Maybe you only wanted reports on PAM messages, then you would use: | ||
+ | #Service = pam_pwdb | ||
+ | #Service = pam # General PAM messages... usually not many | ||
+ | |||
+ | # You can also choose to use the ' | ||
+ | # logwatch to only analyze that one logfile.. for example: | ||
+ | #LogFile = messages | ||
+ | # will process / | ||
+ | # process that logfile. | ||
+ | # most people. | ||
+ | # anyways... | ||
+ | |||
+ | # | ||
+ | # By default we assume that all Unix systems have sendmail or a sendmail-like MTA. | ||
+ | # The mailer code prints a header with To: From: and Subject:. | ||
+ | # At this point you can change the mailer to anything that can handle this output | ||
+ | # stream. | ||
+ | # TODO test variables in the mailer string to see if the To/ | ||
+ | # From here with out breaking anything. This would allow mail/ | ||
+ | mailer = "/ | ||
+ | |||
+ | # | ||
+ | # With this option set to a comma separated list of hostnames, only log entries | ||
+ | # for these particular hosts will be processed. | ||
+ | # process only its own logs, or Logwatch can be run once per a set of hosts | ||
+ | # included in the logfiles. | ||
+ | # Example: HostLimit = hosta, | ||
+ | # | ||
+ | # The default is to report on all log entries, regardless of its source host. | ||
+ | # Note that some logfiles do not include host information and will not be | ||
+ | # influenced by this setting. | ||
+ | # | ||
+ | #HostLimit = myhost | ||
+ | |||
+ | # Default Log Directory | ||
+ | # All log-files are assumed to be given relative to the LogDir directory. | ||
+ | # Multiple LogDir statements are possible. | ||
+ | # to set particular directories follow, so LogDir need not be set. | ||
+ | #LogDir = /var/log | ||
+ | # | ||
+ | # By default /var/adm is searched after LogDir. | ||
+ | # | ||
+ | # | ||
+ | # By default /var/log is to be searched after LogDir and /var/adm/ . | ||
+ | # | ||
+ | # | ||
+ | # The current working directory can be searched after the above. | ||
+ | # default. | ||
+ | # | ||
+ | </ | ||
+ | === Modifications === | ||
+ | < | ||
+ | Output = mail | ||
+ | MailFrom = root | ||
+ | </ | ||
===== Commandes ===== | ===== Commandes ===== | ||
- | ==== Gestion du daemon | + | ==== Test de logwatch |
< | < | ||
- | root@mazarini: | + | root@mazarini: |
- | root@mazarini: | + | root@mazarini: |
- | root@mazarini: | + | |
- | </ | + | |
- | ==== Interrogation ==== | + | |
- | < | + | |
- | # ntpq -p | + | |
- | | + | |
- | ============================================================================== | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | # | + | |
</ | </ | ||
+ | Commande trouvée dans / | ||
+ | |||
===== Références ===== | ===== Références ===== | ||
- | * Choix du pool de serveurs | ||
- | * [[http:// | ||
- | * [[http:// | ||
| |
logwatch.1604611004.txt.gz · Dernière modification : 2023/07/04 10:55 (modification externe)