I like the idea of the device for remote locations that send data home.
My suggestions for change would be as follows
note: Im guessing you may have come up with or discarded some of these options as feature creep, but Ill list them anyway.
1. Increase the number of devices that can be polled so something significant like 32 or 64.
This way the device can be targeted at home and small business users
Not a problem, but with current code, a non-responding target 'blocks' - so the device can get very slow in a storm of failures. Looking into a non-blocking rewrite. The actual code is there to support many more (probably 32 total - EEPROM limited)2. Allow independent delay, latency, attempts and failure thresholds per device with a system wide default setting for simplicity.
eg. Pinging a VPN link, may loose 2-3 pings whilst it is being established. But then loose none until a link timeout occurs.
You would want to change the latency and failure thresholds and probably the retry vales.
Already in there.3. Change the configuration options so that your non-DHCP and DHCP ip ranges must be in the same IP scope (or warn against this).
Interesting thought, but I also know of corporate networks where this may conflict.eg. Power outage, both the Ping unit is powered on at the same time as the router. Router takes longer to boot. Ping device uses non-DHCP ip address. Router starts. Ping device power cycles it because it cannot ping the network.
Also it would not be accessible on the network during this process, requiring someone to power cycle the ping device once the router was up and running.
I'll certainly think about this. Perhaps an optional force DHCP mode to wait/retry until DCHP is assigned.. But in most business environments they'll want it static anyway so it can be NATted etc.4. I would add in the option of supporting multiple external hosts for events like a reboot/power cycle of a connected device.
For cost and simplicity it only has a single relay, but configurable to which target failures can fire it.eg. if you monitor a single server (work email server from home for example).
And that server gets rebooted (taken off line for the day for a restore/upgrade etc).
The device will consider the link down and reboot the gateway router and probably keep doing so until the single server is available again.
Yes - so you either choose a different host, or set the retry & thresholds to act after ... say 10 mins of outage.I think this is what orion242 meant in his earlier post not multiple IP addresses for the Ping Gadget.
ahh ok. Makes sense now.You could allow for a number of critical devices (eg. ISP DNS servers, ISP inbound gateway).
Other items, further upstream than the ISP link would be silly to reboot against (and have nothing to do with the local routers ability to manipulate the availability of).
Already in there.Or for critical devices you could traceroute them and take action when the hop count is reduced. every 10 minutes when pings are successful, trace route to record the number of hops. Then on a fail, you can take action.
eg. Ping device -> ping failure. Trace route device -> hop count less than previous target -> reboot
Maybe v2. It could be intimidating to setup for small office / home user.In terms of a price point, I would have thought that you would need to keep it under the cost of a home ADSL type router to attract a decent number of customers. This would mean sub $50, which would be a bit more difficult.
hope that is all constructive
Thanks - very.