mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix incorrect thresholds
The initial value was fetched incorrectly
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
if ($device['os'] == 'ibm-amm') {
|
||||
$oid = 'BLADE-MIB::mmTemp.0';
|
||||
$mmtemp = snmp_get($device, $oid, '-OsqnU');
|
||||
$mmtemp = snmp_get($device, $oid, '-Oqv');
|
||||
|
||||
preg_match('/[\d\.]+/', $mmtemp, $temp_response);
|
||||
if (!empty($temp_response[0])) {
|
||||
@@ -29,7 +29,7 @@ if ($device['os'] == 'ibm-amm') {
|
||||
}
|
||||
|
||||
$oid = 'BLADE-MIB::frontPanelTemp.0';
|
||||
$fptemp = snmp_get($device, $oid, '-OsqnU');
|
||||
$fptemp = snmp_get($device, $oid, '-Oqv');
|
||||
|
||||
preg_match('/[\d\.]+/', $fptemp, $temp_response);
|
||||
if (!empty($temp_response[0])) {
|
||||
|
||||
Reference in New Issue
Block a user