aboutsummaryrefslogtreecommitdiff
path: root/plugins/utils.h
diff options
context:
space:
mode:
authorGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-01-30 16:10:50 +0000
committerGravatar Ton Voon <tonvoon@users.sourceforge.net> 2006-01-30 16:10:50 +0000
commit795100ae5124915bb647a304d5dfe2ada2f44ab0 (patch)
treeb3fd0dc1a88ebb533f074c476ee020e32877632e /plugins/utils.h
parentc8a9bf228fdd34b021796f577a404cb8b0cba1f9 (diff)
downloadmonitoring-plugins-795100ae5124915bb647a304d5dfe2ada2f44ab0.tar.gz
Added libtap tests for utils.c library functions. Removed redundant
test files git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1303 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/utils.h')
-rw-r--r--plugins/utils.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/utils.h b/plugins/utils.h
index 2d976345..f47d0533 100644
--- a/plugins/utils.h
+++ b/plugins/utils.h
@@ -58,6 +58,19 @@ struct timeval {
};
#endif
+#define OUTSIDE 0
+#define INSIDE 1
+
+typedef struct threshold_struct {
+ double start;
+ int start_infinity; /* FALSE (default) or TRUE */
+ double end;
+ int end_infinity;
+ int alert_on; /* OUTSIDE (default) or INSIDE */
+ } threshold;
+
+threshold *parse_threshold (char *);
+
#ifndef HAVE_GETTIMEOFDAY
int gettimeofday(struct timeval *, struct timezone *);
#endif