This script logs rclone sync tasks to Zabbix.
- Rclone
- Zabbix-Sender
- python3: humanfriendly
- 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
-
Upload the template zbx_template_rescript-rclone to Zabbix Server and assign it to a host
-
Run the script
/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]