manual:api:reference:action:create

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
manual:api:reference:action:create [2021/04/19 18:16]
martins-v old revision restored (2021/03/31 14:25)
manual:api:reference:action:create [2021/04/19 18:16]
martins-v fixing inconsistent entity names in the example
Line 31: Line 31:
 === Create a trigger action === === Create a trigger action ===
  
-Create an action that will be run when a trigger from host "30045" that has the word "​memory"​ in its name goes into problem state. The action must first send a message to all users in user group "​7"​. If the event is not resolved in 4 minutes, it will run script "​3"​ on all hosts in group "​2"​. On trigger recovery it will notify all users who received any messages regarding the problem before. On trigger update, message with custom subject and body will be sent to all who left acknowledgments and comments via all media types.+Create an action that will be run when a trigger from host "10084" that has the word "​memory"​ in its name goes into problem state. The action must first send a message to all users in user group "​7"​. If the event is not resolved in 4 minutes, it will run script "​3"​ on all hosts in group "​2"​. On trigger recovery it will notify all users who received any messages regarding the problem before. On trigger update, message with custom subject and body will be sent to all who left acknowledgments and comments via all media types.
  
 Request: Request:
Line 136: Line 136:
 === Create a discovery action === === Create a discovery action ===
  
-Create an action that will link discovered hosts to template "30085".+Create an action that will link discovered hosts to template "10091".
  
 Request: Request: