Seemingly random inaccessibility outside of network that is fixed on reboot

I have had an Ubuntu server for roughly 5 years or so that I've used for various things, with hosting plex and game servers chief among them as far as my friends and family are concerned. Over the last few months, I've started getting calls that the server was down, often when I was actively watching something with plex. The issue is always solved by simply rebooting the server. My question is two-fold.

First, how can I setup something to periodically check my network's ports? The current setup has led to me being unable to do much troubleshooting, as I generally find out about the issue due to it actively being an inconvenience and would prefer to not keep people waiting, so I keep doing the short-term fix. I would like the opportunity to be warned in-house when it is going wrong without needing to manually ask a website to test my ports, mostly due to how busy I tend to get causing me to forget stuff like this. I should be able to code an application of some sort to do this for me, but I find it hard to believe there is no solution for this out there already.

Secondly, where should I start checking in determining the source of this problem? Normally, from the issue I'm describing, my assumption would be that this is just my router crapping out and it's just shutting the door. However, my quick bursts of research have told me that the services hosted on my other machine remain available, leading me to believe it's something to do with my linux server itself. If I am out of the house, my main solution for fixing this is to remote into another computer on my network and reboot the server via SSH, which hasn't failed yet.

I would greatly appreciate any assistance you folks might be able to provide, as I'm having difficulty finding a stretch of time where I can look into this at all, plus I'm looking to hosting a game server again sometime soon, which would further cut down on how much time I would have to investigate rather than quickfix.

Posted Dec 28, 2023, 2:27 AM UTC

32
nmariusp•

Does your hardware (motherboard UEFI BIOS screen) have a hardware watchdog https://en.wikipedia.org/wiki/Watchdog_timer ?

1
UltricOP•

Not certain. The case/motherboard is an old Dell Optiplex 7010, I looked through the bios for anything like that and didn't see any mention.

1