Ad Widget

Collapse

web.test.fail function

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zabbear
    Junior Member
    • Sep 2017
    • 3

    #1

    web.test.fail function

    Hi,

    I have created a trigger for a check on a web scenario (using the example below). It triggers an alert if there are 3 values equal 0 within 60secs.

    My understanding was that web.test.fail returns the step number when it fails.

    What I do not understand is how the following example would trigger an alert - if there is only 1 step in web scenario for test.example.com, and it fails, wouldn't web.test.fail would return 1 instead of 0? Wouldn't that mean there would be 3 values equal 1 within 60 secs? In this case, how would the following example work? Am I understanding this wrong?


    Trigger example:
    {hosts1:web.test.fail[test.example.com].count(60,0)}=3
  • zabbear
    Junior Member
    • Sep 2017
    • 3

    #2
    Does anyone know what this function does or how it gets triggered?

    {hosts1:web.test.fail[test.example.com].count(60,0)}=3

    Comment

    • vesper1978
      Member
      • Nov 2016
      • 59

      #3
      Depending on how you have you web scenario configured to update, either that will never trigger or will always trigger when the site you're monitoring is up.

      At least that's how it looks to me.

      Why not do something more like this:

      web.test.fail[test.example.com].last=1

      or

      web.test.fail[test.example.com].avg(5m)>0.9

      Obviously in the avg example, use a value for the time inteval, and a value for the trigger that suits you.

      Comment

      • zabbear
        Junior Member
        • Sep 2017
        • 3

        #4
        What if I have configured this way?

        Click image for larger version

Name:	zabbix.PNG
Views:	1
Size:	15.1 KB
ID:	313938

        Comment

        Working...