Zabbix newbie looking for some help with a failing trigger recovery.
I built, using other community posts, a trigger for large drives to use free bytes as the trigger for the alarm instead of the provided percentage free. It used to fire and recover just fine. Now after my Zabbix server has updated to 5.0.3 and the active agents on Windows are still at 5.0.2, the recovery is giving a math error:
The trigger code is:
Macros:
$HAI.FS.LGDDRIVE = 500G
$HAI.FS.LGSPREE = 100G
I can probably fix it by converting the macros and the "10G" buffer value to bytes. Is this the best course of action, or is the a bug that I need to file?
TIA,
--MPJ
9/11/20 Update:
I modified the macros and the 10G in the recovery expression, but it did not work. The error is now:
What am I missing here?
I built, using other community posts, a trigger for large drives to use free bytes as the trigger for the alarm instead of the provided percentage free. It used to fire and recover just fine. Now after my Zabbix server has updated to 5.0.3 and the active agents on Windows are still at 5.0.2, the recovery is giving a math error:
Cannot evaluate expression: value "100G+10G" is not a numeric operand.
Problem: {SRVSANFS01:vfs.fs.size[J:,free].last()}<{$HAI.FS.LGSPFREE.WARN} and {SRVSANFS01:vfs.fs.size[J:,total].last()}>={$HAI.FS.LGDRIVE}
Recovery: {SRVSANFS01:vfs.fs.size[J:,free].last()}>"{$HAI.FS.LGSPFREE.WARN}+10G" and {SRVSANFS01:vfs.fs.size[J:,total].last()}>={$HAI.FS.LGDRIVE}
Recovery: {SRVSANFS01:vfs.fs.size[J:,free].last()}>"{$HAI.FS.LGSPFREE.WARN}+10G" and {SRVSANFS01:vfs.fs.size[J:,total].last()}>={$HAI.FS.LGDRIVE}
$HAI.FS.LGDDRIVE = 500G
$HAI.FS.LGSPREE = 100G
I can probably fix it by converting the macros and the "10G" buffer value to bytes. Is this the best course of action, or is the a bug that I need to file?
TIA,
--MPJ
9/11/20 Update:
I modified the macros and the 10G in the recovery expression, but it did not work. The error is now:
Cannot evaluate expression: value "107374182400+10737418240" is not a numeric operand.
Comment