Ad Widget

Collapse

Web monitoring questions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rimbalza
    Junior Member
    • Dec 2019
    • 3

    #1

    Web monitoring questions

    Hi, using 4.4 (docker) here.
    I setup web check scenarios and have triggers to send emails when one step goes in error and basically works as expected.
    I have a question: I have several dozen hosts, each with its own scenario.
    I want to create a template to attach to all those hosts that triggers an error when any of the steps generates errors.
    My triggers are currently like
    {Prod server:web.test.fail[Home].last()}<>0
    Having "Home" as the scenario name. Of course this is not ok for several servers, but it is a required parameter (BTW where can I found the doc for that function? Google is not able to find anything nor the search on zabbix web site)
    I need something like * to put in the scenario name, to fit any scenario where the template/trigger is attached. In a post I found $URL but this does not work.

    Also I'm checking for required words in the response body, and this works ok. But I need to check when a word is NOT present in the response. I have a deep check page that returns like:
    Database: ok
    Redis: ok
    Queues: ok
    and so on.
    I need an alert when i find a "ko" in the page. Any online checking tool has the switch to decide if the word/regex you insert must be present or must NOT be present.

    Also, is there a way to get the step that failed in the alert?
    Thanks
    Last edited by rimbalza; 27-12-2019, 17:01.
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    Originally posted by rimbalza
    I have a question: I have several dozen hosts, each with its own scenario.
    I want to create a template to attach to all those hosts that triggers an error when any of the steps generates errors.
    My triggers are currently like
    {Prod server:web.test.fail[Home].last()}<>0
    Having "Home" as the scenario name. Of course this is not ok for several servers, but it is a required parameter
    Use a user-macro for the scenario name. Set a default value for your user-macro at the template level, and then override it at the host level.



    Originally posted by rimbalza
    (BTW where can I found the doc for that function? Google is not able to find anything nor the search on zabbix web site)


    Originally posted by rimbalza
    Also, is there a way to get the step that failed in the alert?
    web.test.fail[]'s item value is the last step that failed (or 0 if none of them failed), so it's probably just the .last() function, again.

    Comment

    • rimbalza
      Junior Member
      • Dec 2019
      • 3

      #3
      Thank you Tim!

      Comment

      Working...