Compare commits

..

2 Commits

Author SHA1 Message Date
8896c6914c Adjust health delta of EDAC Uncorrected to 50
This is a very bad situation and should be critical.
2023-02-22 01:01:54 -05:00
73e04ad2aa Add last item to swagger doc 2023-02-22 00:25:27 -05:00
3 changed files with 15 additions and 1 deletions

View File

@ -635,6 +635,12 @@ class API_Node_Root(Resource):
type: integer
description: The overall health (%) of the node
example: 100
health_plugins:
type: array
description: A list of health plugin names currently loaded on the node
items:
type: string
example: "nics"
health_details:
type: array
description: A list of health plugin results

View File

@ -527,6 +527,14 @@
},
"type": "array"
},
"health_plugins": {
"description": "A list of health plugin names currently loaded on the node",
"items": {
"example": "nics",
"type": "string"
},
"type": "array"
},
"kernel": {
"desription": "The running kernel version from uname",
"type": "string"

View File

@ -83,7 +83,7 @@ class MonitoringPluginScript(MonitoringPlugin):
for line in stdout.split('\n'):
if match(r'^mc[0-9]: csrow', line):
if 'Uncorrected' in line:
health_delta = 10
health_delta = 50
errors.append(' '.join(line.split()[2:]))
message += ', '.join(errors)