Ad Widget

Collapse

whitespace in str trigger function? (is it a regexp?)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jshshawca
    Junior Member
    • Jul 2006
    • 3

    #1

    whitespace in str trigger function? (is it a regexp?)

    First: Zabbix is great. Let me know if I can do anything to contribute.

    I am trying to create a trigger using the str function like this:

    Code:
    {somehost:snmptraps.str(Link Down)}=1
    But the web interface will not accept it, it gives me the error:

    Code:
    Expression [{somehost:snmptraps.str(Link Down)}] does not match to [server:key.func(param)]
    It works perfectly however if there are no spaces or whacky characters, like this:

    Code:
    {somehost:snmptraps.str(thelinkisdown)}=1
    Unfortunately i have traps and strings that i need to match spaces and other characters. My QUESTION is:

    Is this the web frontend doing poor validation or would this not work even if the frontend would accept it and add it to the database. I would love the ablity to use regular expressions here.

    Thanks,

    -J
Working...