Misc fixes 2 (#15190)

* Fix error when missing poller data

* Apparently impossible to detect regex without error, so require regex always.  Update docs.

* Apparently this adva code is garbage :D

* Missing count sensor type

* Processor handle missing input

* Handle missing ifName a little better

* Yep, ports module is a dumpster fire.  Attempt to clean up some.

* apparently os yaml trying to replace on non-existent fields

* Might as well define all sensor type units

* revert previous fix, real issue was vlans module does not have polling.
This commit is contained in:
Tony Murray
2023-08-13 18:43:52 +02:00
committed by GitHub
parent d865e3b372
commit 6e4d124619
10 changed files with 88 additions and 79 deletions
+2 -2
View File
@@ -123,8 +123,8 @@ class OSModulesTest extends DBTestCase
$actual = $results[$module]['discovery'] ?? [];
$this->checkTestData($expected, $actual, 'Discovered', $os, $module, $filename, $helper, $phpunit_debug);
if ($module === 'route') {
// no route poller module
// modules without polling
if (in_array($module, ['route', 'vlans'])) {
continue;
}