I found that database table 'hostmacro' contains host macros for already deleted hosts. If hosts in zabbix are often deleted and added, 'hostmacro' contains some garbage data (old macros). I think procedure must be:
when host has deleted, all macros for this host also must be deleted from database. Is not right?
when host has deleted, all macros for this host also must be deleted from database. Is not right?

Comment