TTN Gateway Down/Up Email alerts

Hi,

I wrote a small piece of code to alert users when the gateway goes down and also when it comes back online. The script is based on ttnctl and needs postfix to send emails . Hope someone finds it helpful.

Regards,

Akshai M

2 Likes

This is going to list mainly “Gateway is up” log lines ?

I suggest only listing something like:

Gateway was down from [startdowntime] to [enddowntimetime] ([N] minutes)