refactor: MySQL strict and query fixes (#5338)

* refactor: MySQL strict and query fixes

* moved sql file
This commit is contained in:
Neil Lathwood
2017-01-13 12:47:16 +00:00
committed by Tony Murray
parent 3d0cf76e9b
commit d5296319fb
18 changed files with 70 additions and 43 deletions

View File

@@ -178,6 +178,11 @@ function discover_device($device, $options = null)
function discover_sensor(&$valid, $class, $device, $oid, $index, $type, $descr, $divisor = '1', $multiplier = '1', $low_limit = null, $low_warn_limit = null, $warn_limit = null, $high_limit = null, $current = null, $poller_type = 'snmp', $entPhysicalIndex = null, $entPhysicalIndex_measured = null)
{
if (!is_numeric($divisor)) {
$divisor = 1;
}
d_echo("Discover sensor: $oid, $index, $type, $descr, $poller_type, $precision, $entPhysicalIndex\n");
if (is_null($low_warn_limit) && !is_null($warn_limit)) {