pull/86211/merge
Fred Jupp Kowalski 21 hours ago committed by GitHub
commit 36f5053857
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -236,6 +236,9 @@ class AIXHardware(Hardware):
fields = line.split() fields = line.split()
if len(fields) != 0 and fields[0] != 'node' and fields[0][0] != '-' and re.match('^/.*|^[a-zA-Z].*|^[0-9].*', fields[0]): if len(fields) != 0 and fields[0] != 'node' and fields[0][0] != '-' and re.match('^/.*|^[a-zA-Z].*|^[0-9].*', fields[0]):
if re.match('^/', fields[0]): if re.match('^/', fields[0]):
# AIX VIO SSP mounts match above regexes, but show only 6 fields. we fix this by adding one empty field
if len(fields) < 7:
fields.append("")
# normal mount # normal mount
mount = fields[1] mount = fields[1]
mount_info = {'mount': mount, mount_info = {'mount': mount,

@ -23,7 +23,7 @@ class LoadAvgFactCollector(BaseFactCollector):
'5m': loadavg[1], '5m': loadavg[1],
'15m': loadavg[2] '15m': loadavg[2]
} }
except OSError: except (OSError, AttributeError):
pass pass
return facts return facts

Loading…
Cancel
Save