Click here for "Error Codes for Commercial Air Conditioners".(Japanese Version)

AlmaLinux 8.6 : Logwatch , Disk Usage Check Script

1. Logwatch Install

① Install

② Edit configuration file
③ Output Logwatch reports
④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 utilization

It appears as follows

②Create a dummy file to have at least 80% utilization (in the example, it is named "dummyfile" and is about 9G).

③Reaffirmation
Confirmation that it is at least 80%.

④Run disk space check script

You will receive an email to the email address you set up with the body of the message as "Disk usage alert: 93 %".

⑤Delete the "dummyfile" you created.

⑥Periodic Execution Setting
Copied title and URL