mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-31 16:23:50 +02:00
fixes to shit i dont use, thanks to falz :D
git-svn-id: http://www.observium.org/svn/observer/trunk@1969 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -28,7 +28,9 @@ if ($device['os'] == 'sentry3')
|
||||
$high_limit = snmp_get($device,"tempHumidSensorHumidHighThresh.1.$index", "-Ovq", "Sentry3-MIB");
|
||||
$current = snmp_get($device,"$humidity_oid", "-Ovq", "Sentry3-MIB");
|
||||
|
||||
discover_sensor($valid_sensor, 'humidity', $device, $humidity_oid, $index, 'sentry3', $descr, $divisor, $multiplier, $low_limit, $low_warn_limit, $high_warn_limit, $high_limit, $current);
|
||||
if ($current >= 0) {
|
||||
discover_sensor($valid_sensor, 'humidity', $device, $humidity_oid, $index, 'sentry3', $descr, $divisor, $multiplier, $low_limit, $low_warn_limit, $high_warn_limit, $high_limit, $current);
|
||||
}
|
||||
}
|
||||
unset($data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user