業務用エアコン関連の技術情報、エラーコード、環境問題対策に関する別サイト「エアコンの安全な修理・適切なフロン回収」

RockyLinux 9.1 : Logwatch , Disk Usage Check Script

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.

Introduce disk usage check script

1. Script Creation

Contents of disk_capacity_check.sh

2. Execution Confirmation

①Check current usage rates

It appears as follows

②Create a dummy file to achieve at least 80% utilization

③check again
④Run check scripts
You will receive an email to the email address you have set up, stating something like "Disk usage alert: 81 %".

⑤Delete "dummyfile"

⑥Periodic Execution Setting

PAGE TOP
Copied title and URL