# Gateway Health Notifications

**URL:** <https://forum.inductiveautomation.com/t/gateway-health-notifications/58598>\
**Category:** Ignition\
**Created:** [April 19, 2022, 4:30pm UTC](https://forum.inductiveautomation.com/t/gateway-health-notifications/58598 "2022-04-19T16:30:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ferrelethana](https://avatars.discourse-cdn.com/v4/letter/f/41988e/32.png) [@ferrelethana](https://forum.inductiveautomation.com/u/ferrelethana)\
**Post date:** [April 19, 2022, 4:30pm UTC](https://forum.inductiveautomation.com/t/gateway-health-notifications/58598/1 "2022-04-19T16:30:26Z")

</div>

I have recently upgrade my server that hosts my Ignition gateway to have more RAM as we were exceeding our RAM usage. However, I am wondering if anyone has a way to generate an email that would only trigger if the gateway’s RAM usage goes above 80%. Has anyone found a way to do this?

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [April 19, 2022, 4:33pm UTC](https://forum.inductiveautomation.com/t/gateway-health-notifications/58598/2 "2022-04-19T16:33:38Z")

</div>

There are several ways to do this, one is to create an expression tag using

```auto
{[System]Gateway/Performance/Memory Usage}

```

Then create an alarm with a threshold of the equivalent to 80% memory usage and then generate the email with an alarm pipeline.

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [April 19, 2022, 4:34pm UTC](https://forum.inductiveautomation.com/t/gateway-health-notifications/58598/3 "2022-04-19T16:34:57Z")

</div>

Under System-\>Gateway in tags are many of the gateway heatlh indicators. I Think memory usage is what you want -  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/8/481062d4e750d5acf8401f9de46be46731bfe1cb.png)

Then you can create a Gateway Tag Change event on it, check the value, and use `system.net.sendEmail` to the appropriate parties.

I do this with the production database connection to let me know if Ignition loses contact with the database for some reason.

If you have the alarm module you can also do it as @josborn lays out
