Hello,
Have a strange recurring issue that I believe I've narrowed down to missing database triggers.
Essentially, any new hosts that are created via an API script will not run any checks applied from a template, and checking their ping has an error saying "Cannot execute script. Unknown host identifier". As soon as I restart the zabbix-server.service daemon, everything starts working as expected.
This also will randomly occur to existing hosts. We will notice some hosts will appear as up/down when being in the opposite state and not be running any service checks. As soon as the zabbix-server.service is restarted, it refreshes and the items start checking again.
During these events, there is nothing in journalctl or zabbix-server.log indicating an error.
From my research, it sounds like I may be missing database triggers, but I have no idea what triggers I may be missing or what to look for in my database (I am not a database guy).
Would appreciate any guidance on what tables/databases I can nuke or replace. Or where how I could restore a functioning backup from /usr/share/zabbix-sql-scripts/mysql/server.sql.gz
Have a strange recurring issue that I believe I've narrowed down to missing database triggers.
Essentially, any new hosts that are created via an API script will not run any checks applied from a template, and checking their ping has an error saying "Cannot execute script. Unknown host identifier". As soon as I restart the zabbix-server.service daemon, everything starts working as expected.
This also will randomly occur to existing hosts. We will notice some hosts will appear as up/down when being in the opposite state and not be running any service checks. As soon as the zabbix-server.service is restarted, it refreshes and the items start checking again.
During these events, there is nothing in journalctl or zabbix-server.log indicating an error.
From my research, it sounds like I may be missing database triggers, but I have no idea what triggers I may be missing or what to look for in my database (I am not a database guy).
Would appreciate any guidance on what tables/databases I can nuke or replace. Or where how I could restore a functioning backup from /usr/share/zabbix-sql-scripts/mysql/server.sql.gz
Comment