Maintenance¶
On this page, I will explain some actions to periodically review on the Zentyal server to confirm its stability.
Log files¶
The first and most important thing is to know if the important log files of the system show any errors. For this project, the most important log files are:
- /var/log/zentyal/zentyal.log -> Zentyal modules.
- /var/log/syslog -> Status of the services and other generic system events.
- /var/log/samba/samba.log -> Domain controller module.
- /var/log/mail.log -> Mail module.
- /var/log/mail.err -> Mail module.
- /var/log/sogo/sogo.log -> Webmail module.
- /var/log/apache2/ -> Webmail module.
- /var/log/clamav/ -> Antivirus module.
- /var/log/letsencrypt/letsencrypt.log -> Certificates issued by Let's Encrypt with Certbot.
- /var/log/openvpn/ -> VPN module.
- /var/log/auth.log -> Local system authentication.
Below is an example of a search for warnings and errors in the Zentyal log:
Info
Warnings are usually not relevant.
The result of a harmless warning and an error:
State of the system package system¶
Another critical task to check is whether the server has any broken packages. This can be seen with the following command:
An example of a system with no broken packages:
System report¶
It is convenient to generate a system report once a week to see the general status of the server and detect possible incidents. The report can be generated using the CLI as shown below:
Below are some of the most important sections of the report that should be reviewed carefully (NOTE: The result shown below is from a system in good condition):
-
Disk usage -> Available space on disks.
-
Network Interfaces where were -> Network failures.
-
Server packages -> Broken packages or packages pending updates.
-
DNS users on DnsAdmins -> The special user of the DNS module must exist and belong to the special domain group called DnsAdmins.
-
Daemons' information -> Status of the old demons of the domain controller (they should be inactive).
-
Samba database check -> Errors in the Samba database.
-
DNS alias -> Special CNAME record in the domain for the domain controller.
-
Mails status -> The status of the emails managed by the email module.
Created: April 12, 2023