Skip to content

Commit

Permalink
Improve help
Browse files Browse the repository at this point in the history
  • Loading branch information
scoopex committed Dec 22, 2024
1 parent e8ccf16 commit 3681b6b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions extension-files/tools/zabbix_discovery_devices
Original file line number Diff line number Diff line change
Expand Up @@ -142,22 +142,22 @@ parser.add_argument(
)

parser.add_argument(
'--check_not_devdev',
help='Check fpr a device at /dev',
'--check_for_dev',
help='Check for a device at /dev and exclude it if it does not exist',
action='store_true',
)


parser.add_argument(
'--software_raid',
help='Discovery for software_raid',
help='Discovery for software_raid devices',
action='store_true',
)


parser.add_argument(
'--only_rawdisk',
help='Output only hardware devices',
help='Discovery for real raw/hardware devices',
action='store_true',
)

Expand Down Expand Up @@ -194,7 +194,7 @@ for filename in glob.glob('/sys/block/*'):
device_model_file = "/sys/block/%s/device/model" % device_name
device_model = "UNDEFINED"

if not args.check_not_devdev and not os.path.exists("/dev/%s" % device_name):
if not args.check_for_dev and not os.path.exists("/dev/%s" % device_name):
continue

if os.path.isfile(device_model_file):
Expand Down

0 comments on commit 3681b6b

Please sign in to comment.