Compare commits
	
		
			2 Commits
		
	
	
		
			6f5aecfa22
			...
			8896c6914c
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 8896c6914c | |||
| 73e04ad2aa | 
@@ -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
 | 
			
		||||
 
 | 
			
		||||
@@ -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"
 | 
			
		||||
 
 | 
			
		||||
@@ -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)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user