thanks for the information and log files, this makes bug tracking a lot easier! The problem is in the underlying mysql db driver which gets hickups when there are frequent disconnects.
According to your log file, the connection to the database is frequently dropped. Is your system overloaded? Maybe you can try polling less frequently.
Anyway, I'll see if I can find out why the db driver gets these hickups.
Yes, on days off the monitoring computer remained at office without control. And the Internet provider performed technological operations, connection therefore was lost. But I hope that in an ideal, the program should work correctly at loss and connection recovery.