Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1019 Bytes

README.md

File metadata and controls

36 lines (25 loc) · 1019 Bytes

Zabbix Template: Rclone Sync

This script logs rclone sync tasks to Zabbix.

Requirements

  • Rclone
  • Zabbix-Sender
  • python3: humanfriendly

How to Use

  1. Download the scripts to /etc/zabbix/scripts/
mkdir -p /etc/zabbix/scripts
cd /etc/zabbix/scripts
curl -O https://raw.githubusercontent.com/sebastian13/zabbix-template-rclone/master/scripts/rclone-sync.sh
curl -O https://raw.githubusercontent.com/sebastian13/zabbix-template-rclone/master/scripts/rclone-discovery.pl
chmod +x rclone-sync.sh rclone-discovery.pl
  1. Upload the template zbx_template_rescript-rclone to Zabbix Server and assign it to a host

  2. Run the script

Examples

/etc/zabbix/scripts/rclone-sync.sh [source] [destination]

Running as cronjob, I'm reccomending chronic from moreutils

26 3 * * * chronic /etc/zabbix/scripts/rclone-sync.sh [source] [destination]