Go to file
2024-06-21 21:51:57 +10:00
.gitignore Added godaddy-ddns.sh script for Dynamic A Recrod Update with godaddy.com 2018-02-06 21:36:08 +10:00
00logwatch Cleanup unused scripts 2024-06-21 21:50:10 +10:00
check_updates_deb Cleanup unused scripts 2024-06-21 21:50:10 +10:00
dbbackup Cleanup unused scripts 2024-06-21 21:50:10 +10:00
diskalert Cleanup unused scripts 2024-06-21 21:50:10 +10:00
README.md chore(deps): updated readme 2024-06-21 21:51:57 +10:00

Scripts for different tasks

These scripts perform multiple of different tasks that help monitor the server and send emails after performing functions. To send emails the sendEmail package is required

apt-get install sendemail

Change the following lines in scripts that send emails

MAILFROM is set to determine the server name and domain name for the server and generate and email for it to determine where the email is coming from. This can be changed to specify an email address or you can leave it to generate one.

MAILTO=user@example.com
SMTP=mail.example.com
MAILFROM=$(hostaname)@$(dnsdomainname)

00logwatch

This script sends a report based on the log files and settings.

Installation

apt-get install logwatch
ln -s $(pwd)/00logwatch /etc/cron.daily

check_updates_deb

This script checks for updates on your Debian based systems. If any updates are found it will download them ready for Installation and an email will be sent to an email address specified

Installation

ln -s $(pwd)/check_updates_deb /etc/cron.daily

dbbackup

This scripts backs up mysql databases and rotates the number of backups through seven days.

Specify the user and password that has access to the databases.

DBUSER='dbbackup'
DBPASS='EWFfP3GZsqr427Yj'
BACKUPDIR='/BACKUP/db/'

Installation

ln -s $(pwd)/dbbackup /etc/cron.daily

diskalert

Sends and email when disk space reaches greater than 90%.

Installation

ln -s ${pwd}/diskalert.sh /etc/cron.hourly