diff options
author | Kristian Schuster <116557017+KriSchu@users.noreply.github.com> | 2023-02-19 22:49:18 (GMT) |
---|---|---|
committer | Kristian Schuster <116557017+KriSchu@users.noreply.github.com> | 2023-02-19 22:49:18 (GMT) |
commit | a0d42777217296c0a7bdb1e1be8d8f6de1b24dd7 (patch) | |
tree | 8effe94c57b2f9796ba36090b07551baa8f1e1cb /plugins/check_disk.c | |
parent | ca3d59cd6918c9e2739e783b721d4c1122640fd3 (diff) | |
parent | c07206f2ccc2356aa74bc6813a94c2190017d44e (diff) | |
download | monitoring-plugins-a0d42777217296c0a7bdb1e1be8d8f6de1b24dd7.tar.gz |
Merge remote-tracking branch 'origin/master' into feature_check_disk_add_ignore_missing_option
Diffstat (limited to 'plugins/check_disk.c')
-rw-r--r-- | plugins/check_disk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c index c1cfb13..d32841d 100644 --- a/plugins/check_disk.c +++ b/plugins/check_disk.c | |||
@@ -1017,7 +1017,7 @@ void | |||
1017 | print_usage (void) | 1017 | print_usage (void) |
1018 | { | 1018 | { |
1019 | printf ("%s\n", _("Usage:")); | 1019 | printf ("%s\n", _("Usage:")); |
1020 | printf (" %s -w limit -c limit [-W limit] [-K limit] {-p path | -x device}\n", progname); | 1020 | printf (" %s {-w absolute_limit |-w percentage_limit% | -W inode_percentage_limit } {-c absolute_limit|-c percentage_limit% | -K inode_percentage_limit } {-p path | -x device}\n", progname); |
1021 | printf ("[-C] [-E] [-e] [-f] [-g group ] [-k] [-l] [-M] [-m] [-R path ] [-r path ]\n"); | 1021 | printf ("[-C] [-E] [-e] [-f] [-g group ] [-k] [-l] [-M] [-m] [-R path ] [-r path ]\n"); |
1022 | printf ("[-t timeout] [-u unit] [-v] [-X type] [-N type]\n"); | 1022 | printf ("[-t timeout] [-u unit] [-v] [-X type] [-N type]\n"); |
1023 | } | 1023 | } |
@@ -1128,7 +1128,7 @@ get_path_stats (struct parameter_list *p, struct fs_usage *fsp) { | |||
1128 | p->dfree_units = p->available*fsp->fsu_blocksize/mult; | 1128 | p->dfree_units = p->available*fsp->fsu_blocksize/mult; |
1129 | p->dtotal_units = p->total*fsp->fsu_blocksize/mult; | 1129 | p->dtotal_units = p->total*fsp->fsu_blocksize/mult; |
1130 | /* Free file nodes. Not sure the workaround is required, but in case...*/ | 1130 | /* Free file nodes. Not sure the workaround is required, but in case...*/ |
1131 | p->inodes_free = fsp->fsu_favail > fsp->fsu_ffree ? 0 : fsp->fsu_favail; | 1131 | p->inodes_free = fsp->fsu_ffree; |
1132 | p->inodes_free_to_root = fsp->fsu_ffree; /* Free file nodes for root. */ | 1132 | p->inodes_free_to_root = fsp->fsu_ffree; /* Free file nodes for root. */ |
1133 | p->inodes_used = fsp->fsu_files - fsp->fsu_ffree; | 1133 | p->inodes_used = fsp->fsu_files - fsp->fsu_ffree; |
1134 | if (freespace_ignore_reserved) { | 1134 | if (freespace_ignore_reserved) { |