summaryrefslogtreecommitdiffstats
path: root/plugins/utils.h
diff options
context:
space:
mode:
authorTon Voon <tonvoon@users.sourceforge.net>2006-07-13 12:50:23 (GMT)
committerTon Voon <tonvoon@users.sourceforge.net>2006-07-13 12:50:23 (GMT)
commit548083b2ea865474915fc8a9ddd361e997585a02 (patch)
treef3766c1f5d8f8ea1b2b721a5792e4fb4daf1cf68 /plugins/utils.h
parent6b9cc76d0a27631fbab19a31ab8bd46e143b7580 (diff)
downloadmonitoring-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.h25
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. */
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 */