Ad Widget

Collapse

Cannot evaluate function on a valid expression

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • royc
    Junior Member
    • Mar 2015
    • 10

    #1

    Cannot evaluate function on a valid expression

    Hello

    I'm intermittently getting 'Cannot evaluate function' on the following valid trigger:

    Code:
    ({TRIGGER.VALUE}=0&{hostname:logrt[/usr/local/schedulers/activeeon/proactivescheduler/logs/Scheduler.log,ERROR,,20].count(1d)}>0)|({TRIGGER.VALUE}=1&{hostname:logrt[/usr/local/schedulers/activeeon/proactivescheduler/logs/Scheduler.log,ERROR,,20].nodata(1d)}=0)
    I came across this post and was wondering whether this is related to the problem or if anyone faces the same issue?



    Thanks
  • aib
    Senior Member
    • Jan 2014
    • 1615

    #2
    1) replace : & to AND; | to OR (I hope you are using the fresh version of Zabbix)
    2) add "spaces" around AND / OR.
    Code:
    ({TRIGGER.VALUE}=0 [B]and [/B]{hostname:logrt[/usr/local/schedulers/activeeon/proactivescheduler/logs/Scheduler.log,ERROR,,20].count(1d)}>0) [B] or [/B]({TRIGGER.VALUE}=1[B] and [/B]{hostname:logrt[/usr/local/schedulers/activeeon/proactivescheduler/logs/Scheduler.log,ERROR,,20].nodata(1d)}=0)
    Sincerely yours,
    Aleksey

    Comment

    • royc
      Junior Member
      • Mar 2015
      • 10

      #3
      Thanks however I don't think that is the problem because:

      1. I have many other expression that don't use AND/OR and spaces and they work just fine.

      2. The problem is intermittent, you would expect a problem to be persistent if there's a syntax error.

      Comment

      • Hone
        Junior Member
        • Jul 2015
        • 1

        #4
        Hi, royc.
        I meet the same problem.
        Are you already solved it?

        Comment

        Working...