Save up to 30% on Dedicated Servers – Chat Now!

Your Webhosting Questions
Answered by the Webhosting Experts
Tags +
...
Tags
...
...

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” admin@youremail.com

==========
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 ‘admin@youremail.com’ 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.

Share

Facebook
Twitter
LinkedIn
Email
WhatsApp

Need More Personalized Help?

If you have any further issues, questions, or would like some assistance checking on this or anything else, please reach out to us from your my.hivelocity.net account and provide your server credentials within the encrypted field for the best possible security and support.

If you are unable to reach your my.hivelocity.net account or if you are on the go, please reach out from your valid my.hivelocity.net account email to us here at: support@hivelocity.net. We are also available to you through our phone and live chat system 24/7/365.