2020-10-02 21:23:42 +10:00
|
|
|
#!/bin/bash
|
2020-11-05 09:02:47 +11:00
|
|
|
# Feed backup status info to zabbix
|
2020-10-02 21:23:42 +10:00
|
|
|
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
|
2020-10-02 21:23:42 +10:00
|
|
|
|
2023-11-27 10:51:20 +11:00
|
|
|
TEXT="`$BARE -T -a check`"
|
2020-10-02 21:23:42 +10:00
|
|
|
RV=$?
|
|
|
|
|
|
|
|
|
|
|
|
$SENDER -c $CONF -k backuptext -o "$TEXT" -s $ZABBIXHOST
|
|
|
|
$SENDER -c $CONF -k backupstatus -o $RV -s $ZABBIXHOST
|