diff options
author | Sven Nierlein <sven@nierlein.org> | 2019-02-19 20:49:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-19 20:49:13 (GMT) |
commit | 555559fd303825e02c0aa196194ae15a2e88aadc (patch) | |
tree | abebf547da25660bd158896bef8420de72811d55 /lib | |
parent | 931ed78b5dc062fff33652d87406f1547da5ddbe (diff) | |
parent | 270e7cba3830328424e3f2b6b9a6989b1ea5f89b (diff) | |
download | monitoring-plugins-555559fd303825e02c0aa196194ae15a2e88aadc.tar.gz |
Merge pull request #1567 from vdanjean/master
[check_disk] add support to display inodes usage in perfdata
Diffstat (limited to 'lib')
-rw-r--r-- | lib/utils_disk.c | 2 | ||||
-rw-r--r-- | lib/utils_disk.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lib/utils_disk.c b/lib/utils_disk.c index efe35fc..c7c9126 100644 --- a/lib/utils_disk.c +++ b/lib/utils_disk.c | |||
@@ -69,6 +69,8 @@ np_add_parameter(struct parameter_list **list, const char *name) | |||
69 | new_path->dtotal_units = 0; | 69 | new_path->dtotal_units = 0; |
70 | new_path->inodes_total = 0; | 70 | new_path->inodes_total = 0; |
71 | new_path->inodes_free = 0; | 71 | new_path->inodes_free = 0; |
72 | new_path->inodes_free_to_root = 0; | ||
73 | new_path->inodes_used = 0; | ||
72 | new_path->dused_inodes_percent = 0; | 74 | new_path->dused_inodes_percent = 0; |
73 | new_path->dfree_inodes_percent = 0; | 75 | new_path->dfree_inodes_percent = 0; |
74 | 76 | ||
diff --git a/lib/utils_disk.h b/lib/utils_disk.h index 83a3763..999270c 100644 --- a/lib/utils_disk.h +++ b/lib/utils_disk.h | |||
@@ -24,7 +24,8 @@ struct parameter_list | |||
24 | char *group; | 24 | char *group; |
25 | struct mount_entry *best_match; | 25 | struct mount_entry *best_match; |
26 | struct parameter_list *name_next; | 26 | struct parameter_list *name_next; |
27 | uintmax_t total, available, available_to_root, used, inodes_free, inodes_total; | 27 | uintmax_t total, available, available_to_root, used, |
28 | inodes_free, inodes_free_to_root, inodes_used, inodes_total; | ||
28 | double dfree_pct, dused_pct; | 29 | double dfree_pct, dused_pct; |
29 | double dused_units, dfree_units, dtotal_units; | 30 | double dused_units, dfree_units, dtotal_units; |
30 | double dused_inodes_percent, dfree_inodes_percent; | 31 | double dused_inodes_percent, dfree_inodes_percent; |