diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2006-07-13 23:58:00 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2006-07-13 23:58:00 (GMT) |
commit | 5912398b9723545ecd061650667cbb238be85743 (patch) | |
tree | e5d8353cc8d8c278bfc22bd926f613da63f5e83f /lib/utils_disk.h | |
parent | 548083b2ea865474915fc8a9ddd361e997585a02 (diff) | |
download | monitoring-plugins-5912398b9723545ecd061650667cbb238be85743.tar.gz |
Major fixes to check_disk. Now should return same data as df
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1452 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'lib/utils_disk.h')
-rw-r--r-- | lib/utils_disk.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/utils_disk.h b/lib/utils_disk.h new file mode 100644 index 0000000..928fdbe --- /dev/null +++ b/lib/utils_disk.h | |||
@@ -0,0 +1,32 @@ | |||
1 | /* Header file for utils_disk */ | ||
2 | |||
3 | #include "mountlist.h" | ||
4 | #include "utils_base.h" | ||
5 | |||
6 | struct name_list | ||
7 | { | ||
8 | char *name; | ||
9 | struct name_list *next; | ||
10 | }; | ||
11 | |||
12 | struct parameter_list | ||
13 | { | ||
14 | char *name; | ||
15 | int found; | ||
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 | struct mount_entry *best_match; | ||
24 | struct parameter_list *name_next; | ||
25 | }; | ||
26 | |||
27 | void np_add_name (struct name_list **list, const char *name); | ||
28 | int np_find_name (struct name_list *list, const char *name); | ||
29 | int np_seen_name (struct name_list *list, const char *name); | ||
30 | struct parameter_list *np_add_parameter(struct parameter_list **list, const char *name); | ||
31 | int search_parameter_list (struct parameter_list *list, const char *name); | ||
32 | void np_set_best_match(struct parameter_list *desired, struct mount_entry *mount_list, int exact); | ||