Commit 13b356a8 authored by Michał 'czesiek' Czyżewski's avatar Michał 'czesiek' Czyżewski
Browse files

Add Zabbix debug symbols to display_error

parent f649298d
......@@ -27,6 +27,21 @@ function display_error {
echo "$1"
echo
}
echo "ZABBIX_ERROR"
# check dbb, rsyncb, remoteb
[ -z ${dbb+x} ] || {
echo "ZABBIX_ERROR_MSG ${dbb}"
}
[ -z ${rsyncb+x} ] || {
echo "ZABBIX_ERROR_MSG ${rsyncb}"
}
[ -z ${remoteb+x} ] || {
echo "ZABBIX_ERROR_MSG ${remoteb}"
}
# increment the global counter
ZABBIX_ERRORS_CNT=$(( $ZABBIX_ERRORS_CNT+1 ))
}
export -f display_error
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment