14 lines
329 B
Bash
Executable File
14 lines
329 B
Bash
Executable File
#!/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 -a check`"
|
|
RV=$?
|
|
|
|
|
|
$SENDER -c $CONF -k backuptext -o "$TEXT" -s $ZABBIXHOST
|
|
$SENDER -c $CONF -k backupstatus -o $RV -s $ZABBIXHOST
|