Ad Widget

Collapse

Force node to re-read its configuration

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Niels
    Senior Member
    • May 2007
    • 239

    #1

    Force node to re-read its configuration

    Given that a node is up and running, how can I force it to re-read its entire configuration from its master?
  • Niels
    Senior Member
    • May 2007
    • 239

    #2
    I had a look in src/zabbix_server/nodewatcher/nodesender.c, and while I don't understand a number of things, this stands out:
    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);
    	}
    }
    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.

    Comments?

    Comment

    Working...