...G...... [ZBX-7098] reset error count, if there were no errors; process_logrt() split into smaller functions