Ad Widget

Collapse

Trigger Creation Issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • monarch684
    Member
    • Oct 2017
    • 32

    #1

    Trigger Creation Issue

    I am setting up a Template to handle HTML error codes on our intranet site. I originally set up the trigger on the hostname being monitored so I could see how this trigger was set up.

    Essentially it gave me this:
    Code:
    {Portal:web.test.rspcode[Portal,Home].last()}=400
    I tried using macros in the Template to make the template universal.
    Code:
    {Template App HTML Errors:web.test.rspcode[{Host.Name},{Item.Description}].last()}=400
    This failed.

    Error Message:
    Incorrect item key "web.test.rspcode[{Host.Name},{Item.Description}]" provided for trigger expression on "Template App HTML Errors".
    The scenario step is just looking for response code 200 at the current moment. I wanted to get a bit more specific with my triggers to help know what the problem is before we just start looking at everything.

    What can I change to make this work?

    Zabbix 3.4
    Ubuntu 16.04
  • tcilmo
    Senior Member
    • Nov 2016
    • 122

    #2
    Originally posted by monarch684
    I am setting up a Template to handle HTML error codes on our intranet site. I originally set up the trigger on the hostname being monitored so I could see how this trigger was set up.

    Essentially it gave me this:
    Code:
    {Portal:web.test.rspcode[Portal,Home].last()}=400
    I tried using macros in the Template to make the template universal.
    Code:
    {Template App HTML Errors:web.test.rspcode[{Host.Name},{Item.Description}].last()}=400
    This failed.



    The scenario step is just looking for response code 200 at the current moment. I wanted to get a bit more specific with my triggers to help know what the problem is before we just start looking at everything.

    What can I change to make this work?

    Zabbix 3.4
    Ubuntu 16.04


    We use this trigger expression to alert us when status code 200 is not received. We use the macro {$VANITY_URL} to make the template universal.

    {Simple Web for VANITY_URL:web.test.fail[https page load {$VANITY_URL}].min(#2)}>0



    Comment

    Working...