mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Add bad port settings to webui (#15649)
* Update manifest * update regex text * remove unused translations
This commit is contained in:
@@ -40,6 +40,7 @@ return [
|
|||||||
'general' => ['name' => 'General Discovery Settings'],
|
'general' => ['name' => 'General Discovery Settings'],
|
||||||
'route' => ['name' => 'Routes Discovery Module'],
|
'route' => ['name' => 'Routes Discovery Module'],
|
||||||
'discovery_modules' => ['name' => 'Discovery Modules'],
|
'discovery_modules' => ['name' => 'Discovery Modules'],
|
||||||
|
'ports' => ['name' => 'Ports Module'],
|
||||||
'storage' => ['name' => 'Storage Module'],
|
'storage' => ['name' => 'Storage Module'],
|
||||||
'networks' => ['name' => 'Networks'],
|
'networks' => ['name' => 'Networks'],
|
||||||
],
|
],
|
||||||
@@ -66,7 +67,6 @@ return [
|
|||||||
'rrdtool' => ['name' => 'Datastore: RRDTool'],
|
'rrdtool' => ['name' => 'Datastore: RRDTool'],
|
||||||
'snmp' => ['name' => 'SNMP'],
|
'snmp' => ['name' => 'SNMP'],
|
||||||
'poller_modules' => ['name' => 'Poller Modules'],
|
'poller_modules' => ['name' => 'Poller Modules'],
|
||||||
'interface_types' => ['name' => 'Interface Type by RFC 7224'],
|
|
||||||
],
|
],
|
||||||
'system' => [
|
'system' => [
|
||||||
'cleanup' => ['name' => 'Cleanup'],
|
'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' => [
|
'bad_iftype' => [
|
||||||
'description' => 'Bad Interfaces',
|
'description' => 'Bad Interface Types',
|
||||||
'help' => 'Network Interface Types which should be ignored',
|
'help' => 'Network interface IF-MIB:!:ifType which should be ignored',
|
||||||
],
|
],
|
||||||
'ping' => [
|
'ping' => [
|
||||||
'description' => 'Path to ping',
|
'description' => 'Path to ping',
|
||||||
|
@@ -65,7 +65,6 @@ return [
|
|||||||
'rrdtool' => ['name' => 'Datastore: RRDTool'],
|
'rrdtool' => ['name' => 'Datastore: RRDTool'],
|
||||||
'snmp' => ['name' => 'SNMP'],
|
'snmp' => ['name' => 'SNMP'],
|
||||||
'poller_modules' => ['name' => 'Poller Modules'],
|
'poller_modules' => ['name' => 'Poller Modules'],
|
||||||
'interface_types' => ['name' => 'Interface Type by RFC 7224'],
|
|
||||||
],
|
],
|
||||||
'system' => [
|
'system' => [
|
||||||
'cleanup' => ['name' => 'Cleanup'],
|
'cleanup' => ['name' => 'Cleanup'],
|
||||||
|
@@ -65,7 +65,6 @@ return [
|
|||||||
'rrdtool' => ['name' => 'Сховище даних: RRDTool'],
|
'rrdtool' => ['name' => 'Сховище даних: RRDTool'],
|
||||||
'snmp' => ['name' => 'SNMP'],
|
'snmp' => ['name' => 'SNMP'],
|
||||||
'poller_modules' => ['name' => 'Модулі опитувача'],
|
'poller_modules' => ['name' => 'Модулі опитувача'],
|
||||||
'interface_types' => ['name' => 'Типи інтерфейсів за RFC 7224'],
|
|
||||||
],
|
],
|
||||||
'system' => [
|
'system' => [
|
||||||
'cleanup' => ['name' => 'Очистка'],
|
'cleanup' => ['name' => 'Очистка'],
|
||||||
|
@@ -58,7 +58,6 @@ return [
|
|||||||
'rrdtool' => ['name' => 'RRDTool 設定'],
|
'rrdtool' => ['name' => 'RRDTool 設定'],
|
||||||
'snmp' => ['name' => 'SNMP'],
|
'snmp' => ['name' => 'SNMP'],
|
||||||
'poller_modules' => ['name' => '輪詢器模組'],
|
'poller_modules' => ['name' => '輪詢器模組'],
|
||||||
'interface_types' => ['name' => 'RFC 7224 介面類型'],
|
|
||||||
],
|
],
|
||||||
'system' => [
|
'system' => [
|
||||||
'cleanup' => ['name' => '清理'],
|
'cleanup' => ['name' => '清理'],
|
||||||
|
@@ -851,6 +851,9 @@
|
|||||||
},
|
},
|
||||||
"bad_if": {
|
"bad_if": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
|
"group": "discovery",
|
||||||
|
"section": "ports",
|
||||||
|
"order": 0,
|
||||||
"default": [
|
"default": [
|
||||||
"voip-null",
|
"voip-null",
|
||||||
"virtual-",
|
"virtual-",
|
||||||
@@ -878,16 +881,22 @@
|
|||||||
},
|
},
|
||||||
"bad_if_regexp": {
|
"bad_if_regexp": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
|
"group": "discovery",
|
||||||
|
"section": "ports",
|
||||||
|
"order": 1,
|
||||||
"default": [
|
"default": [
|
||||||
"/^ng[0-9]+$/",
|
"/^ng[0-9]+$/",
|
||||||
"/^sl[0-9]/"
|
"/^sl[0-9]/"
|
||||||
]
|
],
|
||||||
|
"validate": {
|
||||||
|
"value.*": "is_regex"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"bad_iftype": {
|
"bad_iftype": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"group": "poller",
|
"group": "discovery",
|
||||||
"section": "interface_types",
|
"section": "ports",
|
||||||
"order": 0,
|
"order": 3,
|
||||||
"default": [
|
"default": [
|
||||||
"voiceEncap",
|
"voiceEncap",
|
||||||
"voiceFXO",
|
"voiceFXO",
|
||||||
@@ -907,6 +916,9 @@
|
|||||||
},
|
},
|
||||||
"bad_ifoperstatus": {
|
"bad_ifoperstatus": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
|
"group": "discovery",
|
||||||
|
"section": "ports",
|
||||||
|
"order": 4,
|
||||||
"default": [
|
"default": [
|
||||||
"notPresent"
|
"notPresent"
|
||||||
]
|
]
|
||||||
|
Reference in New Issue
Block a user