# Ignition Gateway DOWN alarm

**URL:** <https://forum.inductiveautomation.com/t/ignition-gateway-down-alarm/15499>\
**Category:** Ignition\
**Created:** [September 28, 2017, 7:34pm UTC](https://forum.inductiveautomation.com/t/ignition-gateway-down-alarm/15499 "2017-09-28T19:34:47Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![bward](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bward/32/4058_2.png) [@bward](https://forum.inductiveautomation.com/u/bward)\
**Post date:** [September 28, 2017, 7:34pm UTC](https://forum.inductiveautomation.com/t/ignition-gateway-down-alarm/15499/1 "2017-09-28T19:34:47Z")

</div>

I’m trying to figure out a way to get an emailed alert if my Ignition Gateway goes down for some reason, but it has to be more than just a server down condition like a ping; I want to know the Gateway application is running. The trick is trying to use Ignition itself to send this alarm…doesn’t seem possible if the Gateway if offline! It seems like the trick to get this to work will be to set up a notification that it WAS down if it comes back up; that doesn’t help us know when its crashed/erred/frozen/etc but it does at least tell us that something happened. Is there a script of some kind that can do this?

---

<div class="post-metadata">

**Author:** ![rrdiggy76](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rrdiggy76/32/3741_2.png) [@rrdiggy76](https://forum.inductiveautomation.com/u/rrdiggy76)\
**Post date:** [September 28, 2017, 7:58pm UTC](https://forum.inductiveautomation.com/t/ignition-gateway-down-alarm/15499/2 "2017-09-28T19:58:23Z")

</div>

You could maybe send a message from windows when the Ignition Gateway service faults?

---

<div class="post-metadata">

**Author:** ![bward](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bward/32/4058_2.png) [@bward](https://forum.inductiveautomation.com/u/bward)\
**Post date:** [September 28, 2017, 8:01pm UTC](https://forum.inductiveautomation.com/t/ignition-gateway-down-alarm/15499/3 "2017-09-28T20:01:42Z")

</div>

I had that thought too, but the team I work on is stuck on the idea of using the Ignition “alarm pipeline” to send the alert due to concerns about consistency in our alerting structure.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [September 28, 2017, 8:39pm UTC](https://forum.inductiveautomation.com/t/ignition-gateway-down-alarm/15499/4 "2017-09-28T20:39:44Z")

</div>

You can use [Gateway Startup Scripts](https://docs.inductiveautomation.com/display/DOC79/Startup+Scripts) to run some code after the gateway has started back up again - but your initial suggestion is totally correct; if the Ignition service crashes then there’s no way for Ignition to send out a notification of that event.

---

<div class="post-metadata">

**Author:** ![bward](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bward/32/4058_2.png) [@bward](https://forum.inductiveautomation.com/u/bward)\
**Post date:** [September 28, 2017, 8:44pm UTC](https://forum.inductiveautomation.com/t/ignition-gateway-down-alarm/15499/5 "2017-09-28T20:44:08Z")

</div>

Without knowing anything about them (yet), “Gateway Startup Scripts” is probably exactly what I’m after. Thanks for the tip, I’ll educate myself on the topic.

---

<div class="post-metadata">

**Author:** ![hamlinjr](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/hamlinjr/32/8228_2.png) [@hamlinjr](https://forum.inductiveautomation.com/u/hamlinjr)\
**Post date:** [September 29, 2017, 2:38pm UTC](https://forum.inductiveautomation.com/t/ignition-gateway-down-alarm/15499/6 "2017-09-29T14:38:29Z")

</div>

Here’s the script that I’ve been using for a long time to do the same thing. Drop this in a Shutdown Gateway Event Script, and modify for your needs:

```auto
import time
now = time.strftime("%c")
body = "I shut down @ %s" % now
recipients = ["my email address"]
system.net.sendEmail(smtpProfile="CityEmail", fromAddr="we have a SCADA email account", subject="Going down!", body=body, html=0, to=recipients)

```

I also have a very similar one on a Startup script to alert me when it comes back up.

---

<div class="post-metadata">

**Author:** ![Rusty](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rusty/32/19859_2.png) [@Rusty](https://forum.inductiveautomation.com/u/Rusty)\
**Post date:** [August 31, 2020, 1:23pm UTC](https://forum.inductiveautomation.com/t/ignition-gateway-down-alarm/15499/7 "2020-08-31T13:23:04Z")

</div>

> [@hamlinjr](#):
>
> import time now = time.strftime("%c") body = "I shut down @ %s" % now recipients = ["my email address"] system.net.sendEmail(smtpProfile="CityEmail", fromAddr="we have a SCADA email account", subject="Going down!", body=body, html=0, to=recipients)

Thanks @hamlinjr, that works perfectly!

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [August 31, 2020, 1:25pm UTC](https://forum.inductiveautomation.com/t/ignition-gateway-down-alarm/15499/8 "2020-08-31T13:25:13Z")

</div>

Beware! That’ll only work if it goes down deliberately. If it crashes, you won’t get any notice.

---

<div class="post-metadata">

**Author:** ![Kyle\_Chase](https://avatars.discourse-cdn.com/v4/letter/k/9de0a6/32.png) [@Kyle\_Chase](https://forum.inductiveautomation.com/u/Kyle_Chase)\
**Post date:** [August 31, 2020, 7:41pm UTC](https://forum.inductiveautomation.com/t/ignition-gateway-down-alarm/15499/9 "2020-08-31T19:41:22Z")

</div>

I would use something like statping to keep track of server uptime and to notify you of downtime.

> **[statping/statping](https://github.com/statping/statping)**
>
> Status Page for monitoring your websites and applications with beautiful graphs, analytics, and plugins. Run on any type of environment. - statping/statping

---

<div class="post-metadata">

**Author:** ![Rusty](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rusty/32/19859_2.png) [@Rusty](https://forum.inductiveautomation.com/u/Rusty)\
**Post date:** [February 16, 2021, 9:48pm UTC](https://forum.inductiveautomation.com/t/ignition-gateway-down-alarm/15499/10 "2021-02-16T21:48:00Z")

</div>

I ended up additionally setting up a gateway network between two gateways. Each gateway monitors the “GatewayRunning” tag of the other gateway and sends out an email if the tag is false.

---

<div class="post-metadata">

**Author:** ![Ayanakoji](https://avatars.discourse-cdn.com/v4/letter/a/22d042/32.png) [@Ayanakoji](https://forum.inductiveautomation.com/u/Ayanakoji)\
**Post date:** [October 4, 2024, 7:52pm UTC](https://forum.inductiveautomation.com/t/ignition-gateway-down-alarm/15499/11 "2024-10-04T19:52:32Z")

</div>

> [@Rusty](#):
>
> GatewayRunning

where did you find this tag sir?

---

<div class="post-metadata">

**Author:** ![Matrix\_Engineering](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matrix_engineering/32/19781_2.png) [@Matrix\_Engineering](https://forum.inductiveautomation.com/u/Matrix_Engineering)\
**Post date:** [October 4, 2024, 8:43pm UTC](https://forum.inductiveautomation.com/t/ignition-gateway-down-alarm/15499/12 "2024-10-04T20:43:11Z")

</div>

> **[System Tags | Ignition User Manual](https://docs.inductiveautomation.com/docs/8.1/platform/tags/types-of-tags/system-tags#metrics-folder)**
>
> System Tags provide status about the Ignition system, such as memory usage, performance metrics, and so on. System Tags cannot be deleted or modified. To view the System Tags in the Tag Browser, go to the Tag Provider Selector and select System.

---

<div class="post-metadata">

**Author:** ![Rusty](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rusty/32/19859_2.png) [@Rusty](https://forum.inductiveautomation.com/u/Rusty)\
**Post date:** [October 7, 2024, 1:43pm UTC](https://forum.inductiveautomation.com/t/ignition-gateway-down-alarm/15499/13 "2024-10-07T13:43:53Z")

</div>

You'll need to set up a gateway network between the gateways and then you should see a system tag with that name.
