Ad Widget

Collapse

How make to close all triggers when host is offline?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sognatore
    Junior Member
    • Mar 2018
    • 23

    #1

    How make to close all triggers when host is offline?

    Hello, help me, please.
    I want to close all active triggers with comments "Host offline", when host has shutdown.
    I change "Value" to "0" in table "Triggers", change "Acknowledged" to "1" in table "Events", update row in table "Problem", create row in table "Acknowledges" (but after the manual creation when closing in web-interface, an error occurs that the record with this ID already exists, and i don't understand where this counter is stored).
    But, maybe, this problem can be solved in another way? Tell me, please, if there is such a method.

    P.S. Sorry, if my english is too bad
  • pransakti
    Junior Member
    • Jul 2018
    • 5

    #2
    i think you can use the host status: enable-disable mode. it will disable all the trigger those "Shutdown Host" had.

    Comment

    • Sognatore
      Junior Member
      • Mar 2018
      • 23

      #3
      No, this option does not suit me
      I need to close triggers, not disable host.
      I think i can use API event.acknowledge, but i don't know, how make this scipt

      Comment

      Working...