mirror of
https://github.com/ranl/monitor-utils.git
synced 2024-11-24 00:13:41 +01:00
Fix temperature calculation, for when temperatures are below 10 degrees Celcius (#26)
This commit is contained in:
parent
8c7a75d976
commit
ca532c2905
@ -89,8 +89,8 @@ if($warn[1] > $crit[1]) {
|
|||||||
our $snmp_session = _create_session($opt{'host'},$opt{'com'});
|
our $snmp_session = _create_session($opt{'host'},$opt{'com'});
|
||||||
my $internal = _get_oid_value($snmp_session,$s_internal);
|
my $internal = _get_oid_value($snmp_session,$s_internal);
|
||||||
my $external = _get_oid_value($snmp_session,$s_external);
|
my $external = _get_oid_value($snmp_session,$s_external);
|
||||||
$internal = int(substr($internal,0,2) . "." . substr($internal,2,2));
|
$internal = $internal / 100.0;
|
||||||
$external = int(substr($external,0,2) . "." . substr($external,2,2));
|
$external = $external / 100.0;
|
||||||
|
|
||||||
my $istat = 0;
|
my $istat = 0;
|
||||||
my $estat = 0;
|
my $estat = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user