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

Rocky Linux8.6 : Logwatch ,Disk Usage Check Script

1. Logwatch

① Install

② Edit configuration file

③ Output Logwatch reports

You will get the following message

④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 Scripting

disk_capacity_check.shの内容

2.2 Execution Confirmation

①Check current usage

It appears as follows

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

③Re-confirmation
Confirmation that it is at least 80%.

④Run disk space check script

You will receive an e-mail to the e-mail address you have set up with the body of the message as "Disk usage alert : 86%".

⑤Delete the "dummyfile" you created.

⑥Periodic Execution Setting

 

Copied title and URL