Shell Scripts


Some of the shell (bash) scripts I have created for Nagios monitoring, routine system maintenance or sending reports by e-mail. I use them mostly on FreeBSD systems, but they should also be adaptable on Linux or any other Unix system. For feedback please send me an e-mail.

This scripts are free to use, but on your own risk!
  • The check_ scripts are checks for Nagios
  • The report- scripts are usually run from cron once a day (after log rotation) and will send a report to the e-mail address defined in the cron (see header of script for details).
  • The update- scripts are usually run from cron and update files from the Internet on the local system. They should only generate output and sending an e-mail on failure.
  • The mysql-backup.sh scripts is usually run from cron and creates dumps from all databases (or only specified databases) from a MySQL / MariaDB server. It only generates output on failure.


Icon  Name                        Last modified      Size  
[PARENTDIR] Parent Directory - [   ] check_certificate_status.sh 2022-11-09 16:29 3.5K [   ] check_dns_delegation.sh 2022-11-09 17:56 4.7K [   ] mysql-backup.sh 2015-02-23 20:51 3.5K [   ] report-SA.sh 2013-09-08 13:40 743 [   ] report-dns-bind-9.10.sh 2014-06-14 21:47 2.3K [   ] report-dns-bind-9.9.sh 2013-11-12 16:45 2.3K [   ] report-email.sh 2014-06-29 20:59 1.9K [   ] report-ns-in-tld.sh 2022-07-02 23:51 2.0K [   ] update-ndpmon-ethercodes.sh 2013-07-01 21:26 793 [   ] update-sa-rules.sh 2022-09-19 12:05 2.2K



Document History

11-Oct-2013Initial publication
10-Nov-2013Reworked report-dns.sh to support views and added Response Rate Limiting
11-Dec-2013Added check_dns_tld_delegation.sh
04-Feb-2014Added reworked check_dns_delegation.sh and removed "old" check_dns_tld_delegation.sh
07-Feb-2014Small update of check_dns_delegation.sh
14-Jun-2014Renamed report-dns.sh to report-dns-bind-9.9.sh and added report-dns-bind-9.10.sh
29-Jun-2014Small update of report-email.sh
16-Feb-2015Added mysql-backup.sh
23-Feb-2015Small update of mysql-backup.sh
22-Dec-2015Improvements of check_dns_delegation.sh
02-Jul-2022Added report-ns-in-tld.sh
12-Jul-2022Added update-sa-rules.sh for checking and updating SpamAssassin rules from multiple channels
23-Oct-2022Added check_certificate_status.sh
09-Nov-2022Update of check_certificate_status.sh and check_dns_delegation.sh

Fabian Wenk last update 09-Nov-2022