It COULD be the modem locking up that causes the script to throw a wobbler, or it COULD be the other way round, although I don't think so (based on never seeing the same issue at my end).
If you start again with minimal adjustment/other programs running, testing for a "sufficient" period, you may be able to detect what causes the problem.
Just a thought, when swapping modems, have you also swapped the power supply and/or modem to master socket cable?
rs-w is another monitoring program with a nice looking GUI, written by Eric (roseway), currently probably more suited for snapshot and shorter term monitoring as it uses memory to store its data rather than permanent log files.
http://forum.kitz.co.uk/index.php/topic,11736.0.htmlIf the methodical approach doesn't resolve matters for you, I'll have a look at how to exit the script cleanly.
Basically, it would be on the lines of:-
if attempts are greater than xx or errors are greater than yy, kill specific running processes, delete any temporary files & exit the script.
Any variables set by the script will be lost as they are only temporary for the life of the running script anyway.
Hopefully, that would mean that just a 1 minute sample is lost & it would be ready for a fresh start at the next scheduled run.
Is there anything in the ongoing Error.LOG to suggest what may be causing this problem?
e.g. temporary files not being deleted at the end of the previous run, failed login attempts etc.
I may have mentioned it previously, but I have seen a temporary failed "attempt to connect to a non-existent pipe" type message when trying to obtain snapshot graphs in the middle of the ongoing harvest.
Trying again after a few seconds works just fine.
I wonder if the timing of your scheduled Teststats2.BAT could actually be the cause?
It may be worth running the ongoing getstats.BAT script with the Teststats2.BAT schedule disabled for a while - just as an elimination check?