User Tools

Site Tools


technical:24.04_logwatch_installation

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
technical:24.04_logwatch_installation [2024/10/12 21:05] wikiadmintechnical:24.04_logwatch_installation [2024/11/13 18:56] (current) – [Testing] mark_scottworld.net
Line 7: Line 7:
 As part of the installation, logwatch will install the postfix mailer which we need to configure on install. We will choose the option '''satellite system'''   As part of the installation, logwatch will install the postfix mailer which we need to configure on install. We will choose the option '''satellite system'''  
  
-Set the System mail name = your solaris.scottworld.net<br>+Set the System mail name = your solaris.scottworld.net
  
 For the mail outgoing mail to relay correctly we need to set a '''relayhost'''  For the mail outgoing mail to relay correctly we need to set a '''relayhost''' 
Line 84: Line 84:
    
   ssl0.ovh.net           root@scottworld.net:password   ssl0.ovh.net           root@scottworld.net:password
 + 
 Execute the command (to refresh the password table) Execute the command (to refresh the password table)
  
Line 158: Line 158:
 Service = All Service = All
 Service = -audit Service = -audit
 +Service = -http
 +Service = -sshd
 +Service = -pam_unix
 </code> </code>
  
Line 166: Line 169:
 Add this line to tone down the logging Add this line to tone down the logging
  
-  services/fail2ban: Detail = 0+  services/fail2ban: Detail = 1
  
 Add a script for SMARTD error reporting Add a script for SMARTD error reporting
Line 174: Line 177:
 Set the following to change the log file and reporting Set the following to change the log file and reporting
  
-  LogFile = +<code> 
-  LogFile = syslog+LogFile = 
 +LogFile = none 
 +*JournalCtl = "--output=cat --no-pager --unit=smartmontools.service" 
 +</code>
  
-Update the named script to fix issues with gname minimization +Update the named script to fix issues with qname minimization 
  
-  wget -O /etc/logwatch/scripts/services/named  +<code> 
-  https://sourceforge.net/p/logwatch/git/ci/master/tree/scripts/services/named?format=raw +wget -O /etc/logwatch/scripts/services/named https://sourceforge.net/p/logwatch/git/ci/master/tree/scripts/services/named?format=raw 
-  sed -i 's/DoLookup/#DoLookup/' /etc/logwatch/scripts/services/named +sed -i 's/DoLookup/#DoLookup/' /etc/logwatch/scripts/services/named 
-  sed -i -e '/minimization/s/failure/.*/' /etc/logwatch/scripts/services/named +sed -i -e '/minimization/s/failure/.*/' /etc/logwatch/scripts/services/named 
- +</code>
- +
-Update the named script to fix issues with fail2ban loggind  +
- +
-  wget -O /etc/logwatch/scripts/services/fail2ban  +
-  https://sourceforge.net/p/logwatch/git/ci/78a2b812cd1ca2b3fb6e8b22d6cf3b4766c75513/tree/scripts/services/fail2ban?format=raw +
  
 Add a script for NAMED error reporting Add a script for NAMED error reporting
Line 196: Line 197:
 Set the following to change the log file and reporting Set the following to change the log file and reporting
  
-  LogFile = +<code> 
-  LogFile = syslog +LogFile = 
- +LogFile = syslog 
-Add a script for OPENVPN error reporting +</code>
- +
-  /etc/logwatch/conf/services/openvpn.conf +
- +
-Set the following to change the log file and reporting+
  
-  LogFile = 
-  LogFile = syslog 
  
technical/24.04_logwatch_installation.1728759934.txt.gz · Last modified: 2024/10/12 21:05 by wikiadmin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki