From b06cdc42ed3a1b13fdb1134e0635ce639b59d37d Mon Sep 17 00:00:00 2001 From: UrBnW <40244829+UrBnW@users.noreply.github.com> Date: Thu, 29 Oct 2020 12:01:42 +0100 Subject: [PATCH] fix(mikrotik) units (#2308) --- network/mikrotik/snmp/mode/components/current.pm | 2 +- network/mikrotik/snmp/mode/components/psu.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/network/mikrotik/snmp/mode/components/current.pm b/network/mikrotik/snmp/mode/components/current.pm index ceed74011..19c257016 100644 --- a/network/mikrotik/snmp/mode/components/current.pm +++ b/network/mikrotik/snmp/mode/components/current.pm @@ -86,7 +86,7 @@ sub check { if ($gauge_ok == 0 && defined($result->{mtxrHlCurrent}) && $result->{mtxrHlCurrent} =~ /[0-9]+/) { check_current( $self, - value => $result->{mtxrHlCurrent} / 100, + value => $result->{mtxrHlCurrent} / 1000, instance => 1, name => 'system' ); diff --git a/network/mikrotik/snmp/mode/components/psu.pm b/network/mikrotik/snmp/mode/components/psu.pm index 9e8a71869..9aefced99 100644 --- a/network/mikrotik/snmp/mode/components/psu.pm +++ b/network/mikrotik/snmp/mode/components/psu.pm @@ -116,7 +116,7 @@ sub check { if ($gauge_ok == 0 && defined($result->{mtxrHlPower}) && $result->{mtxrHlPower} =~ /[0-9]+/) { check_power( $self, - value => $result->{mtxrHlPower} / 100, + value => $result->{mtxrHlPower} / 10, instance => 1, name => 'system' );