- added option to skip Jobs with a specific name. Example:
$excludes=array("/server1/i", "/client\-pc/i");
- declared variable out to avoid a warning
- corrected error handling with multiple jobs
- ignored deleting backup retention taskst
inital relase
This scripts is written for CheckMK. It uses the SQLite Databases to get the job results for the Synology Active Backups. Tested on:
- CheckMK 2.1
- Synology DSM 7.1
- Active Backup for Business 2.4.1
- Copy the scripty to your Synology NAS and make it excecutable.
cd /volume1
wget https://raw.githubusercontent.com/righter83/checkmk-synology-activebackup/main/check_ab.php
chmod +x check_ab.php
- Install the SSH Key from CheckMK on your NAS.
- Afterwards you have to configure the Check in CheckMK:
Go to Services -> Other Services and add a "Check via SSH service"
Configure everything for your NAS and the command should be like:
/volume1/check_ab.php
There is also a check inside which checks if the job was running in a specific time window. If you run a job daily you should adjust the config variable runtime to 86500 -> a little bit higher as one day. You can also disable this check if you set the runtimecheck variable to False