/checkmk-synology-activebackup

CheckMK to get Status of Synology Active Backups

Primary LanguagePHP

checkmk-synology-activebackup

Changes

v1.3

  • added option to skip Jobs with a specific name. Example:
$excludes=array("/server1/i", "/client\-pc/i");

v1.2

  • declared variable out to avoid a warning

v1.1

  • corrected error handling with multiple jobs
  • ignored deleting backup retention taskst

v1.0

inital relase

Info

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

Install

  • 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

Config modifications

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

Outputs