<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Standby Server DB Replication]]></title><description><![CDATA[<p dir="auto">Hi</p>
<p dir="auto">I need a standby netxms server, i also want to ensure the secondary server has a 48 hours old data, i tried using mariadb delayed replication feature, with no success,</p>
<p dir="auto">I ge the below error when the DB replicates</p>
<p dir="auto">Last_SQL_Error: Error 'Duplicate entry '26022462' for key 'PRIMARY'' on query. Default database: 'netxms'. Query: 'INSERT INTO event_log (event_id,event_code,event_timestamp,event_source,zone_uin,dci_id,event_severity,event_message,root_event_id,user_tag,raw_data) VALUES (26022462,6,1547457625,166937,0,0,0,'Node status changed to NORMAL',0,'','\n   \"id\": 26022462,\n   \"code\": 6,\n   \"name\": \"SYS_NODE_NORMAL\",\n   \"timestamp\": 1547457625,\n   \"source\": 166937,\n   \"dci\": 0,\n   \"severity\": 0,\n   \"tag\": null,\n   \"message\": \"Node status changed to NORMAL\",\n   \"parameters\": [\n      {\n         \"name\": \"\",\n         \"value\": \"1\"\n      }\n   ]\n')'<br />
  Replicate_Ignore_Server_Ids:</p>
<p dir="auto">is there something i need to do to get this setup working?</p>
<p dir="auto">And now i got the error</p>
<p dir="auto">Last_SQL_Error: Error 'Duplicate entry '352689' for key 'PRIMARY'' on query. Default                                                                                                            database: 'netxms'. Query: 'INSERT INTO alarms (alarm_id,creation_time,last_change_time,source_obje                                                                                                           ct_id,zone_uin,source_event_code,message,original_severity,current_severity,alarm_key,alarm_state,ac                                                                                                           k_by,resolved_by,hd_state,hd_ref,repeat_count,term_by,timeout,timeout_event,source_event_id,ack_time                                                                                                           out,dci_id,alarm_category_ids) VALUES (352689,1547544189,1547544189,264663,0,5,'Interface \"Port9\"                                                                                                            changed state to DOWN (IP Addr: UNSPEC/0, IfIndex: 9)',2,2,'IF_DOWN_0x000409D7_9',0,0,0,0,'',1,0,0,4                                                                                                           3,26042528,0,0,'')'</p>
<p dir="auto">Thanks</p>
<p dir="auto">Clifford Dsouza</p>
]]></description><link>https://forum.netxms.org/topic/5793/standby-server-db-replication</link><generator>RSS for Node</generator><lastBuildDate>Fri, 13 Nov 2026 11:50:09 GMT</lastBuildDate><atom:link href="https://forum.netxms.org/topic/5793.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 15 Jan 2019 04:00:53 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Standby Server DB Replication on Wed, 23 Jan 2019 19:39:46 GMT]]></title><description><![CDATA[<p dir="auto">i would down netxms daemon, then run <code>nxdbmgr -d -f check</code></p>
<p dir="auto">restart netxsd daemon, did it fix anything? no? down netxms daemon again.</p>
<p dir="auto">enter your mysql console, and use the netxms database</p>
<p dir="auto">then, remove that duplicate entry with a mysql query</p>
<blockquote>
<p dir="auto">delete from netxms.event_log where event_id = 26022462;</p>
</blockquote>
<p dir="auto">exit, 'check' netxms database, restart netxms daemon, if a similiar issue occurs for what seems like infinity, you can repeat, or clear out the table with truncate netxms.event_log</p>
]]></description><link>https://forum.netxms.org/post/25245</link><guid isPermaLink="true">https://forum.netxms.org/post/25245</guid><dc:creator><![CDATA[meshnet]]></dc:creator><pubDate>Wed, 23 Jan 2019 19:39:46 GMT</pubDate></item></channel></rss>