..F....... [ZBX-8847] refactored the code to avoid using the "is_template" parameter