Well the situation is like this... I am monitoring several wireless network devices. Some are connected by 3G and others via some other technology.
As you probably already know wireless connections are situational. Sometimes they work and sometimes they don't. What I want to achieve is to reduce the number of false positive alarms from these devices.
The current plan is to increase the timeout to the maximum (60 seconds) and the number of retries to a high enough number to make false positives statistically unprobable.
I would still like the devices to get polled quite often for a quick response, for example each 4 minutes (240 seconds).
The optimal situation would be the following:
Poll repeatedly each 4 minutes...
For each successful poll, the timer resets and after 4 minutes another poll happens, except for when the poll is not successful. When this happens no new polling instances get started and the polling instance that failed continues with a timeout of 60 seconds for X number of repetitions.
As soon as one of the retries is successful, the timer resets and in 4 minutes time a new polling instance gets created anew. If however after all of the retries, the device still fails to respond to the polls an alarm should get created and in 4 minutes time, it's time to check if the connectivity has been restored.
Hopefully the image is a little clearer now... This is why I'm interested in understanding if new polling instances get started independently or not.