Hi guys,
Everything been working fine... However today after importing a few hosts i noticed that the queue on my proxy was backing up and my log shows the following:
1579:20171024:185120.988 received configuration data from server at "10.44.56.37", datalen 3464253
1579:20171024:185122.057 [Z3005] query failed: [1062] Duplicate entry '10664-vfs.fs.size[c:,pfree]' for key 'items_1' [insert into items (itemid,type,snmp_community,snmp_oid,hostid,key_,d elay,status,value_type,trapper_hosts,snmpv3_securi tyname,snmpv3_securitylevel,snmpv3_authpassphrase, snmpv3_privpassphrase,lastlogsize,logtimefmt,delay _flex,params,ipmi_sensor,data_type,authtype,userna me,password,publickey,privatekey,mtime,flags,inter faceid,port,snmpv3_authprotocol,snmpv3_privprotoco l,snmpv3_contextname,description) values (188471,0,'','',10664,'vfs.fs.size[c:,pfree]',180,0,0,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,530,'',0,0,'',''),(188472,0,'','',10664,'v fs.fs.size[d:,pfree]',180,0,0,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,530,'',0,0,'',''),(188473,0,'','',10664,'v fs.fs.size[e:,pfree]',180,0,0,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,530,'',0,0,'',''),(188474,0,'','',11629,'n et.if.discovery',3600,0,4,'','',0,'','',0,'','','' ,'',0,0,'','','','',0,1,1726,'',0,0,'',''),(188475 ,0,'','',11629,'system.discovery[QUOTAS]',3600,1,4,'','',0,'','',0,'','','','',0,0,'','',' ','',0,1,1726,'',0,0,'',''),(188476,0,'','',11629, 'system.discovery[SERVICES]',3600,0,4,'','',0,'','',0,'','','','',0,0,'','',' ','',0,1,1726,'',0,0,'',''),(188477,0,'','',11629, 'vfs.fs.discovery',3600,0,4,'','',0,'','',0,'','', '','',0,0,'','','','',0,1,1726,'',0,0,'',''),(1884 78,0,'','',11629,'net.if.in[{#IFNAME}]',300,0,3,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,2,1726,'',0,0,'',''),(188479,0,'','',11629,' net.if.out[{#IFNAME}]',300,0,3,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,2,1726,'',0,0,'',''),(188480,0,'','',11629,' perf_counter["\\234(0 {#FSNAME})\\1482"]',300,0,0,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,2,1726,'',0,0,'',''),(188481,0,'','',11629,' perf_counter["\\234(0 {#FSNAME})\\212"]',300,0,0,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,2,1726,'',0,0,'',''),(188482,7,'','',11629,' quota[free,{#QUPATH}]',300,0,3,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,2,null,'',0,0,'',''),(188483,7,'','',11629,' quota[limit,{#QUPATH}]',300,0,3,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,2,null,'',0,0,'',''),(188484,7,'','',11629,' quota[used,{#QUPATH}]',300,0,3,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,2,null,'',0,0,'',''),(188485,0,'','',11629,' service_state[{#SVCNAME}]',600,0,3,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,2,1726,'',0,0,'',''),(188486,0,'','',11629,' vfs.fs.size[{#FSNAME},free]',300,0,3,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,2,1726,'',0,0,'',''),(188487,0,'','',11629,' vfs.fs.size[{#FSNAME},pfree]',300,0,0,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,2,1726,'',0,0,'',''),(188488,0,'','',11629,' vfs.fs.size[{#FSNAME},total]',3600,0,3,'','',0,'','',0,'','','','',0,0,'','',' ','',0,2,1726,'',0,0,'',''),(188489,0,'','',11629, 'vfs.fs.size[{#FSNAME},used]',300,0,3,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,2,1726,'',0,0,'',''),(188490,0,'','',11629,' agent.hostname',3600,0,1,'','',0,'','',0,'','','', '',0,0,'','','','',0,0,1726,'',0,0,'',''),(188491, 0,'','',11629,'agent.ping',60,0,3,'','',0,'','',0, '','','','',0,0,'','','','',0,0,1726,'',0,0,'','') ,(188492,0,'','',11629,'agent.version',3600,0,1,'' ,'',0,'','',0,'','','','',0,0,'','','','',0,0,1726 ,'',0,0,'',''),(188493,10,'','',11629,'echo.someth ing[{$HOST_LOCATION}]',3600,0,1,'','',0,'','',0,'','','','',0,0,'','',' ','',0,0,1726,'',0,0,'',''),(188494,10,'','',11629 ,'echo.something[{$HOST_MATERIAL}]',3600,0,1,'','',0,'','',0,'','','','',0,0,'','',' ','',0,0,1726,'',0,0,'',''),(188495,10,'','',11629 ,'echo.something[{$HOST_ROLE}]',3600,0,1,'','',0,'','',0,'','','','',0,0,'','',' ','',0,0,1726,'',0,0,'',''),(188496,7,'','',11629, 'eventlog[Application,,"Warning|Error|Failure",,,,skip]',300,0,2,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,null,'',0,0,'',''),(188497,7,'','',11629,' eventlog[DFS Replication,,"Warning|Error|Failure",,,,skip]',300,0,2,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,null,'',0,0,'',''),(188498,7,'','',11629,' eventlog[DNS Server,,"Warning|Error|Failure",,,,skip]',300,0,2,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,null,'',0,0,'',''),(188499,7,'','',11629,' eventlog[Directory Service,,"Warning|Error|Failure",,,,skip]',300,0,2,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,null,'',0,0,'',''),(188500,7,'','',11629,' eventlog[File Replication Service,,"Warning|Error|Failure",,,,skip]',300,0,2,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,null,'',0,0,'',''),(188501,7,'','',11629,' eventlog[Security,,"Warning|Error|Failure",,,,skip]',300,0,2,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,null,'',0,0,'',''),(188502,7,'','',11629,' eventlog[System,,"Warning|Error|Failure",,,,skip]',300,0,2,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,null,'',0,0,'',''),(188503,3,'','',11629,' icmpping',60,0,3,'','',0,'','',0,'','','','',3,0,' ','','','',0,0,1726,'',0,0,'',''),(188504,3,'','', 11629,'icmppingloss',300,0,3,'','',0,'','',0,'','' ,'','',0,0,'','','','',0,0,1726,'',0,0,'',''),(188 505,0,'','',11629,'net.dns[,https://www.google.com,A]',300,0,3,'...,'perf_counter["\\1848(_Total)\\1850"]',300,0,0,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,1726,'',0,0,'',''),(188507,0,'','',11629,' perf_counter[\\234(_Total)\\1402]',300,0,0,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,1726,'',0,0,'',''),(188508,0,'','',11629,' perf_counter[\\234(_Total)\\1404]',300,0,0,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,1726,'',0,0,'',''),(188509,0,'','',11629,' perf_counter[\\2\\16]',300,0,0,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,1726,'',0,0,'',''),(188510,0,'','',11629,' perf_counter[\\2\\18]',300,0,0,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,1726,'',0,0,'',''),(188511,0,'','',11629,' perf_counter[\\2\\250]',300,0,3,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,1726,'',0,0,'',''),(188512,0,'','',11629,' proc.num[]',300,0,3,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,1726,'',0,0,'',''),(188513,0,'','',11629,' server.domain',3600,0,1,'','',0,'','',0,'','','',' ',0,0,'','','','',0,0,1726,'',0,0,'',''),(188514,0 ,'','',11629,'server.roles',3600,0,1,'','',0,'','' ,0,'','','','',0,0,'','','','',0,0,1726,'',0,0,'', ''),(188515,0,'','',11629,'server.serial',3600,0,1 ,'','',0,'','',0,'','','','',0,0,'','','','',0,0,1 726,'',0,0,'',''),(188516,0,'','',11629,'system.bo ottime',600,0,3,'','',0,'','',0,'','','','',0,0,'' ,'','','',0,0,1726,'',0,0,'',''),(188517,0,'','',1 1629,'system.hostname[host]',3600,0,1,'','',0,'','',0,'','','','',0,0,'','',' ','',0,0,1726,'',0,0,'',''),(188518,0,'','',11629, 'system.hostname[netbios]',3600,0,1,'','',0,'','',0,'','','','',0,0,'','',' ','',0,0,1726,'',0,0,'',''),(188519,0,'','',11629, 'system.localtime',600,0,3,'','',0,'','',0,'','',' ','',0,0,'','','','',0,0,1726,'',0,0,'',''),(18852 0,0,'','',11629,'system.swap.size[,free]',300,0,3,'','',0,
Now when i cat the logs of my proxy i see:
" failed to update local proxy configuration copy: database error"
Whats happened?
For some reason there seems to be a load of data in my log when i cat the proxy.log
Is it worth me deleting the database and starting again? I've tried rebooting the proxy, but everytime i cat the logs i keep getting the error above
Any help would be greatly appreciated. I am running a Centos 7 & MySql 5.7 proxy running zabbix 3.2.4
When i log into the master it does see the proxy. My proxy currently has the following:
Host Count: 298
Item Count 16,772
Required Performance (vps) 52.3
Is there any cleanup/maintenence i can perform on the database to get rid of the stale info?
Everything been working fine... However today after importing a few hosts i noticed that the queue on my proxy was backing up and my log shows the following:
1579:20171024:185120.988 received configuration data from server at "10.44.56.37", datalen 3464253
1579:20171024:185122.057 [Z3005] query failed: [1062] Duplicate entry '10664-vfs.fs.size[c:,pfree]' for key 'items_1' [insert into items (itemid,type,snmp_community,snmp_oid,hostid,key_,d elay,status,value_type,trapper_hosts,snmpv3_securi tyname,snmpv3_securitylevel,snmpv3_authpassphrase, snmpv3_privpassphrase,lastlogsize,logtimefmt,delay _flex,params,ipmi_sensor,data_type,authtype,userna me,password,publickey,privatekey,mtime,flags,inter faceid,port,snmpv3_authprotocol,snmpv3_privprotoco l,snmpv3_contextname,description) values (188471,0,'','',10664,'vfs.fs.size[c:,pfree]',180,0,0,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,530,'',0,0,'',''),(188472,0,'','',10664,'v fs.fs.size[d:,pfree]',180,0,0,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,530,'',0,0,'',''),(188473,0,'','',10664,'v fs.fs.size[e:,pfree]',180,0,0,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,530,'',0,0,'',''),(188474,0,'','',11629,'n et.if.discovery',3600,0,4,'','',0,'','',0,'','','' ,'',0,0,'','','','',0,1,1726,'',0,0,'',''),(188475 ,0,'','',11629,'system.discovery[QUOTAS]',3600,1,4,'','',0,'','',0,'','','','',0,0,'','',' ','',0,1,1726,'',0,0,'',''),(188476,0,'','',11629, 'system.discovery[SERVICES]',3600,0,4,'','',0,'','',0,'','','','',0,0,'','',' ','',0,1,1726,'',0,0,'',''),(188477,0,'','',11629, 'vfs.fs.discovery',3600,0,4,'','',0,'','',0,'','', '','',0,0,'','','','',0,1,1726,'',0,0,'',''),(1884 78,0,'','',11629,'net.if.in[{#IFNAME}]',300,0,3,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,2,1726,'',0,0,'',''),(188479,0,'','',11629,' net.if.out[{#IFNAME}]',300,0,3,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,2,1726,'',0,0,'',''),(188480,0,'','',11629,' perf_counter["\\234(0 {#FSNAME})\\1482"]',300,0,0,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,2,1726,'',0,0,'',''),(188481,0,'','',11629,' perf_counter["\\234(0 {#FSNAME})\\212"]',300,0,0,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,2,1726,'',0,0,'',''),(188482,7,'','',11629,' quota[free,{#QUPATH}]',300,0,3,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,2,null,'',0,0,'',''),(188483,7,'','',11629,' quota[limit,{#QUPATH}]',300,0,3,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,2,null,'',0,0,'',''),(188484,7,'','',11629,' quota[used,{#QUPATH}]',300,0,3,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,2,null,'',0,0,'',''),(188485,0,'','',11629,' service_state[{#SVCNAME}]',600,0,3,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,2,1726,'',0,0,'',''),(188486,0,'','',11629,' vfs.fs.size[{#FSNAME},free]',300,0,3,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,2,1726,'',0,0,'',''),(188487,0,'','',11629,' vfs.fs.size[{#FSNAME},pfree]',300,0,0,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,2,1726,'',0,0,'',''),(188488,0,'','',11629,' vfs.fs.size[{#FSNAME},total]',3600,0,3,'','',0,'','',0,'','','','',0,0,'','',' ','',0,2,1726,'',0,0,'',''),(188489,0,'','',11629, 'vfs.fs.size[{#FSNAME},used]',300,0,3,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,2,1726,'',0,0,'',''),(188490,0,'','',11629,' agent.hostname',3600,0,1,'','',0,'','',0,'','','', '',0,0,'','','','',0,0,1726,'',0,0,'',''),(188491, 0,'','',11629,'agent.ping',60,0,3,'','',0,'','',0, '','','','',0,0,'','','','',0,0,1726,'',0,0,'','') ,(188492,0,'','',11629,'agent.version',3600,0,1,'' ,'',0,'','',0,'','','','',0,0,'','','','',0,0,1726 ,'',0,0,'',''),(188493,10,'','',11629,'echo.someth ing[{$HOST_LOCATION}]',3600,0,1,'','',0,'','',0,'','','','',0,0,'','',' ','',0,0,1726,'',0,0,'',''),(188494,10,'','',11629 ,'echo.something[{$HOST_MATERIAL}]',3600,0,1,'','',0,'','',0,'','','','',0,0,'','',' ','',0,0,1726,'',0,0,'',''),(188495,10,'','',11629 ,'echo.something[{$HOST_ROLE}]',3600,0,1,'','',0,'','',0,'','','','',0,0,'','',' ','',0,0,1726,'',0,0,'',''),(188496,7,'','',11629, 'eventlog[Application,,"Warning|Error|Failure",,,,skip]',300,0,2,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,null,'',0,0,'',''),(188497,7,'','',11629,' eventlog[DFS Replication,,"Warning|Error|Failure",,,,skip]',300,0,2,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,null,'',0,0,'',''),(188498,7,'','',11629,' eventlog[DNS Server,,"Warning|Error|Failure",,,,skip]',300,0,2,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,null,'',0,0,'',''),(188499,7,'','',11629,' eventlog[Directory Service,,"Warning|Error|Failure",,,,skip]',300,0,2,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,null,'',0,0,'',''),(188500,7,'','',11629,' eventlog[File Replication Service,,"Warning|Error|Failure",,,,skip]',300,0,2,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,null,'',0,0,'',''),(188501,7,'','',11629,' eventlog[Security,,"Warning|Error|Failure",,,,skip]',300,0,2,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,null,'',0,0,'',''),(188502,7,'','',11629,' eventlog[System,,"Warning|Error|Failure",,,,skip]',300,0,2,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,null,'',0,0,'',''),(188503,3,'','',11629,' icmpping',60,0,3,'','',0,'','',0,'','','','',3,0,' ','','','',0,0,1726,'',0,0,'',''),(188504,3,'','', 11629,'icmppingloss',300,0,3,'','',0,'','',0,'','' ,'','',0,0,'','','','',0,0,1726,'',0,0,'',''),(188 505,0,'','',11629,'net.dns[,https://www.google.com,A]',300,0,3,'...,'perf_counter["\\1848(_Total)\\1850"]',300,0,0,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,1726,'',0,0,'',''),(188507,0,'','',11629,' perf_counter[\\234(_Total)\\1402]',300,0,0,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,1726,'',0,0,'',''),(188508,0,'','',11629,' perf_counter[\\234(_Total)\\1404]',300,0,0,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,1726,'',0,0,'',''),(188509,0,'','',11629,' perf_counter[\\2\\16]',300,0,0,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,1726,'',0,0,'',''),(188510,0,'','',11629,' perf_counter[\\2\\18]',300,0,0,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,1726,'',0,0,'',''),(188511,0,'','',11629,' perf_counter[\\2\\250]',300,0,3,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,1726,'',0,0,'',''),(188512,0,'','',11629,' proc.num[]',300,0,3,'','',0,'','',0,'','','','',0,0,'','','' ,'',0,0,1726,'',0,0,'',''),(188513,0,'','',11629,' server.domain',3600,0,1,'','',0,'','',0,'','','',' ',0,0,'','','','',0,0,1726,'',0,0,'',''),(188514,0 ,'','',11629,'server.roles',3600,0,1,'','',0,'','' ,0,'','','','',0,0,'','','','',0,0,1726,'',0,0,'', ''),(188515,0,'','',11629,'server.serial',3600,0,1 ,'','',0,'','',0,'','','','',0,0,'','','','',0,0,1 726,'',0,0,'',''),(188516,0,'','',11629,'system.bo ottime',600,0,3,'','',0,'','',0,'','','','',0,0,'' ,'','','',0,0,1726,'',0,0,'',''),(188517,0,'','',1 1629,'system.hostname[host]',3600,0,1,'','',0,'','',0,'','','','',0,0,'','',' ','',0,0,1726,'',0,0,'',''),(188518,0,'','',11629, 'system.hostname[netbios]',3600,0,1,'','',0,'','',0,'','','','',0,0,'','',' ','',0,0,1726,'',0,0,'',''),(188519,0,'','',11629, 'system.localtime',600,0,3,'','',0,'','',0,'','',' ','',0,0,'','','','',0,0,1726,'',0,0,'',''),(18852 0,0,'','',11629,'system.swap.size[,free]',300,0,3,'','',0,
Now when i cat the logs of my proxy i see:
" failed to update local proxy configuration copy: database error"
Whats happened?
For some reason there seems to be a load of data in my log when i cat the proxy.log
Is it worth me deleting the database and starting again? I've tried rebooting the proxy, but everytime i cat the logs i keep getting the error above
Any help would be greatly appreciated. I am running a Centos 7 & MySql 5.7 proxy running zabbix 3.2.4
When i log into the master it does see the proxy. My proxy currently has the following:
Host Count: 298
Item Count 16,772
Required Performance (vps) 52.3
Is there any cleanup/maintenence i can perform on the database to get rid of the stale info?
In this case you will loose all data that is stored on the proxy DB and not synchronized to the Zabbix server - if that is acceptable
Comment