#!/bin/bash # Feed backup status info to zabbix BARE=/root/scripts/bare/bare.sh SENDER=/usr/local/bin/zabbix_sender CONF=/etc/zabbix/zabbix_agentd.conf ZABBIXHOST=__REPLACE_WITH_YOUR_ZAABIG_HOSTNAME_OR_IP TEXT="`$BARE -T -a check`" RV=$? $SENDER -c $CONF -k backuptext -o "$TEXT" -s $ZABBIXHOST $SENDER -c $CONF -k backupstatus -o $RV -s $ZABBIXHOST