Merge pull request #1885 from franzs/feature_proxy_protocol_for_check_smtp
[monitoring-plugins.git] / lib / utils_disk.h
blob3b5a45f86dd7c6851b7dca9d0eaa5de01b40da99
1 /* Header file for utils_disk */
3 #include "mountlist.h"
4 #include "utils_base.h"
5 #include "regex.h"
7 struct name_list
9 char *name;
10 struct name_list *next;
13 struct parameter_list
15 char *name;
16 thresholds *freespace_bytes;
17 thresholds *freespace_units;
18 thresholds *freespace_percent;
19 thresholds *usedspace_bytes;
20 thresholds *usedspace_units;
21 thresholds *usedspace_percent;
22 thresholds *usedinodes_percent;
23 thresholds *freeinodes_percent;
24 char *group;
25 struct mount_entry *best_match;
26 struct parameter_list *name_next;
27 struct parameter_list *name_prev;
28 uintmax_t total, available, available_to_root, used,
29 inodes_free, inodes_free_to_root, inodes_used, inodes_total;
30 double dfree_pct, dused_pct;
31 uint64_t dused_units, dfree_units, dtotal_units;
32 double dused_inodes_percent, dfree_inodes_percent;
35 void np_add_name (struct name_list **list, const char *name);
36 int np_find_name (struct name_list *list, const char *name);
37 int np_seen_name (struct name_list *list, const char *name);
38 struct parameter_list *np_add_parameter(struct parameter_list **list, const char *name);
39 struct parameter_list *np_find_parameter(struct parameter_list *list, const char *name);
40 struct parameter_list *np_del_parameter(struct parameter_list *item, struct parameter_list *prev);
42 int search_parameter_list (struct parameter_list *list, const char *name);
43 void np_set_best_match(struct parameter_list *desired, struct mount_entry *mount_list, int exact);
44 int np_regex_match_mount_entry (struct mount_entry* me, regex_t* re);