Be notified if a container stops responding

Today I’m asking for features left and right!!

The day before yesterday I woke up and my button to open my roller shutter had no effect :frowning:
After going to check over SSH what was going on (docker ps -a) I saw that my z2m container had been stopped for several hours.
I have no idea why (Gladys update?).

I was wondering if it would be possible to be notified, either in the dashboard / or via a scene with a Telegram message, that one of the containers is OFF.

What do you think?

Try looking on the Node-RED side, it should be doable!

Zigbee2MQTT is independent of Gladys, and so are the updates. And I can confirm there was a recent one for Z2M.

1 Like

Hello,

Indeed, Node-RED can solve your problem. For example, you can run a curl against Gladys and verify that it responds with a valid HTTP response (e.g., 200)

Okay, I’ll take a closer look, thanks for the advice!

You’re speaking Chinese to me, but if I’m not any dumber than anyone else I should be able to find it with this curl :ok_hand::grin:

I’ll make it simpler :smiley: curl is just a command that lets you request a web page (like your browser does). The difference is that it’s all command-line. So you can get the status of the request (whether it worked or not) typically you’ve already seen 404 Not Found (that’s an HTTP response). Usually on a GET (simply retrieving a page) you get a 200 code :slight_smile:

But yes on Node-RED you have very simple things like you can probably use (http_requests)

1 Like

Thank you very much for those clarifications @damalgos !