Details
-
Type:
Problem report
-
Status: Closed
-
Priority:
Trivial
-
Resolution: Fixed
-
Affects Version/s: 3.2.4, 3.2.5
-
Fix Version/s: 3.2.11rc1, 4.0 (plan)
-
Component/s: Proxy (P)
-
Labels:None
-
Team:Team C
-
Sprint:Sprint 18, Sprint 19, Sprint 20, Sprint 21
-
Story Points:0.5
Description
Hi,
The following code of loadable module return always 0 values (0.0000 for float) if module loaded with zabbix_proxy.
Same module with zabbix_server prints non zero history values.
.itemid and .clock has correct values in both cases.
static void cb_history_float_cb(const ZBX_HISTORY_FLOAT *history, int history_num) { int i; for (i = 0; i < history_num; i++) { zabbix_log(LOG_LEVEL_INFORMATION, "float %d: %f %d", history[i].itemid, history[i].value, history[i].clock); } } static void cb_history_integer_cb(const ZBX_HISTORY_INTEGER *history, int history_num) { int i; for (i = 0; i < history_num; i++) { zabbix_log(LOG_LEVEL_INFORMATION, "int %d: %u %d", history[i].itemid, history[i].value, history[i].clock); } } ZBX_HISTORY_WRITE_CBS zbx_module_history_write_cbs(void) { static ZBX_HISTORY_WRITE_CBS cb_callbacks = { cb_history_float_cb, cb_history_integer_cb, NULL, NULL, NULL }; return cb_callbacks; }