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

Fedora40 ; Tripwire,Logwatch,Disk Usage Check Script

Tripwire

1.Install

2.Passphrase setting

3.Tripwire Configuration

Configuration File Edit

Create a Tripwire configuration file (cryptographically signed version)

Delete Tripwire configuration file (text version)

Policy File Settings

Contents of twpolmake.pl

Policy File Optimizations

Create policy file (cryptographically signed version) based on optimized policy file

Create database and check operation

Create test files

Check Tripwire operation

Delete test files

Tripwire Scheduled Scripts

Contents of tripwire.sh

Confirmation that the results of the tripwire execution are notified to the specified e-mail address

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(In the example, the name is dummyfile and it is about 8G.)

➂Run check scripts

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

④Delete "dummyfile"

⑤Periodic Execution Setting

Copied title and URL