Given that a node is up and running, how can I force it to re-read its entire configuration from its master?
Ad Widget
Collapse
Force node to re-read its configuration
Collapse
X
-
I had a look in src/zabbix_server/nodewatcher/nodesender.c, and while I don't understand a number of things, this stands out:
Apparently the node_configlog is a list of "what has been changed per node", and once a record has been successfully send to a node, it's deleted. The table content on my own master node seems to support that theory, as it doesn't contain records for other nodes, meaning "everything is fully synced". This method makes it impossible to re-sync items later.Code:if( (master_nodeid!=0) && (slave_nodeid != 0)) { if((master_result == SUCCEED) && (slave_result == SUCCEED)) { DBexecute("delete from node_configlog where nodeid=%d and sync_slave=1 and sync_master=1 and conflogid<=" ZBX_FS_UI64, nodeid, maxlogid); } }
Comments?
Comment