Ad Widget

Collapse

Bug? in 5.0.3 Math to recover trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MJJazz
    Junior Member
    • Sep 2020
    • 2

    #1

    Bug? in 5.0.3 Math to recover trigger

    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:

    Cannot evaluate expression: value "100G+10G" is not a numeric operand.
    The trigger code is:
    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}
    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:
    Cannot evaluate expression: value "107374182400+10737418240" is not a numeric operand.
    What am I missing here?
    Last edited by MJJazz; 11-09-2020, 18:17.
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    Try it without the " around the expression.

    Comment

    • MJJazz
      Junior Member
      • Sep 2020
      • 2

      #3
      Thank you! I had to also switch back to the 10G numbers, but removing the quotes worked. Strange that it worked under 5.0.2 and failed under 5.0.3.

      --MPJ

      Comment

      • tim.mooney
        Senior Member
        • Dec 2012
        • 1427

        #4
        I could be that it was never supposed to work with " around the addition, or it could be that this is truly a regression.

        In either case, you may want to file a bug report against 5.0.3 at https://support.zabbix.com to let them know about the unexpected change in behavior. You could reference this forum thread or just include the information you provided so that they can reproduce the issue.

        Comment

        Working...