bare/report_zabbix.sh

14 lines
353 B
Bash
Raw Permalink 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
2023-11-27 10:51:20 +11:00
ZABBIXHOST=__REPLACE_WITH_YOUR_ZAABIG_HOSTNAME_OR_IP
2023-11-27 10:51:20 +11:00
TEXT="`$BARE -T -a check`"
RV=$?
$SENDER -c $CONF -k backuptext -o "$TEXT" -s $ZABBIXHOST
$SENDER -c $CONF -k backupstatus -o $RV -s $ZABBIXHOST