bare/report.sh

13 lines
293 B
Bash
Raw Normal View History

#!/bin/bash
BARE=/root/scripts/bare/bare.sh
SENDER=/usr/local/bin/zabbix_sender
CONF=/etc/zabbix/zabbix_agentd.conf
ZABBIXHOST=gridbug.nethack.net
TEXT="`$BARE -a check`"
RV=$?
$SENDER -c $CONF -k backuptext -o "$TEXT" -s $ZABBIXHOST
$SENDER -c $CONF -k backupstatus -o $RV -s $ZABBIXHOST