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

Fedora43 : 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: Create a script to periodically report results via email

Contents of tripwire.sh

Execute the following command and verify that the Tripwire execution results are notified to the specified email 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: 85%".

④Delete "dummyfile"

⑤Periodic Execution Setting