check_openwrt_bssid: pretty print
This commit is contained in:
parent
7747961e7f
commit
b8c915c1ae
|
@ -79,7 +79,11 @@ def main(args):
|
||||||
cells[list(cells.keys())[-1]]['quality'] = (try_int(m.group(2)), try_int(m.group(3)))
|
cells[list(cells.keys())[-1]]['quality'] = (try_int(m.group(2)), try_int(m.group(3)))
|
||||||
|
|
||||||
if args.print:
|
if args.print:
|
||||||
print(json.dumps(cells))
|
for k, v in cells.items():
|
||||||
|
print(k)
|
||||||
|
for kk, vv in v.items():
|
||||||
|
print(f'\t{kk}: {vv}')
|
||||||
|
print()
|
||||||
sys.exit(nagios.STATE_UNKNOWN)
|
sys.exit(nagios.STATE_UNKNOWN)
|
||||||
|
|
||||||
# ============================================
|
# ============================================
|
||||||
|
|
Loading…
Reference in New Issue