Global Settings - Alert Default Settings

This commit is contained in:
SourceDoctor
2020-03-25 18:48:12 +01:00
parent cfd6c41933
commit a1af62b146
3 changed files with 31 additions and 6 deletions

View File

@@ -3,10 +3,10 @@
"/css/app.css": "/css/app.css?id=5da3bf931f2f95a17884",
"/js/manifest.js": "/js/manifest.js?id=3c768977c2574a34506e",
"/js/vendor.js": "/js/vendor.js?id=29212a758157c575d7f8",
"/js/lang/de.js": "/js/lang/de.js?id=18b0b0e06813d1afed92",
"/js/lang/en.js": "/js/lang/en.js?id=41955f4356f6511b76b6",
"/js/lang/fr.js": "/js/lang/fr.js?id=4f329163511445d92a17",
"/js/lang/ru.js": "/js/lang/ru.js?id=e10e85f321f1395378b6",
"/js/lang/uk.js": "/js/lang/uk.js?id=c8d4937e3ca47b60b7ac",
"/js/lang/zh-TW.js": "/js/lang/zh-TW.js?id=8020327e80ac10c0c615"
"/js/lang/de.js": "/js/lang/de.js?id=484fe7d77ae5de103cc6",
"/js/lang/en.js": "/js/lang/en.js?id=4bb52ec1e9097cf6e046",
"/js/lang/fr.js": "/js/lang/fr.js?id=5ea876ac2c212ea27b8a",
"/js/lang/ru.js": "/js/lang/ru.js?id=d79e4e7132dc74cb16e0",
"/js/lang/uk.js": "/js/lang/uk.js?id=a7846aab3168b1d79b47",
"/js/lang/zh-TW.js": "/js/lang/zh-TW.js?id=7a0bebb67646046401f0"
}

View File

@@ -149,14 +149,23 @@
"type": "boolean"
},
"alerts.port.ifdown": {
"group": "alerting",
"section": "general",
"order": 12,
"default": false,
"type": "boolean"
},
"alerts.port_util_alert": {
"group": "alerting",
"section": "general",
"order": 13,
"default": false,
"type": "boolean"
},
"alerts.port_util_perc": {
"group": "alerting",
"section": "general",
"order": 14,
"default": 85,
"type": "integer",
"validate": {

View File

@@ -171,6 +171,22 @@ return [
'help' => 'Alert normal users'
]
],
'alerts' => [
'port' => [
'ifdown' => [
'description' => 'Interface Port down Alert',
'help' => 'Runs Alert if an Interface Port goes down'
],
],
'port_util_alert' => [
'description' => 'Enable Port Utilization Alert',
'help' => 'Runs Alert if a Port Uzlization exceeds configured percentage'
],
'port_util_perc' => [
'description' => 'Port Utilization Percentage Level',
'help' => 'Port Utilization Level in Percent on which Alert will run, if enabled'
]
],
'alert_log_purge' => [
'description' => 'Alert log entries older than',
'help' => 'Cleanup done by daily.sh',