How to set up daily email alerts for chkrootkit?

Login to your server as root and at the root prompt fire the below command:

root@xxx[~]vi /etc/cron.daily/chkrootkit.sh

Insert the following to the new file:

#!/bin/bash
cd /your_installpath/chkrootkit-0.42b/
./chkrootkit | mail -s “Daily chkrootkit from Servername” [email protected]

==========
Note
1. Replace ‘your_installpath’ with the actual path to where you unpacked Chkrootkit.

2. Change ‘Servername’ to the server which you are running.

3. Change ‘[email protected]’ to your actual email address where the script will mail you.
==========

Save the file.

Change the file permissions
root@xxx[~]chmod 755 /etc/cron.daily/chkrootkit.sh

Now if you like ,you can run a test report manually in SSH, to see how it looks.

root@xxx[~]cd /etc/cron.daily/
root@xxx[~]./chkrootkit.sh

You’ll now receive a alert with the report!

Everyday you should receive the alert.

You don’t have to run it manually.

  • 1 Bu dökümanı faydalı bulan kullanıcılar:
Bu cevap yeterince yardımcı oldu mu?

İlgili diğer dökümanlar

Can I use my domain name or must I use my IP address as the hostname for FTP?

Using your IP address (192.168.22.22  is an example IP address) is the preferred entry for...

Can you transfer my sites from my current host to my new VPS?

Yes. We will transfer all of your sites free* of charge and will assure that you experience no or...

Do you allow MP3 files? Do you allow streaming of videos?

Yes we do with our special plans at http://hostripples.in/avs-hosting.php

Do you support Cold Fusion?

We do not support or Cold Fusion on our shared hosting servers, however you are more than welcome...