Skip to content

edvler/check_mk-urbackup-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Check MK Plugin to check UrBackup backups

News

Starting with Release 2.0.3 for each driveletter in Urbackup-Imagebackups one service is created in check_mk! The old Imagebackup service without a driveletter are change to UNKN.

Installation

On the Monitoring Server where Check_mk is installed:

For a detailed description how to work with mkp's goto https://docs.checkmk.com/latest/de/mkps.html.

Short tasks

  1. copy the XXXXXX.mkp (see dist folder) to your Check_mk server into the /tmp folder.
  2. su - <SITE_NAME> (mkp has to be installed on every site you are running!)
  3. mkp install /tmp/XXXXXX.mkp (replace XXXXXX with the filename downloaded)
  4. Goto your Check_mk webinterface. Choose WATO -> Host & Service Parameters. Search for urbackup.

On the UrBackup Server (NOT THE CHECK_MK SERVER!):

  1. Install UrBackup API. (https://github.com/uroni/urbackup-server-python-web-api-wrapper)
  On Ubuntu 16.04.4: apt-get install python3-pip && pip3 install urbackup-server-web-api-wrapper
  1. Copy the plugin script check_mk/agents/plugins/urbackup_check into /usr/lib/check_mk_agent/plugins/
  2. chmod 755 /usr/lib/check_mk_agent/plugins/urbackup_check
  3. Create urbackup-check.ini in $MK_CONFDIR folder (usually /etc/check_mk). See Template etc/check_mk/urbackup-check.ini
  4. Execute the script: /usr/lib/check_mk_agent/plugins/urbackup_check. If everythings works the output should look like this
root@urbackup-server:/usr/lib/check_mk_agent/plugins# ./urbackup_check
<<<urbackup_check>>>
FMT-PC;;;;;-;;;;;False;;;;;-;;;;;False
NB03;;;;;-;;;;;False;;;;;2017-05-15_08:51;;;;;False
PC01;;;;;2018-02-22_18:05;;;;;False;;;;;2018-02-22_18:36;;;;;True
PC02;;;;;2018-02-23_08:19;;;;;True;;;;;2018-02-23_08:57;;;;;True
PC03;;;;;2018-02-12_00:08;;;;;False;;;;;2017-05-15_09:36;;;;;False
PC04;;;;;-;;;;;False;;;;;2018-01-01_00:00;;;;;False
PC05;;;;;2017-10-02_00:08;;;;;False;;;;;2018-02-17_12:02;;;;;True
pc-xx;;;;;-;;;;;False;;;;;2017-05-15_09:16;;;;;False
swyx01;;;;;2018-02-23_00:02;;;;;True;;;;;2018-02-23_01:01;;;;;True

Services screenshot