diff options
author | Ton Voon <tonvoon@users.sourceforge.net> | 2006-07-13 12:50:23 (GMT) |
---|---|---|
committer | Ton Voon <tonvoon@users.sourceforge.net> | 2006-07-13 12:50:23 (GMT) |
commit | 548083b2ea865474915fc8a9ddd361e997585a02 (patch) | |
tree | f3766c1f5d8f8ea1b2b721a5792e4fb4daf1cf68 /plugins/utils.h | |
parent | 6b9cc76d0a27631fbab19a31ab8bd46e143b7580 (diff) | |
download | monitoring-plugins-548083b2ea865474915fc8a9ddd361e997585a02.tar.gz |
Move new util_* functions to lib/
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1451 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/utils.h')
-rw-r--r-- | plugins/utils.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/plugins/utils.h b/plugins/utils.h index 4bbe33d..1f53aad 100644 --- a/plugins/utils.h +++ b/plugins/utils.h | |||
@@ -20,7 +20,6 @@ suite of plugins. */ | |||
20 | void support (void); | 20 | void support (void); |
21 | char *clean_revstring (const char *); | 21 | char *clean_revstring (const char *); |
22 | void print_revision (const char *, const char *); | 22 | void print_revision (const char *, const char *); |
23 | void 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 | |||
64 | typedef 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 | |||
72 | typedef struct thresholds_struct { | ||
73 | range *warning; | ||
74 | range *critical; | ||
75 | } thresholds; | ||
76 | |||
77 | range *parse_range_string (char *); | ||
78 | int _set_thresholds(thresholds **, char *, char *); | ||
79 | void set_thresholds(thresholds **, char *, char *); | ||
80 | int check_range(double, range *); | ||
81 | int get_status(double, thresholds *); | ||
82 | |||
83 | #ifndef HAVE_GETTIMEOFDAY | 60 | #ifndef HAVE_GETTIMEOFDAY |
84 | int gettimeofday(struct timeval *, struct timezone *); | 61 | int 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 | ||
135 | char *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 */ |