1
0
mirror of https://github.com/ranl/monitor-utils.git synced 2024-11-05 07:43:40 +01:00

Fix temperature calculation, for when temperatures are below 10 degrees Celcius (#26)

This commit is contained in:
Torben Hørup 2016-08-13 12:33:41 +02:00 committed by Ran Leibman
parent 8c7a75d976
commit ca532c2905

View File

@ -89,8 +89,8 @@ if($warn[1] > $crit[1]) {
our $snmp_session = _create_session($opt{'host'},$opt{'com'});
my $internal = _get_oid_value($snmp_session,$s_internal);
my $external = _get_oid_value($snmp_session,$s_external);
$internal = int(substr($internal,0,2) . "." . substr($internal,2,2));
$external = int(substr($external,0,2) . "." . substr($external,2,2));
$internal = $internal / 100.0;
$external = $external / 100.0;
my $istat = 0;
my $estat = 0;