...G...PS. [ZBXNEXT-101] thread_num variable renamed to server_num, and minor code improvements