Announcement

Collapse
No announcement yet.

Add Web-Scenario-Trigger to Template

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Add Web-Scenario-Trigger to Template

    Hey everyone,

    I'm feeling really stupid ATM. I just want to add a trigger to one of my templates that should give a High-Problem if the template's Web Scenario fails at any point.

    I am using the following expression (as by documentation)

    {Template Name:web.test.error[Scenario].strlen()}>0 and {Template Name:web.test.fail[Scenario].min()}>0

    However, I always receive the error "Host "Template Name" does not exist or you have no access to this host."


    Please anyone, what am I missing?

    #2
    Sorry for the shameless bump.

    I know this should be basic, but I still can't figure this out.

    Comment


      #3
      Someone? Anyone? ... Noone?

      Comment


        #4
        I am still trying to figure this stupid basic stuff out.

        Can _anyone_ lend me hand?

        Comment


          #5
          Well, what is the name of the template you are configuring. I doubt its called "Template Name"

          Comment


            #6
            No of course not. I created a new one named "Monday Basic Web Check" (Visible Name: Basic Web Check)

            EDIT:

            Wow. I don't know what changed. But now it works. I am not sure, but maybe I was using the Visible Name instead of the Template Name.

            FML, but thanks for asking the right question, @Mechanix.

            Follow-up question:

            I have a web scenario with just one step. That step calls the URL and awaits a HTTP:200.

            What would be the correct trigger for this situation (basically, "trigger if web scenario step fails")?
            Last edited by MondaySam; 15-01-2018, 13:18.

            Comment


              #7
              You can use this trigger :

              Code:
              {host:web.test.error[Scenario].strlen()}>0 and {host:web.test.fail[Scenario].min()}>0
              explained here: https://www.zabbix.com/documentation...nitoring/items
              Be sure to replace "host" and "Scenario" to reflect your environment.

              Comment


                #8
                Okay, great.

                That's the one I was using, but I get the message:

                Incorrect trigger function "min()" provided in expression. Invalid first parameter.

                Thank you very very much @Mechanix!
                Last edited by MondaySam; 15-01-2018, 14:45.

                Comment


                  #9
                  Try this one:

                  Code:
                  {host:web.test.error[Scenario].strlen()}>0 and {host:web.test.fail[Scenario].last()}>0

                  Comment


                    #10
                    That one did the trick!

                    I can't thank you enough!

                    Comment

                    Working...
                    X