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

Debian10.13 ; logwatch ,Disk Usage Check Script

1. Disk Usage Check Script

1.1 Script Creation

Contents of disk_capacity_check.sh
Configured to notify when disk usage exceeds 80%.

1.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 13G)

③confirmation

Confirmation that it is 80% or higher

④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 : 94%".

⑤Delete the "dummyfile" you created.

⑥Periodic Execution Setting

2. Log analysis tool logwatch installed

2.1 logwatch Install

2.2 Edit logwatch configuration file

①Copy default configuration file

②Change email address, etc.

2.3 Creating Directories

There is no directory used by the cache, so create one.

2.4 operation check

When logwatch is installed, cron is registered by default, so you will receive daily report emails.
If you want to check it immediately, do the following

Copied title and URL