Show More
@@ -90,6 +90,7 b' def get_cert_path(ini_path):' | |||
|
90 | 90 | |
|
91 | 91 | return default |
|
92 | 92 | |
|
93 | ||
|
93 | 94 | class SysInfoRes(object): |
|
94 | 95 | def __init__(self, value, state=None, human_value=None): |
|
95 | 96 | self.value = value |
@@ -187,7 +188,7 b' def ulimit_info():' | |||
|
187 | 188 | ('open files', get_resource(resource.RLIMIT_NOFILE)), |
|
188 | 189 | ]) |
|
189 | 190 | |
|
190 | text = ', '.join('{}:{}'.format(k,v) for k,v in data.items()) | |
|
191 | text = ', '.join('{}:{}'.format(k, v) for k, v in data.items()) | |
|
191 | 192 | |
|
192 | 193 | value = { |
|
193 | 194 | 'limits': data, |
@@ -4,9 +4,9 b' SYSTEM INFO' | |||
|
4 | 4 | ----------- |
|
5 | 5 | |
|
6 | 6 | % for dt, dd, warn in c.data_items: |
|
7 |
${'{:<60}'.format(dt.lower().replace(' ', '_'))}${': |
|
|
7 | ${'{:<60}'.format(dt.lower().replace(' ', '_'))}${': {}'.format(dd if dt else '')} | |
|
8 | 8 | % if warn and warn['message']: |
|
9 |
|
|
|
9 | ${'{:<60}'.format('ALERT')} ${warn['type'].upper()} ${warn['message']} | |
|
10 | 10 | % endif |
|
11 | 11 | % endfor |
|
12 | 12 |
General Comments 0
You need to be logged in to leave comments.
Login now