[ZBX-13684] Incorect conversion in latest data Created: 2018 Apr 02  Updated: 2018 Apr 19  Resolved: 2018 Apr 19

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 3.4.6, 3.4.7
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Artur Assignee: Unassigned
Resolution: Won't fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 16.04.4 LTS, postgres 10


Attachments: PNG File zab3.4.7-1.png     PNG File zab3.4.7-2.png     PNG File zab3.4.7-3.png     PNG File zab3.4.7-4.png     PNG File zab3.4.7.png     PNG File zab3.4.7ether1.png     PNG File zab3.4.7wlan1.png     XML File zbx_export_templates(1).xml    
Issue Links:
Duplicate
is duplicated by ZBX-13758 Incorect value after custom multiplier Closed

 Description   

On graphs in latest data, value 100000000=1G but 50000000=50M
Example in attachments

select * from history_uint where itemid ='28633' order by clock;
28633 | 1522686433 | 1000000000 | 513186399
28633 | 1522688234 | 1000000000 | 31574780
28633 | 1522690033 | 1000000000 | 137008659
28633 | 1522691833 | 1000000000 | 348876345
28633 | 1522693633 | 1000000000 | 338707785
28633 | 1522695433 | 1000000000 | 578575896
28633 | 1522697233 | 1000000000 | 554737552
28633 | 1522699033 | 1000000000 | 560403383

select * from history_uint where itemid ='28634' order by clock;
28634 | 1522681034 | 50000000 | 907893162
28634 | 1522682834 | 50000000 | 144923656
28634 | 1522684634 | 50000000 | 158871142
28634 | 1522686434 | 50000000 | 961753385
28634 | 1522688234 | 50000000 | 177811923
28634 | 1522690034 | 50000000 | 415253772
28634 | 1522691834 | 50000000 | 607262077
28634 | 1522693634 | 50000000 | 600455923
28634 | 1522695434 | 50000000 | 176735208
28634 | 1522697235 | 50000000 | 61048012
28634 | 1522699034 | 50000000 | 733709449
28634 | 1522700834 | 50000000 | 133920027



 Comments   
Comment by richlv [ 2018 Apr 02 ]

could you please clarify what was the problem here and why was it closed ? is the resolution correct ?

Comment by Artur [ 2018 Apr 02 ]

I did not correctly describe the problem.
The problem is not WEB, the problem in preprocessing
for 1.3.6.1.2.1.31.1.1.1.15.1 value is 100
snmpget -v2c -c *** 10.8.64.2 1.3.6.1.2.1.31.1.1.1.15.1
iso.3.6.1.2.1.31.1.1.1.15.1 = Gauge32: 100

Custom multiplier is 1000000
in BD value is 1000000000
100*1000000 =100000000 but not 1000000000

for snmpget -v2c -c *** 10.8.64.2 1.3.6.1.2.1.31.1.1.1.15.2
iso.3.6.1.2.1.31.1.1.1.15.2 = Gauge32: 50
Custom multiplier is 1000000
in BD value is 50000000

Comment by Glebs Ivanovskis (Inactive) [ 2018 Apr 18 ]

Reopening and closing as Won't Fix.

Comment by richlv [ 2018 Apr 18 ]

should be closed as a duplicate instead (ZBX-13758)

Comment by Glebs Ivanovskis (Inactive) [ 2018 Apr 18 ]

Sorry for the mess.

So, 50M is correct, but instead of 1G there should be 100M? Have you been modifying item prototype configuration?

Comment by Artur [ 2018 Apr 18 ]

50M is correct and instead of 1G there should be 100M
I imported template from zabbix 3.0.15(main zabbix server) there multiplier work wine.

>Have you been modifying item prototype configuration?
No, just import from 3.0.15.

Comment by Glebs Ivanovskis (Inactive) [ 2018 Apr 19 ]

I'm afraid I can't reproduce it (in trunk). Can you provide steps to reproduce the issue with a new item?

Comment by Artur [ 2018 Apr 19 ]

I change item to external check

getSpeed.bash["{HOST.CONN}","{$SNMP_COMMUNITY}","{#IFDESCR}","{#SNMPINDEX}"]

/etc/zabbix/externalscripts/getSpeed.bash

#!/bin/bash
alias=$(snmpget -v2c -c $2 $1 1.3.6.1.2.1.31.1.1.1.18.$4 | awk '{print $4}')
if [[ $alias =~ \[.*\M] ]] ;
    then echo $alias | grep -Eo "[0-9]+" | awk '{print $1}';
#if [[ $5 =~ \[.*\M] ]] ;
#    then echo $5 | grep -Eo "[0-9]+" | awk '{print $1}';
elif [[ $3 =~ wlan[0-9]+ ]] ;
    then echo 0
else
    speed=$(snmpget -v2c -c $2 $1 1.3.6.1.2.1.31.1.1.1.15.$4 | awk '{print $4}')
    echo $speed

and i have the same problem
Template in attachments

Comment by Glebs Ivanovskis (Inactive) [ 2018 Apr 19 ]

Is it reproducible if you just echo 100 in your script?

Comment by Artur [ 2018 Apr 19 ]

I'm so sorry.
Looks like it was my fault, I mixed an itemid with another host.
Ticket can be closed

Comment by Glebs Ivanovskis (Inactive) [ 2018 Apr 19 ]

Don't worry

Closing as Won't Fix.

Generated at Sat Aug 02 09:51:14 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.