mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Cisco Entity Sensor Threshold's returns 0 (#6440)
This commit is contained in:
committed by
Tony Murray
parent
0885813ba3
commit
66a3a54879
@@ -133,16 +133,16 @@ if ($device['os_group'] == 'cisco') {
|
||||
}
|
||||
|
||||
if ($key['entSensorThresholdSeverity'] == 'major' && $key['entSensorThresholdRelation'] == 'lessOrEqual') {
|
||||
$limit_low = ($entry['entSensorThresholdValue'] * $multiplier / $divisor);
|
||||
$limit_low = ($key['entSensorThresholdValue'] * $multiplier / $divisor);
|
||||
}
|
||||
|
||||
// Warning Limit
|
||||
if ($key['entSensorThresholdSeverity'] == 'minor' && $key['entSensorThresholdRelation'] == 'greaterOrEqual') {
|
||||
$warn_limit = ($entry['entSensorThresholdValue'] * $multiplier / $divisor);
|
||||
$warn_limit = ($key['entSensorThresholdValue'] * $multiplier / $divisor);
|
||||
}
|
||||
|
||||
if ($key['entSensorThresholdSeverity'] == 'minor' && $key['entSensorThresholdRelation'] == 'lessOrEqual') {
|
||||
$warn_limit_low = ($entry['entSensorThresholdValue'] * $multiplier / $divisor);
|
||||
$warn_limit_low = ($key['entSensorThresholdValue'] * $multiplier / $divisor);
|
||||
}
|
||||
}//end foreach
|
||||
}//end if
|
||||
|
||||
Reference in New Issue
Block a user