Moving zabbix proto function in its own file.