[ZBX-13452] Elasticsearch history storage value types do not match what is set as default from the server side Created: 2018 Feb 08 Updated: 2018 Feb 23 Resolved: 2018 Feb 23 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Documentation (D), Server (S) |
Affects Version/s: | 3.4.5, 4.0.0alpha3 |
Fix Version/s: | 3.4.8rc1, 4.0.0alpha4, 4.0 (plan) |
Type: | Problem report | Priority: | Minor |
Reporter: | Viktors Tjarve | Assignee: | Viktors Tjarve |
Resolution: | Fixed | Votes: | 0 |
Labels: | elasticsearch | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Team: | Team A |
Sprint: | Sprint 27, Sprint 28 |
Story Points: | 0.25 |
Description |
Elasticsearch documentation page states that supported value types for history storage are uint,dbl,str,log,text. Also the same types are used as examples in zabbix_server.conf and zabbix.conf.php.example files. This does not exactly match the types which are set by default on the server - src/zabbix_server/server.c:zbx_set_defaults().
CONFIG_HISTORY_STORAGE_OPTS = zbx_strdup(CONFIG_HISTORY_STORAGE_OPTS, "unum,float,char,log,text");
|
Comments |
Comment by Viktors Tjarve [ 2018 Feb 13 ] |
After discussion with vjaceslavs it is clear now that documentation and *.conf files are correct. Server side code has to be fixed. Index: src/zabbix_server/server.c =================================================================== --- src/zabbix_server/server.c (revision 77489) +++ src/zabbix_server/server.c (working copy) @@ -440,7 +440,7 @@ CONFIG_SSL_KEY_LOCATION = zbx_strdup(CONFIG_SSL_KEY_LOCATION, DATADIR "/zabbix/ssl/keys"); if (NULL == CONFIG_HISTORY_STORAGE_OPTS) - CONFIG_HISTORY_STORAGE_OPTS = zbx_strdup(CONFIG_HISTORY_STORAGE_OPTS, "unum,float,char,log,text"); + CONFIG_HISTORY_STORAGE_OPTS = zbx_strdup(CONFIG_HISTORY_STORAGE_OPTS, "uint,dbl,str,log,text"); #endif #ifdef HAVE_SQLITE3 |
Comment by Viktors Tjarve [ 2018 Feb 14 ] |
This fixes bug of not fully initialised history storage. Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-13452 |
Comment by Viktors Tjarve [ 2018 Feb 20 ] |
Released in:
|