check_openwrt_bssid: pretty print

This commit is contained in:
Cyberes 2024-08-31 19:24:48 -06:00
parent 7747961e7f
commit b8c915c1ae
1 changed files with 5 additions and 1 deletions

View File

@ -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)
# ============================================ # ============================================