Zabbix (beta5) do no corretly support custom multiplier
I receive value 1234 from snmp, use multiplier 0.001 and want get in result 1.234
if I use Type of information = int 64 then zabbix makes result=value*int(0.001) => result =0
if( (item->value_type==ITEM_VALUE_TYPE_UINT64) && (value->type & AR_UINT64))
{
value->ui64 = value->ui64 * (zbx_uint64_t)atoll(item->formula);
}
if I use Type of information =float then zabbix do not use multiplier becouse my snmp value is not float
if( (item->value_type==ITEM_VALUE_TYPE_FLOAT) && (value->type & AR_DOUBLE ))
{
multiplier = strtod(item->formula,&e);
value->dbl = value->dbl * multiplier;
}
it should be fixed!
I receive value 1234 from snmp, use multiplier 0.001 and want get in result 1.234
if I use Type of information = int 64 then zabbix makes result=value*int(0.001) => result =0
if( (item->value_type==ITEM_VALUE_TYPE_UINT64) && (value->type & AR_UINT64))
{
value->ui64 = value->ui64 * (zbx_uint64_t)atoll(item->formula);
}
if I use Type of information =float then zabbix do not use multiplier becouse my snmp value is not float
if( (item->value_type==ITEM_VALUE_TYPE_FLOAT) && (value->type & AR_DOUBLE ))
{
multiplier = strtod(item->formula,&e);
value->dbl = value->dbl * multiplier;
}
it should be fixed!
Comment