summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/check_disk.c74
1 files changed, 37 insertions, 37 deletions
diff --git a/plugins/check_disk.c b/plugins/check_disk.c
index 24de2d4..8bfc69b 100644
--- a/plugins/check_disk.c
+++ b/plugins/check_disk.c
@@ -119,44 +119,44 @@ enum
119#pragma alloca 119#pragma alloca
120#endif 120#endif
121 121
122int process_arguments (int, char **); 122static int process_arguments (int, char **);
123void print_path (const char *mypath); 123static void print_path (const char *mypath);
124void set_all_thresholds (struct parameter_list *path); 124static void set_all_thresholds (struct parameter_list *path);
125int validate_arguments (uintmax_t, uintmax_t, double, double, double, double, char *); 125static int validate_arguments (uintmax_t, uintmax_t, double, double, double, double, char *);
126void print_help (void); 126static void print_help (void);
127void print_usage (void); 127void print_usage (void);
128double calculate_percent(uintmax_t, uintmax_t); 128static double calculate_percent(uintmax_t, uintmax_t);
129bool stat_path (struct parameter_list *p); 129static bool stat_path (struct parameter_list *p);
130void get_stats (struct parameter_list *p, struct fs_usage *fsp); 130static void get_stats (struct parameter_list *p, struct fs_usage *fsp);
131void get_path_stats (struct parameter_list *p, struct fs_usage *fsp); 131static void get_path_stats (struct parameter_list *p, struct fs_usage *fsp);
132 132
133char *exclude_device; 133static char *exclude_device;
134char *units; 134static char *units;
135uintmax_t mult = 1024 * 1024; 135static uintmax_t mult = 1024 * 1024;
136int verbose = 0; 136static int verbose = 0;
137bool erronly = false; 137static bool erronly = false;
138bool display_mntp = false; 138static bool display_mntp = false;
139bool exact_match = false; 139static bool exact_match = false;
140bool ignore_missing = false; 140static bool ignore_missing = false;
141bool freespace_ignore_reserved = false; 141static bool freespace_ignore_reserved = false;
142bool display_inodes_perfdata = false; 142static bool display_inodes_perfdata = false;
143char *warn_freespace_units = NULL; 143static char *warn_freespace_units = NULL;
144char *crit_freespace_units = NULL; 144static char *crit_freespace_units = NULL;
145char *warn_freespace_percent = NULL; 145static char *warn_freespace_percent = NULL;
146char *crit_freespace_percent = NULL; 146static char *crit_freespace_percent = NULL;
147char *warn_usedspace_units = NULL; 147static char *warn_usedspace_units = NULL;
148char *crit_usedspace_units = NULL; 148static char *crit_usedspace_units = NULL;
149char *warn_usedspace_percent = NULL; 149static char *warn_usedspace_percent = NULL;
150char *crit_usedspace_percent = NULL; 150static char *crit_usedspace_percent = NULL;
151char *warn_usedinodes_percent = NULL; 151static char *warn_usedinodes_percent = NULL;
152char *crit_usedinodes_percent = NULL; 152static char *crit_usedinodes_percent = NULL;
153char *warn_freeinodes_percent = NULL; 153static char *warn_freeinodes_percent = NULL;
154char *crit_freeinodes_percent = NULL; 154static char *crit_freeinodes_percent = NULL;
155bool path_selected = false; 155static bool path_selected = false;
156bool path_ignored = false; 156static bool path_ignored = false;
157char *group = NULL; 157static char *group = NULL;
158struct stat *stat_buf; 158static struct stat *stat_buf;
159struct name_list *seen = NULL; 159static struct name_list *seen = NULL;
160 160
161 161
162int 162int