mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-22 14:46:57 -04:00
Merge pull request #2021 from monitoring-plugins/check_disk_static_fixes
Check disk static fixes
This commit is contained in:
commit
91fa55f971
1 changed files with 33 additions and 48 deletions
|
|
@ -119,44 +119,41 @@ enum
|
|||
#pragma alloca
|
||||
#endif
|
||||
|
||||
int process_arguments (int, char **);
|
||||
void print_path (const char *mypath);
|
||||
void set_all_thresholds (struct parameter_list *path);
|
||||
int validate_arguments (uintmax_t, uintmax_t, double, double, double, double, char *);
|
||||
void print_help (void);
|
||||
static int process_arguments (int, char **);
|
||||
static void set_all_thresholds (struct parameter_list *path);
|
||||
static void print_help (void);
|
||||
void print_usage (void);
|
||||
double calculate_percent(uintmax_t, uintmax_t);
|
||||
bool stat_path (struct parameter_list *p);
|
||||
void get_stats (struct parameter_list *p, struct fs_usage *fsp);
|
||||
void get_path_stats (struct parameter_list *p, struct fs_usage *fsp);
|
||||
static double calculate_percent(uintmax_t, uintmax_t);
|
||||
static bool stat_path (struct parameter_list *p);
|
||||
static void get_stats (struct parameter_list *p, struct fs_usage *fsp);
|
||||
static void get_path_stats (struct parameter_list *p, struct fs_usage *fsp);
|
||||
|
||||
char *exclude_device;
|
||||
char *units;
|
||||
uintmax_t mult = 1024 * 1024;
|
||||
int verbose = 0;
|
||||
bool erronly = false;
|
||||
bool display_mntp = false;
|
||||
bool exact_match = false;
|
||||
bool ignore_missing = false;
|
||||
bool freespace_ignore_reserved = false;
|
||||
bool display_inodes_perfdata = false;
|
||||
char *warn_freespace_units = NULL;
|
||||
char *crit_freespace_units = NULL;
|
||||
char *warn_freespace_percent = NULL;
|
||||
char *crit_freespace_percent = NULL;
|
||||
char *warn_usedspace_units = NULL;
|
||||
char *crit_usedspace_units = NULL;
|
||||
char *warn_usedspace_percent = NULL;
|
||||
char *crit_usedspace_percent = NULL;
|
||||
char *warn_usedinodes_percent = NULL;
|
||||
char *crit_usedinodes_percent = NULL;
|
||||
char *warn_freeinodes_percent = NULL;
|
||||
char *crit_freeinodes_percent = NULL;
|
||||
bool path_selected = false;
|
||||
bool path_ignored = false;
|
||||
char *group = NULL;
|
||||
struct stat *stat_buf;
|
||||
struct name_list *seen = NULL;
|
||||
static char *units;
|
||||
static uintmax_t mult = 1024 * 1024;
|
||||
static int verbose = 0;
|
||||
static bool erronly = false;
|
||||
static bool display_mntp = false;
|
||||
static bool exact_match = false;
|
||||
static bool ignore_missing = false;
|
||||
static bool freespace_ignore_reserved = false;
|
||||
static bool display_inodes_perfdata = false;
|
||||
static char *warn_freespace_units = NULL;
|
||||
static char *crit_freespace_units = NULL;
|
||||
static char *warn_freespace_percent = NULL;
|
||||
static char *crit_freespace_percent = NULL;
|
||||
static char *warn_usedspace_units = NULL;
|
||||
static char *crit_usedspace_units = NULL;
|
||||
static char *warn_usedspace_percent = NULL;
|
||||
static char *crit_usedspace_percent = NULL;
|
||||
static char *warn_usedinodes_percent = NULL;
|
||||
static char *crit_usedinodes_percent = NULL;
|
||||
static char *warn_freeinodes_percent = NULL;
|
||||
static char *crit_freeinodes_percent = NULL;
|
||||
static bool path_selected = false;
|
||||
static bool path_ignored = false;
|
||||
static char *group = NULL;
|
||||
static struct stat *stat_buf;
|
||||
static struct name_list *seen = NULL;
|
||||
|
||||
|
||||
int
|
||||
|
|
@ -899,18 +896,6 @@ process_arguments (int argc, char **argv)
|
|||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
||||
void
|
||||
print_path (const char *mypath)
|
||||
{
|
||||
if (mypath == NULL)
|
||||
printf ("\n");
|
||||
else
|
||||
printf (_(" for %s\n"), mypath);
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
set_all_thresholds (struct parameter_list *path)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue