I've made a "flush hosts" on my MariaDB (SQL command line) after observing same issue with a bash script making DB request. This action solved my issue for the script but not for Zabbix: user "zabbix"@"serverC" doesn't work but user "zabbix"@"%" works. I would rather have "zabbix"@"serverC".
I noticed something in zabbix-server log: ==> cannot send list of active checks to "IP_SERVERC": host [SERVERB] not found

And this for 2 servers whose hostname I changed.
The new hostname for these 2 servers have been modified on Zabbix interface, checks are available without issue for days.
And when I have a look a the discovery result on Zabbix interface I can notice that these 2 severs are the only ones whitout their hostname ==> IP_SERVER (hostname) while the others have it.
So I really think it's a Zabbix issue, like cache or others (I sought everywhere in zabbix DB and I've not found anything with old servers name, only current servers name).
(I've created a DNS server on a VM for having a specific DNS and not my internet box. All my servers and my NAS actually use this DNS instead of my internet box. All works, locally or other.)
I noticed something in zabbix-server log: ==> cannot send list of active checks to "IP_SERVERC": host [SERVERB] not found


And this for 2 servers whose hostname I changed.
The new hostname for these 2 servers have been modified on Zabbix interface, checks are available without issue for days.
And when I have a look a the discovery result on Zabbix interface I can notice that these 2 severs are the only ones whitout their hostname ==> IP_SERVER (hostname) while the others have it.
So I really think it's a Zabbix issue, like cache or others (I sought everywhere in zabbix DB and I've not found anything with old servers name, only current servers name).
(I've created a DNS server on a VM for having a specific DNS and not my internet box. All my servers and my NAS actually use this DNS instead of my internet box. All works, locally or other.)
So, when you now give the Zabbix database user permissions based on the hostname that you see in the MariaDB host_cache (also removing all other Zabbix user permissions), is it working?
Comment