Module: monitoring-plugins
Branch: master
Commit: d485b64ef0c08eb04fd6152b61b167c5edadab02
Author: Lorenz <[email protected]>
Committer: GitHub <[email protected]>
Date: Sun Jan 30 19:41:36 2022 +0100
URL:
https://www.monitoring-plugins.org/repositories/monitoring-plugins/commit/?id=d485b64
Description for -M was the wrong way around (#1746)
Using -M should show the mountpoint instead of the device the
file system originated from.
Seems like this was not the case for a long time and now
the default is to show the mount point. Using `-M` reverts
to showing the (block) device instead.
The usage Description was adjusted with this commit.
---
plugins/check_disk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index 9652f45..66c5dd3 100644
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
@@ -961,7 +961,7 @@ print_help (void)
printf (" %s\n", _("Only check local filesystems against thresholds. Yet
call stat on remote filesystems"));
printf (" %s\n", _("to test if they are accessible (e.g. to detect Stale
NFS Handles)"));
printf (" %s\n", "-M, --mountpoint");
- printf (" %s\n", _("Display the mountpoint instead of the partition"));
+ printf (" %s\n", _("Display the (block) device instead of the mount
point"));
printf (" %s\n", "-m, --megabytes");
printf (" %s\n", _("Same as '--units MB'"));
printf (" %s\n", "-A, --all");