Add bad port settings to webui (#15649)

* Update manifest

* update regex text

* remove unused translations
This commit is contained in:
Tony Murray
2023-12-15 09:39:16 -06:00
committed by GitHub
parent a8480e5e0a
commit 917aa743f9
5 changed files with 31 additions and 10 deletions

View File

@@ -40,6 +40,7 @@ return [
'general' => ['name' => 'General Discovery Settings'],
'route' => ['name' => 'Routes Discovery Module'],
'discovery_modules' => ['name' => 'Discovery Modules'],
'ports' => ['name' => 'Ports Module'],
'storage' => ['name' => 'Storage Module'],
'networks' => ['name' => 'Networks'],
],
@@ -66,7 +67,6 @@ return [
'rrdtool' => ['name' => 'Datastore: RRDTool'],
'snmp' => ['name' => 'SNMP'],
'poller_modules' => ['name' => 'Poller Modules'],
'interface_types' => ['name' => 'Interface Type by RFC 7224'],
],
'system' => [
'cleanup' => ['name' => 'Cleanup'],
@@ -1086,9 +1086,21 @@ return [
],
],
],
'bad_if' => [
'description' => 'Bad Interface Names',
'help' => 'Network interface IF-MIB:!:ifName which should be ignored',
],
'bad_if_regexp' => [
'description' => 'Bad Interface Name Regex',
'help' => 'Network interface IF-MIB:!:ifName which should be ignored using regular expressions',
],
'bad_ifoperstatus' => [
'description' => 'Bad Interface Operating Status',
'help' => 'Network interface IF-MIB:!:ifOperStatus which should be ignored',
],
'bad_iftype' => [
'description' => 'Bad Interfaces',
'help' => 'Network Interface Types which should be ignored',
'description' => 'Bad Interface Types',
'help' => 'Network interface IF-MIB:!:ifType which should be ignored',
],
'ping' => [
'description' => 'Path to ping',

View File

@@ -65,7 +65,6 @@ return [
'rrdtool' => ['name' => 'Datastore: RRDTool'],
'snmp' => ['name' => 'SNMP'],
'poller_modules' => ['name' => 'Poller Modules'],
'interface_types' => ['name' => 'Interface Type by RFC 7224'],
],
'system' => [
'cleanup' => ['name' => 'Cleanup'],

View File

@@ -65,7 +65,6 @@ return [
'rrdtool' => ['name' => 'Сховище даних: RRDTool'],
'snmp' => ['name' => 'SNMP'],
'poller_modules' => ['name' => 'Модулі опитувача'],
'interface_types' => ['name' => 'Типи інтерфейсів за RFC 7224'],
],
'system' => [
'cleanup' => ['name' => 'Очистка'],

View File

@@ -58,7 +58,6 @@ return [
'rrdtool' => ['name' => 'RRDTool 設定'],
'snmp' => ['name' => 'SNMP'],
'poller_modules' => ['name' => '輪詢器模組'],
'interface_types' => ['name' => 'RFC 7224 介面類型'],
],
'system' => [
'cleanup' => ['name' => '清理'],

View File

@@ -851,6 +851,9 @@
},
"bad_if": {
"type": "array",
"group": "discovery",
"section": "ports",
"order": 0,
"default": [
"voip-null",
"virtual-",
@@ -878,16 +881,22 @@
},
"bad_if_regexp": {
"type": "array",
"group": "discovery",
"section": "ports",
"order": 1,
"default": [
"/^ng[0-9]+$/",
"/^sl[0-9]/"
]
],
"validate": {
"value.*": "is_regex"
}
},
"bad_iftype": {
"type": "array",
"group": "poller",
"section": "interface_types",
"order": 0,
"group": "discovery",
"section": "ports",
"order": 3,
"default": [
"voiceEncap",
"voiceFXO",
@@ -907,6 +916,9 @@
},
"bad_ifoperstatus": {
"type": "array",
"group": "discovery",
"section": "ports",
"order": 4,
"default": [
"notPresent"
]