retrieve temperature limits from sensorprobe

git-svn-id: http://www.observium.org/svn/observer/trunk@1246 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2010-06-23 14:26:07 +00:00
parent 56031f21ca
commit 94c5ff8fb4

View File

@ -238,10 +238,19 @@ switch ($device['os'])
$temp_id = $split_oid[count($split_oid)-1];
$descr_oid = ".1.3.6.1.4.1.3854.1.2.2.1.16.1.1.$temp_id";
$temp_oid = ".1.3.6.1.4.1.3854.1.2.2.1.16.1.3.$temp_id";
$warnlimit_oid = ".1.3.6.1.4.1.3854.1.2.2.1.16.1.7.$temp_id";
$limit_oid = ".1.3.6.1.4.1.3854.1.2.2.1.16.1.8.$temp_id";
# .9 = low warn limit
$lowlimit_oid = ".1.3.6.1.4.1.3854.1.2.2.1.16.1.10.$temp_id";
$descr = trim(snmp_get($device, $descr_oid, "-Oqv", ""),'"');
$temp = snmp_get($device, $temp_oid, "-Oqv", "");
$warnlimit = snmp_get($device, $warnlimit_oid, "-Oqv", "");
$limit = snmp_get($device, $limit_oid, "-Oqv", "");
$lowlimit = snmp_get($device, $lowlimit_oid, "-Oqv", "");
discover_temperature($valid_temp, $device, $temp_oid, $temp_id, "akcp", $descr, 1, NULL, NULL, $temp);
# FIXME no warnlimit in table/discover function yet...
discover_temperature($valid_temp, $device, $temp_oid, $temp_id, "akcp", $descr, 1, $lowlimit, $limit, $temp);
}
}
}