Jump to content

Docker management (uptime kuma style) with auto restart for crashes etc


Recommended Posts

Recently noticing more instances of certain dockers crashing or pausing for whatever reason, for example today for some reason after a home assistant update - Mosquito & zigbee2mqqt needed a restart. This has happened a few times now in a row. Probably a bug in the container somewhere.. Occasionally one of the arr's or nzbget goes down. The issue is I only really notice if I try to download something or turn & light on / off etc.

 

Solutions wise - Has anyone for example  say ever made a script that says if home assistant is updated then restart these containers too? I’m not sure if unraid gives us access to this level of detail?

 

I've looked at 'Uptime Kuma' but I dont want to enter the exact details for sort of 50 different docker containers. There should be a way to pull this automatically and then somehow use an unraid API to do scripts for restarting any dead containers.

 

So it would be super cool to have something that integrate uptime kuma into unraid a bit more or something within the built in docker engine that I can use to see statuses and send a re-start command to. 

 

What do you think? Would anyone else enjoy something like this? 🙂

Edited by dopeytree
Link to comment
16 hours ago, dopeytree said:

I've looked at 'Uptime Kuma' but I dont want to enter the exact details for sort of 50 different docker containers. There should be a way to pull this automatically and then somehow use an unraid API to do scripts for restarting any dead containers.

Doesnt 'Uptime Kuma' automatically gather all the info it needs for docker containers? The only setup I see listed on its "How to Monitor Docker Containers" page is instructions on how to give the container access to the docker socket.

Link to comment

Its under settings
 there.PNG.878454cbd1aa9812798c74caa5303068.PNG


Just checked for a tiny bit. it pulls the numbers of containers, but you need to setup the monitor for the specific docker container by id/name. Setup a webhook for notifications on failure and then send that webhook to something like docker image puller to force restart that container.

Edited by Mainfrezzer
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...