I have an iMac "Core 2 Duo" 2.66 20-Inch (Early 2009), model code iMac 9,1, that I'm using as a server. This iMac has no working Ethernet port; part of the reason I have it is I got it for next to nothing because the Ethernet port was damaged in a storm.
I'm currently using it for a server. I installed a 5TB hard drive in it, mirrored to an external 5TB hard drive, and it acts as one of my two off-site backup servers (I have one in Portland and one in Vancouver). It's running the current version of macOS Sierra and OS X Server.
There is an ongoing problem with this computer: about once a week, the AirPort connection drops for no reason. I've tried every troubleshooting step I can think of, up to and including a complete wipe and reinstall. There's no pattern to when the AirPort connection drops. When it does, if I'm not in Portland I have to have my Portland partner go in and reset it. Invariable, AirPort is turned on but not connected. She just chooses the router name from the dropdown menu and it's back again.
And yes, it is set to connect to this router automatically. If I turn AirPort off and back on again, it connects.
Given that this problem has defied all my troubleshooting and I need a solution, does anyone know of software that monitors for the presence of an Internet connection, and, if one is not detected, can be made to turn AirPort off and on again automatically? While such an app wouldn't fix the underlying problem, it would at least keep the server on the network.