Let us consider this possibility.
If your cycle_save script is similar to ours it goes something like this:
– cycle SMAT to create something with “old” in the file name
– then archive the “old”/cycled SMAT file
If that is your case you could run into a problem if someone manually cycles SMAT so an “old”/cycled SMAT file already exists and gets blown away when your cycle SMAT script runs, making it look like SMAT lost track of messages.
The way I fixed this problem was to archive any “old”/cycled SMAT files before cycling SMAT and then archive the “old”/cycled SMAT again.
This still does not prevent a problem when someone manaully cycles SMAT twice before the “old”/cycled SMAT file has a chance to be archive before being overwritten.
If someone cycled saved SMAT twice in a row quickly with your slower message flow that might create an empy file.
This might occur if someone meant to cycle SMAT “in” and the SMAT “out” but ended up doing the same one either “in” or “out” twice.
You might have to put some debug in your cycle save script to help gain more insight.
For example some debug output to show the site/thread information being cycled and a directory listing before and after each action takend of the process directory.
Also pay attention if the same thread is having the problem or does the problem seem random.
Russ Ross
RussRoss318@gmail.com