Everything worked, except "Disk total" and "Disk free", which both showed 0.
After debugging I came up with a patch that fixed it for me.
--- /root/glusix/glusix/scripts/volume_status.sh 2019-08-15 12:25:35.665640740 +0000
+++ /etc/zabbix/scripts/agentd/glusix/scripts/volume_status.sh 2019-08-15 13:30:37.297833044 +0000
@@ -18,11 +18,11 @@
res="${from_val}"
else
if [[ ${from_units} == 'TB' && ${to_units} == 'B' ]]; then
- ec="${from_val} * (${divide} ^ 4)"
+ ec="$((${from_val} * (${divide} ** 4)))"
elif [[ ${from_units} == 'GB' && ${to_units} == 'B' ]]; then
- ec="${from_val} * (${divide} ^ 3)"
+ ec="$((${from_val} * (${divide} ** 3)))"
elif [[ ${from_units} == 'MB' && ${to_units} == 'B' ]]; then
- ec="${from_val} * (${divide} ^ 2)"
+ ec="$((${from_val} * (${divide} ** 2)))"