[ZBX-13027] Agent ping sometimes does not go back to OK Created: 2017 Nov 13 Updated: 2024 Apr 10 Resolved: 2017 Nov 17 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Server (S) |
Affects Version/s: | 3.4.4 |
Fix Version/s: | 3.4.5rc1, 4.0.0alpha1, 4.0 (plan) |
Type: | Problem report | Priority: | Critical |
Reporter: | Dirk Bongard | Assignee: | Andris Zeila |
Resolution: | Fixed | Votes: | 0 |
Labels: | triggers | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Ubuntu 16.04 LTS |
Attachments: |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Team: | |
Sprint: | Sprint 21 |
Story Points: | 0.5 |
Description |
After I upgraded from 3.2.5 to 3.4.3 I have the problem that the agent ping remains on error, although this is UP again. |
Comments |
Comment by Dirk Bongard [ 2017 Nov 13 ] |
Within this time all processes are not overload. Screenshot_6 |
Comment by Vladislavs Sokurenko [ 2017 Nov 13 ] |
do you happen to see any failed queries in zabbix server log ? |
Comment by Dirk Bongard [ 2017 Nov 13 ] |
less zabbix_server.log |grep LIDSHU01 qury failed:
|
Comment by Vladislavs Sokurenko [ 2017 Nov 13 ] |
Should have been fixed in |
Comment by Dirk Bongard [ 2017 Nov 13 ] |
I have already installed 3.4.4. for few days |
Comment by Vladislavs Sokurenko [ 2017 Nov 13 ] |
Please make sure that you restarted server |
Comment by Dirk Bongard [ 2017 Nov 13 ] |
Yepp I have: Start-Date: 2017-11-08 21:42:45 [...] .............. |
Comment by Dirk Bongard [ 2017 Nov 13 ] |
I have booted the server again: uptime Server.log [...] |
Comment by Vladislavs Sokurenko [ 2017 Nov 13 ] |
Can you please do |
Comment by Dirk Bongard [ 2017 Nov 13 ] |
You mean the table "Items"? I am not the real DBA. I hope this is the entry you have asked for: itemid;type;snmp_community;snmp_oid;hostid;name;key_;delay;history;trends;status;value_type;trapper_hosts;units;snmpv3_securityname;snmpv3_securitylevel;snmpv3_authpassphrase;snmpv3_privpassphrase;formula;error;lastlogsize;logtimefmt;templateid;valuemapid;params;ipmi_sensor;authtype;username;password;publickey;privatekey;mtime;flags;interfaceid;port;description;inventory_link;lifetime;snmpv3_authprotocol;snmpv3_privprotocol;state;snmpv3_contextname;evaltype;jmx_endpoint;master_itemid 139274;3;;;11196;Free size of datastore $3;vmware.hv.datastore.size[{$URL},HOST.HOST},datastore2,free];2m;120d;1095d;0;0;;B;;0;;;;Unknown hypervisor uuid.;0;;\N;\N;;;0;{$USERNAME};{$PASSWORD};;;0;4;2042;;;0;30d;0;0;1;;0;;\N I will search for the responding item... |
Comment by Vladislavs Sokurenko [ 2017 Nov 13 ] |
No, I need show create table history; please |
Comment by Dirk Bongard [ 2017 Nov 13 ] |
I hope this is the correct item... |
Comment by Dirk Bongard [ 2017 Nov 13 ] |
mysql> show create table history; +---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Table | Create Table | +---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | history | CREATE TABLE `history` ( `itemid` bigint(20) unsigned NOT NULL, `clock` int(11) NOT NULL DEFAULT '0', `value` double(16,4) NOT NULL DEFAULT '0.0000', `ns` int(11) NOT NULL DEFAULT '0', KEY `history_1` (`itemid`,`clock`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin | +---------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0,00 sec) |
Comment by Dirk Bongard [ 2017 Nov 13 ] |
do you need special entries of the log, or the complete one? (50MB) |
Comment by Vladislavs Sokurenko [ 2017 Nov 13 ] |
This query is the cause, thank you for your report, we will get back to you. insert into history (itemid,clock,ns,value) values (139274,1510605074,639784805,2622545199104.000000); |
Comment by Dirk Bongard [ 2017 Nov 13 ] |
Fine... |
Comment by Vladislavs Sokurenko [ 2017 Nov 13 ] |
meanwhile you can disable this item and see if it helps. |
Comment by Dirk Bongard [ 2017 Nov 13 ] |
You really sure that is only this item?.. I have an example of few seconds.. |
Comment by Andris Zeila [ 2017 Nov 14 ] |
Missing range validation when converting variant value from uint64 to float. Index: src/libs/zbxcommon/variant.c =================================================================== --- src/libs/zbxcommon/variant.c (revision 74571) +++ src/libs/zbxcommon/variant.c (working copy) @@ -84,6 +84,8 @@ case ZBX_VARIANT_DBL: return SUCCEED; case ZBX_VARIANT_UI64: + if (FAIL == zbx_validate_value_dbl((double)value->data.ui64)) + return FAIL; zbx_variant_set_dbl(value, (double)value->data.ui64); return SUCCEED; case ZBX_VARIANT_STR: Actually it would be better to do it in dc_history_set_value() so the internal conversions during preprocessing would not be affected. wiper based on this logic we should remove floating range validation in preprocessing. |
Comment by Dirk Bongard [ 2017 Nov 14 ] |
After the hint with this item (itemid=139274) my workaround ist to change the LLD I hope this is the source of my topic. |
Comment by Andris Zeila [ 2017 Nov 14 ] |
Default templates has pfree (% free) space, so the value type is float. I assume that you have changed (or maybe it's a leftover from old templates?) the parameter from pfree to free, leaving the value type float. Nevertheless server should have caught the floating range error during history syncing process and proper error should have been generated. |
Comment by Andris Zeila [ 2017 Nov 14 ] |
Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-13027 |
Comment by Andris Zeila [ 2017 Nov 17 ] |
Released in:
|