From 1866d23dd44e29c8c8804f33c87b489968dd1310 Mon Sep 17 00:00:00 2001 From: Cyberes Date: Mon, 21 Oct 2024 15:46:19 -0600 Subject: [PATCH] asd --- check_synology.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/check_synology.py b/check_synology.py index 4dbab99..9c4e2e7 100755 --- a/check_synology.py +++ b/check_synology.py @@ -211,7 +211,7 @@ def main(args): 'unit': 'C' } }) - elif args.choice == 'disk': + elif args.choice == 'disks': data = walk_snmp(args.host, args.community, SnmpDisk.disk.value) disk_indices = set(key.split('.')[-1] for key in data.keys()) disk_data = [] @@ -251,7 +251,7 @@ if __name__ == '__main__': parser = argparse.ArgumentParser() parser.add_argument('-H', '--host', required=True, help='The host to connect to.') parser.add_argument('-c', '--community', required=True, help='The community name.') - parser.add_argument('-C', '--choice', required=True, choices=['mem', 'load', 'status', 'disk', 'storage', 'network'], help='What to check.') + parser.add_argument('-C', '--choice', required=True, choices=['mem', 'load', 'status', 'disks', 'storage', 'network'], help='What to check.') parser.add_argument('--warn-mem', type=int, default=75, help='Memory usage percent to warn at. Default: 75%') parser.add_argument('--crit-mem', type=int, default=90, help='Memory usage percent to crit at. Default: 90%')