summaryrefslogtreecommitdiffstats
path: root/plugins/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/utils.h')
-rw-r--r--plugins/utils.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/plugins/utils.h b/plugins/utils.h
index 4bbe33d0..1f53aadb 100644
--- a/plugins/utils.h
+++ b/plugins/utils.h
@@ -20,7 +20,6 @@ suite of plugins. */
20void support (void); 20void support (void);
21char *clean_revstring (const char *); 21char *clean_revstring (const char *);
22void print_revision (const char *, const char *); 22void print_revision (const char *, const char *);
23void die (int, const char *, ...) __attribute__((noreturn,format(printf, 2, 3)));
24 23
25/* Handle timeouts */ 24/* Handle timeouts */
26 25
@@ -58,28 +57,6 @@ struct timeval {
58}; 57};
59#endif 58#endif
60 59
61#define OUTSIDE 0
62#define INSIDE 1
63
64typedef struct range_struct {
65 double start;
66 int start_infinity; /* FALSE (default) or TRUE */
67 double end;
68 int end_infinity;
69 int alert_on; /* OUTSIDE (default) or INSIDE */
70 } range;
71
72typedef struct thresholds_struct {
73 range *warning;
74 range *critical;
75 } thresholds;
76
77range *parse_range_string (char *);
78int _set_thresholds(thresholds **, char *, char *);
79void set_thresholds(thresholds **, char *, char *);
80int check_range(double, range *);
81int get_status(double, thresholds *);
82
83#ifndef HAVE_GETTIMEOFDAY 60#ifndef HAVE_GETTIMEOFDAY
84int gettimeofday(struct timeval *, struct timezone *); 61int gettimeofday(struct timeval *, struct timezone *);
85#endif 62#endif
@@ -132,8 +109,6 @@ char *fperfdata (const char *,
132 int, 109 int,
133 double); 110 double);
134 111
135char *np_escaped_string (const char *);
136
137/* The idea here is that, although not every plugin will use all of these, 112/* The idea here is that, although not every plugin will use all of these,
138 most will or should. Therefore, for consistency, these very common 113 most will or should. Therefore, for consistency, these very common
139 options should have only these meanings throughout the overall suite */ 114 options should have only these meanings throughout the overall suite */