Ad Widget

Collapse

Web Page Monitor: Trigger configuration

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alessandro.ranieri
    Junior Member
    • Mar 2024
    • 7

    #1

    Web Page Monitor: Trigger configuration

    Dear all,
    new to zabbix and to the forum as well, so nice to vMeet all of you.
    I'm trying to configure a trigger to monitor a specific test web page. Basically I'd like to see if the system can trigger a failure of the web page and one the issue is fixed I'd like to have the probel solved automatically. In order to achive this I configured the followings for my custom trigger:


    Problem expression: last(/DEDHTVEAAMONE.corp.loc/web.test.error[VeeamONE Status],#5)<>0

    Recovery expression​: last(/DEDHTVEAAMONE.corp.loc/web.test.error[VeeamONE Status],#5)=0

    Trigger is able to detetct a page failure, but is not able to clear the error when the page back to normal status.

    Thanks in advance for your help and suggestion.

    BR

    A.
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    last(/host/item,#5) .. what does it mean? it is not "five latest values"... it is "fifth latest value" ... So your current trigger will fire if 5th error message from last is not "0"... and would recover if 5th is "0" (and would not require recovery expression at all) .. but I doubt you have error messages like "0" Maybe you want to use web.test.fail item ?

    Comment

    • alessandro.ranieri
      Junior Member
      • Mar 2024
      • 7

      #3
      Originally posted by cyber
      last(/host/item,#5) .. what does it mean? it is not "five latest values"... it is "fifth latest value" ... So your current trigger will fire if 5th error message from last is not "0"... and would recover if 5th is "0" (and would not require recovery expression at all) .. but I doubt you have error messages like "0" Maybe you want to use web.test.fail item ?
      https://www.zabbix.com/documentation...web.test.error
      HI cyber,
      many thanks for your comment. I will have a look at the documentation and try to adjust my config as suggested.
      BR
      A.

      Comment

      • alessandro.ranieri
        Junior Member
        • Mar 2024
        • 7

        #4
        Originally posted by alessandro.ranieri

        HI cyber,
        many thanks for your comment. I will have a look at the documentation and try to adjust my config as suggested.
        BR
        A.
        Hi Cyber, succesfully setup my alert. Thanks for your help.

        Comment

        Working...