14 lines
332 B
Bash
14 lines
332 B
Bash
|
#!/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=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
|