Hi all,
I've recently tried to insert a trigger expression to determine whether the number of calls on a Cisco AS5300 dropped by 5 since the last check. As such, I entered the following expression:
{Gateway1:Port0_Calls.change(0)}<(-5)
However, I get an error message stating that an Invalid Expression was entered, which upon trial and error was found to be due to the negative sign in front of the 5. I tried entering it as:
{Gateway1:Port0_Calls.change(0)}<-5
but got the exact same error message. The same thing applies for the use of the minus sign in almost every part of an expression.
I've since temporarily found a solution to the problem by bypassing the expression validity check in triggers.php, but it also means that an invalid expression can be entered into the database only to be detected during runtime.
Has anybody else encountered this problem, and if so, is there a solution to this? Am I just not doing this thing right?
Thanks in advance!
I've recently tried to insert a trigger expression to determine whether the number of calls on a Cisco AS5300 dropped by 5 since the last check. As such, I entered the following expression:
{Gateway1:Port0_Calls.change(0)}<(-5)
However, I get an error message stating that an Invalid Expression was entered, which upon trial and error was found to be due to the negative sign in front of the 5. I tried entering it as:
{Gateway1:Port0_Calls.change(0)}<-5
but got the exact same error message. The same thing applies for the use of the minus sign in almost every part of an expression.
I've since temporarily found a solution to the problem by bypassing the expression validity check in triggers.php, but it also means that an invalid expression can be entered into the database only to be detected during runtime.
Has anybody else encountered this problem, and if so, is there a solution to this? Am I just not doing this thing right?
Thanks in advance!
Comment