Outage Notification - Event / Script Action for planned outages

Moedeb
Tera Guru

I'm trying to fire an event for a planned outage up to 5 days before the outage begins to send a notification email to subscribed users for a Business Service.

The current OOB setup with the Outage.Begin event works as expected for both a Service Outage and a Service Degradation, with the notification email sending when the outage is logged, since it is happening at the time.

The Planned Outage notification however also sends when the start happens and the event fires, this is really to late at that point, the idea of a planned outage I would think is to send advanced warning to those affected?

Can anyone please assist with this?

I'm guessing that I would create a copy of the 'outage.begin.notif' event and create an new script action related to that event? The issue is I would have no real clue how to script the condition that fires this event, so any help would be much appreciated.

Of course if I'm on the wrong track please feel free to point me the right way 🙂

1 ACCEPTED SOLUTION

If you script the job to only look for planned outages that are 5 days from the time it runs then you won't pick up the same one twice. For example let's say you have a planned outage on 10/29 and the scheduled job ran today (10/24). The job will identify all planned outages for 10/29 and send the appropriate notifications. Then tomorrow on 10/25 the job will run and look for outages on 10/30. This process will continue and will identify the planned outages for the next subsequent day. On the other hand if the script is created to look for planned outages during the next 5 days then yes it will send out multiple notifications till the condition is no longer met.

View solution in original post

4 REPLIES 4

DScroggins
Kilo Sage
Hello, You can create a scheduled job that runs daily. The scheduled job script can look for planned outages within the next 5 days and then fire the outage.begin.notif event using gs.eventQueue(). Hope this helps. --David

Thanks for the idea, question though:

once the event has fired and a notification has been sent for a planned outage, will it send again the next day because it will still be within the next 5 days?

If you script the job to only look for planned outages that are 5 days from the time it runs then you won't pick up the same one twice. For example let's say you have a planned outage on 10/29 and the scheduled job ran today (10/24). The job will identify all planned outages for 10/29 and send the appropriate notifications. Then tomorrow on 10/25 the job will run and look for outages on 10/30. This process will continue and will identify the planned outages for the next subsequent day. On the other hand if the script is created to look for planned outages during the next 5 days then yes it will send out multiple notifications till the condition is no longer met.

Any chance of some help with the script here please @David Scroggins ? I really don't know how to write it so it will pick it up