I have been creating a prototype using Pi Zeros, they work great at my house but are failing often at customer's site (other side of country).
I do not know if the Pi kernel is crashing or if it's ethernet related.
I have isolated things such as a deticated network, high end power supplies, sd cards but the same issues keeps causing the pi to crash after ~1day.
When the crash occurs I must call customer and ask them to power cycle the device.
I am currently configuring watchdog timer to reset after kernel crash.
But if it is a faulty ethernet driver then what would be a simple (reliable) way to also reset the pi if the ethernet becomes unreachable and/or it can no longer ping the main server?
I could imagine using cron so the pi will attempt to ping the main server every 30 seconds, but I don't know of any method to initiate a restart after ping fails a couple times in a row, and I would love to hear if anyone can suggest some approaches?