bare/report.sh

14 lines
332 B
Bash
Raw Normal View History

#!/bin/bash
2020-11-05 09:02:47 +11:00
# 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=gridbug.nethack.net
TEXT="`$BARE -T -a check`"
RV=$?
$SENDER -c $CONF -k backuptext -o "$TEXT" -s $ZABBIXHOST
$SENDER -c $CONF -k backupstatus -o $RV -s $ZABBIXHOST