Ad Widget

Collapse

Delayed trigger if a website is unavailable

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hunor
    Junior Member
    • Mar 2022
    • 3

    #1

    Delayed trigger if a website is unavailable

    Hi there,

    Im new with the zabbix platform, so i need a little help with a trigger that i want to delay for 30minutes.
    At the moment my trigger looks like this:

    {HOST:web.test.error[Webpage].strlen()}>0 and {HOST:web.test.fail[Webpage].last()}>0

    This is working fine but i want to delay this trigger that will lauch an Action that will be a remote command to the zabbix agent on the host to restart the server with "c:\windows\system32\shutdown.exe -r -f"

    Can someone point me in the right direction to make this happen? Thank you!

  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    There are two things to consider.
    1. How you write your triggers, in combination with how frequently you gather your items, determines how quickly Zabbix detects that there's a problem.
    2. How you design your Actions, especially "action steps" and Escalations, determines how long Zabbix waits to take action after a problem has been detected.
    Before it's clear what should be done to meet your goal, you might want to clarify whether you want to wait 30 minutes before the problem is detected, OR whether you want to detect the problem quickly but not do anything about it for 30 minutes. Which answer you choose will determine whether you need to adjust your triggers or adjust your actions/action steps/escalations.

    Comment

    • hunor
      Junior Member
      • Mar 2022
      • 3

      #3
      Thank you for the fast reply!

      whether you want to detect the problem quickly but not do anything about it for 30 minutes.
      I have set the update interval for the Item to 1m. When the trigger is activated i woud like to delay the reboot action for 30 minutes. In case if someone is working to resolve the issue.

      Comment

      • hunor
        Junior Member
        • Mar 2022
        • 3

        #4
        As a test i made an Action to see if the remote reboot works, but i just got an error that says "Unsupported item key" . Do i need to enable remote commands on the zabbix agent?

        Click image for larger version

Name:	1.png
Views:	463
Size:	15.4 KB
ID:	441835

        Click image for larger version

Name:	2.jpg
Views:	477
Size:	42.3 KB
ID:	441836
        Click image for larger version

Name:	3.jpg
Views:	457
Size:	51.7 KB
ID:	441837

        Comment

      Working...