This is an automated email from the ASF dual-hosted git repository.

gaoxingcun pushed a commit to branch fix_snmp_unit
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git


The following commit(s) were added to refs/heads/fix_snmp_unit by this push:
     new 25f0f7c59 fix:Fix snmp template unit conversion problem
25f0f7c59 is described below

commit 25f0f7c59fd069a65d2174a2ff472e95e35aaff5
Author: tiejiaxiaobao <[email protected]>
AuthorDate: Sat Apr 20 11:31:38 2024 +0800

    fix:Fix snmp template unit conversion problem
---
 manager/src/main/resources/define/app-cisco_switch.yml  | 2 +-
 manager/src/main/resources/define/app-h3c_switch.yml    | 2 +-
 manager/src/main/resources/define/app-hpe_switch.yml    | 2 +-
 manager/src/main/resources/define/app-huawei_switch.yml | 2 +-
 manager/src/main/resources/define/app-tplink_switch.yml | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/manager/src/main/resources/define/app-cisco_switch.yml 
b/manager/src/main/resources/define/app-cisco_switch.yml
index f87187ba2..6e8385880 100644
--- a/manager/src/main/resources/define/app-cisco_switch.yml
+++ b/manager/src/main/resources/define/app-cisco_switch.yml
@@ -442,7 +442,7 @@ metrics:
       - index=ifIndex
       - descr=ifDescr
       - mtu=ifMtu
-      - speed=ifSpeed / 1024 / 1024
+      - speed=ifSpeed / 8 / 1024 / 1024
       - in_octets=ifInOctets / 1024 / 1024
       - in_discards=ifInDiscards
       - in_errors=ifInErrors
diff --git a/manager/src/main/resources/define/app-h3c_switch.yml 
b/manager/src/main/resources/define/app-h3c_switch.yml
index bf95a5d74..2ff215ec2 100644
--- a/manager/src/main/resources/define/app-h3c_switch.yml
+++ b/manager/src/main/resources/define/app-h3c_switch.yml
@@ -442,7 +442,7 @@ metrics:
       - index=ifIndex
       - descr=ifDescr
       - mtu=ifMtu
-      - speed=ifSpeed / 1024 / 1024
+      - speed=ifSpeed / 8 / 1024 / 1024
       - in_octets=ifInOctets / 1024 / 1024
       - in_discards=ifInDiscards
       - in_errors=ifInErrors
diff --git a/manager/src/main/resources/define/app-hpe_switch.yml 
b/manager/src/main/resources/define/app-hpe_switch.yml
index bd10298b8..5ffa22ce4 100644
--- a/manager/src/main/resources/define/app-hpe_switch.yml
+++ b/manager/src/main/resources/define/app-hpe_switch.yml
@@ -442,7 +442,7 @@ metrics:
       - index=ifIndex
       - descr=ifDescr
       - mtu=ifMtu
-      - speed=ifSpeed / 1024 / 1024
+      - speed=ifSpeed / 8 / 1024 / 1024
       - in_octets=ifInOctets / 1024 / 1024
       - in_discards=ifInDiscards
       - in_errors=ifInErrors
diff --git a/manager/src/main/resources/define/app-huawei_switch.yml 
b/manager/src/main/resources/define/app-huawei_switch.yml
index 1afc222fa..043dc1264 100644
--- a/manager/src/main/resources/define/app-huawei_switch.yml
+++ b/manager/src/main/resources/define/app-huawei_switch.yml
@@ -442,7 +442,7 @@ metrics:
       - index=ifIndex
       - descr=ifDescr
       - mtu=ifMtu
-      - speed=ifSpeed / 1024 / 1024
+      - speed=ifSpeed / 8 / 1024 / 1024
       - in_octets=ifInOctets / 1024 / 1024
       - in_discards=ifInDiscards
       - in_errors=ifInErrors
diff --git a/manager/src/main/resources/define/app-tplink_switch.yml 
b/manager/src/main/resources/define/app-tplink_switch.yml
index d363fec33..9577d12d9 100644
--- a/manager/src/main/resources/define/app-tplink_switch.yml
+++ b/manager/src/main/resources/define/app-tplink_switch.yml
@@ -442,7 +442,7 @@ metrics:
       - index=ifIndex
       - descr=ifDescr
       - mtu=ifMtu
-      - speed=ifSpeed / 1024 / 1024
+      - speed=ifSpeed / 8 / 1024 / 1024
       - in_octets=ifInOctets / 1024 / 1024
       - in_discards=ifInDiscards
       - in_errors=ifInErrors


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to