Allow inserting null values for sensors (#15470)

* Allow inserting null values for sensors

* Update ericsson-ml.inc.php

* Update rittal-cmc-iii-sensors.inc.php
This commit is contained in:
Jellyfrog
2023-10-17 13:18:17 +02:00
committed by GitHub
parent 37f833129f
commit 187a4d36de
3 changed files with 2 additions and 8 deletions

View File

@@ -254,12 +254,6 @@ function discover_sensor(&$valid, $class, $device, $oid, $index, $type, $descr,
'rrd_type' => $rrd_type,
];
foreach ($insert as $key => $val_check) {
if (! isset($val_check)) {
unset($insert[$key]);
}
}
$inserted = dbInsert($insert, 'sensors');
d_echo("( $inserted inserted )\n");