[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: |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
||||||||
Issue Links: |
|
Description |
On graphs in latest data, value 100000000=1G but 50000000=50M select * from history_uint where itemid ='28633' order by clock; select * from history_uint where itemid ='28634' order by clock; |
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. Custom multiplier is 1000000 for snmpget -v2c -c *** 10.8.64.2 1.3.6.1.2.1.31.1.1.1.15.2 |
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 ( |
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 >Have you been modifying item prototype configuration? |
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 |
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. |
Comment by Glebs Ivanovskis (Inactive) [ 2018 Apr 19 ] |
Don't worry Closing as Won't Fix. |