Page 1 of 1

Headless Server Health

Posted: Tue Oct 03, 2023 11:58 am
by Tuetenk0pp
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/....

Re: Headless Server Health

Posted: Wed Oct 04, 2023 7:52 pm
by adam_bise
Factorio using UDP and I don't know if it responds to a rudimentary test connection. So maybe monitor the process or service.

Linux? try using watchdogsec and onfailure systemd options. With those you could run scripts to send an alert email or restart the service, etc..

Re: Headless Server Health

Posted: Fri Nov 10, 2023 11:17 am
by Tuetenk0pp
I was able to do it with the server list and an access token, then searched for my server name. This puts more load on the multiplayer server since it needs to send the entire server list but it works if the game is changes.

Re: Headless Server Health

Posted: Fri Nov 10, 2023 11:34 am
by Sanqui
You can also pass the host address to get-game-details, e.g. https://multiplayer.factorio.com/get-ga ... 0.0.1:1234 (replace with your public IP address and port number).