Need to send Notification when MID server goes down and check status until up

Josh80
Tera Expert

Hi -

Our MID server went down and there was only one notification that was sent to someone no longer responsible.

I want to automate this so that it follows our standard alerting process; this will require a notification be sent but have a script or something that sends out a notification 'alert' until the status is 'Up'

I'm not sure I want to add a scheduled job which would run every 15 minutes or so, or if I can only have the notification sent once the status changes.

Any recommendations on how?

Thanks

1 ACCEPTED SOLUTION

Hi Josh,



I generally attach my workflows to a record whenever possible and avoid scripting to start/stop/reset. I have friends who have told me that it is possible to attach workflows to non-task records, but I've never done it. The dictionary attribute workflow=true may be required. Again, all untested, but clues that may help.



If you want to do it from script, this should help.



Workflow Script - ServiceNow Wiki



Be bold - be brave.


View solution in original post

7 REPLIES 7

Hi Josh,



I generally attach my workflows to a record whenever possible and avoid scripting to start/stop/reset. I have friends who have told me that it is possible to attach workflows to non-task records, but I've never done it. The dictionary attribute workflow=true may be required. Again, all untested, but clues that may help.



If you want to do it from script, this should help.



Workflow Script - ServiceNow Wiki



Be bold - be brave.


Hi,



I'd try creating an incident when it goes down... that way you can track the steps taken to fix the issue if you wish and send it to other teams.   Have that incident associated to a workflow that does the checking / notification etc etc.



Ben



Mike Allen
Mega Sage

I used to just have a business rule on the mid server table that when the status changed to Offline, open an incident.   It worked for us in my past life.