Click here for "Error Codes for Commercial Air Conditioners".

CentOS Stream9 ; Logwatch , Disk Usage Check Script

1. Logwatch

①Install

Edit configuration file

Output Logwatch reports

It will appear as follows

④Test to see if the report arrives at the address you set. Check if you receive a log report email like the one above.

2.Introduce disk usage check script

2.1 Script Creation

Contents of disk_capacity_check.sh

2.2 Execution Confirmation

①Check current usage rates

It appears as follows

②Create a dummy file to achieve at least 80% utilization(In the example, the name is dummyfile and it is about 10G.)

③check again
Execute the following command to confirm that it is above 80%.

④Run check scripts

You will receive an email to the email address you have set up, stating something like "Disk usage alert: 91%".

⑤Delete "dummyfile"

⑥Periodic Execution Setting

Copied title and URL