Replies: 1 comment 2 replies
-
new functions were introduced in expr to manage built-in functions: The $env variable is a map of all variables passed to the expression.
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
im currently doing some work on a company internal nagios monitoring check.
it lets a user query whichever http json api they need and dynamically set the warning/critical status based on a user provided expression and the response body as env.
i was going to update expr because of the date functions added.
however updating expr to the latest version caused a problem elsewhere and i was not able to solve it yet.
one API returns a property
count
in the response json that previously was used in an expression as suchcount > 0
.since the update to 1.15.4 this produces the following error:
the way i understand the message is that the new version now tries to parse count as the built-in
count()
function instead of a variablecount
in the env.i have found neither a bug report nor any hint in the docs.
So my questions are:
Beta Was this translation helpful? Give feedback.
All reactions