Trigger orchestration workflow when Event/Alert is created in service now .

Manish Shetty2
Giga Contributor

Hello Experts,

I am new to servicenow and just started learning.i need your support and guidance to achieve following requirement in servicenow.

We have a requirement where Monitoring tool sends event to service now saying process is down. event/alert in service  has  details like  Description :(process is down) ,nodename: (name.of.node.com) and metric_name:(processname).

now as soon as i receive this alert i want to trigger a orchestration workflow which will use power shell to start the process on the host .

is it possible to trigger a orchestration workflow when event/alert is generated in service now ? if yes how can i use value in nodename & metric name of alert in orchestration workflow ?

following command i want to run using  "runpower shell script" activity .

WMIC PROCESS CALL Create "processname.exe"

Processname & hostname i want to dynamically pass to workflow from event/alert variable.

 Looking forward for your support  & thanks in advance 🙂

Thank You,
Manish

1 ACCEPTED SOLUTION

Not applicable

Hi Manish,

In service now event management we have the functionality to trigger particular workflow when the alert is generated. We can achieve this using Alert Action Rule in which we can specify the condition to meet that will generate an alert. As soon as the condition is met we can trigger the workflow defined in Remediation.

Go to Alert Action Rule=>Specify Condition=>select Remediation=>select the workflow which should be executed when alert is generated. If you select Manual Remediation- You can decide that if you want to run the workflow or not and if you select Automatic- SNOW will automatically execute that workflow.

While creating the workflow you can use the information which is coming the the event e.g process name and node name in your workflow.

Hope this answer helps you!

 

Regards,

Kiran

View solution in original post

5 REPLIES 5

Not applicable

Hi Manish,

In service now event management we have the functionality to trigger particular workflow when the alert is generated. We can achieve this using Alert Action Rule in which we can specify the condition to meet that will generate an alert. As soon as the condition is met we can trigger the workflow defined in Remediation.

Go to Alert Action Rule=>Specify Condition=>select Remediation=>select the workflow which should be executed when alert is generated. If you select Manual Remediation- You can decide that if you want to run the workflow or not and if you select Automatic- SNOW will automatically execute that workflow.

While creating the workflow you can use the information which is coming the the event e.g process name and node name in your workflow.

Hope this answer helps you!

 

Regards,

Kiran