Ad Widget

Collapse

Error message when creating trigger

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stu
    Junior Member
    • Jun 2017
    • 12

    #1

    Error message when creating trigger

    Hi

    I have a website thats configured as a host, as well as a template with a web scenario that checks whether the site is up or down.

    As part of the template I am trying to configure a trigger.

    Here is what I have so far

    {{HOST.NAME:web.test.fail[Check {HOST.NAME} is up].last()}}<>0

    However, i'm getting the error Incorrect trigger expression. Check expression part starting from "{{HOST.NAME:web.test.fail[Check {HOST.NAME} is up].last()}}<>0".


    How can I resolve this?
  • volter
    Member
    Zabbix Certified Specialist
    • Dec 2011
    • 85

    #2
    Originally posted by stu
    Hi

    I have a website thats configured as a host, as well as a template with a web scenario that checks whether the site is up or down.

    As part of the template I am trying to configure a trigger.

    Here is what I have so far

    {{HOST.NAME:web.test.fail[Check {HOST.NAME} is up].last()}}<>0

    However, i'm getting the error Incorrect trigger expression. Check expression part starting from "{{HOST.NAME:web.test.fail[Check {HOST.NAME} is up].last()}}<>0".


    How can I resolve this?
    Instead of ...

    {{HOST.NAME:web.test.fail[Check {HOST.NAME} is up].last()}}

    I guess you want ...

    {HOST.NAME:web.test.fail[Check {HOST.NAME} is up].last()}

    That's just one pair of curly braces -- not two!

    Comment

    Working...