Skip to content

Script helps you to take an every day e-mail about your linux server (antivirus info, logs, opened ports, file changes, software changes, user changes, etc.)

Notifications You must be signed in to change notification settings

butteff/ubuntu-server-daily-mail-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 

Repository files navigation

Daily monitoring server information to your e-mail.

script helps you to take an every day e-mail about your server.

What script can do:

With this script you can see in your mail:

  1. Your clamav antivirus information
  2. Which ports are open
  3. How many users do you have in your system
  4. What hardware temperature is on your server right now.
  5. Canonical hello information about your processes, memory, hdd usage, how many users are "logged in" right now (and other info, that you can see on your login screen).
  6. Backup log (if you do it from a script to backup.log)
  7. Any mounted hdd size.
  8. Differents in your packages, new packages in the system

Script is easy and you can configure it like you want or add something else.

INSTALLATION:

  • Install this software:

    sudo apt-get install clamav postfix mailutils sensors hddtemp

  • Start the Clamav antivirus

    sudo /etc/init.d/clamav-freshclam start

  • Configure your postfix:

    dpkg-reconfigure postfix

  • Find your sensors

    sensors-detect

  • Create a list of your packages (do it in the script directory):

    dpkg --get-selections > packages

  • Don't forget to change your paths and mail address in the dailymail.sh script and give to them executable rights

    chmod +x dailymail.sh

  • For a daily info you might create a crontab entry ( sudo crontab -e ), for example, this rule is for an every day mail at 5 AM:

    00 5 * * * ./dailymail.sh

About

Script helps you to take an every day e-mail about your linux server (antivirus info, logs, opened ports, file changes, software changes, user changes, etc.)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages