factoriotools / factorio-docker

Factorio headless server in a Docker container
https://hub.docker.com/r/factoriotools/factorio/
MIT License
926 stars 219 forks source link

server health #476

Open tuetenk0pp opened 1 year ago

tuetenk0pp commented 1 year ago

See this forum post: https://forums.factorio.com/viewtopic.php?f=49&t=109008

I want to monitor if my headless server is up and be notified if it crashes for some reason. I use uptime kuma for other websites and apps I host and also used it to monitor my factorio server. I was able to make it work with this link: https://multiplayer.factorio.com/get-ga ... s/16025881. But unfortunately, the game-id changes from time to time, e.g. when I upload a new save or update the server.

Is there a way to monitor the server directly instead of monitoring the multiplayer.factorio.com server? Something like https://HOSTNAME:PORT/....

C0bai commented 11 months ago

I would expand upon this as i'm looking for something similar, but what i would like it a way to be notified (pref by Discord) when a new build is ready - all options i've found are CLI based and i just cannot get on with them. I just need a super simple set of variables on the setup that says monitor this docker, send message to discord when an update is ready - is it possible?

If it could encompass server health at the same time, bonus.

tuetenk0pp commented 11 months ago

I would expand upon this as i'm looking for something similar, but what i would like it a way to be notified (pref by Discord) when a new build is ready - all options i've found are CLI based and i just cannot get on with them. I just need a super simple set of variables on the setup that says monitor this docker, send message to discord when an update is ready - is it possible?

If it could encompass server health at the same time, bonus.

You can do automatic updates with Watchtower (https://containrrr.dev/watchtower/). It also does notifications for email and other platforms. No Discord.

C0bai commented 10 months ago

Honestly i've tried twice with Watchtower, and then with a few others, they just all go down the CLI route and i can never get them working :(