From 548083b2ea865474915fc8a9ddd361e997585a02 Mon Sep 17 00:00:00 2001 From: Ton Voon Date: Thu, 13 Jul 2006 12:50:23 +0000 Subject: Move new util_* functions to lib/ git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1451 f882894a-f735-0410-b71e-b25c423dba1c --- plugins/utils.h | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'plugins/utils.h') 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. */ void support (void); char *clean_revstring (const char *); void print_revision (const char *, const char *); -void die (int, const char *, ...) __attribute__((noreturn,format(printf, 2, 3))); /* Handle timeouts */ @@ -58,28 +57,6 @@ struct timeval { }; #endif -#define OUTSIDE 0 -#define INSIDE 1 - -typedef struct range_struct { - double start; - int start_infinity; /* FALSE (default) or TRUE */ - double end; - int end_infinity; - int alert_on; /* OUTSIDE (default) or INSIDE */ - } range; - -typedef struct thresholds_struct { - range *warning; - range *critical; - } thresholds; - -range *parse_range_string (char *); -int _set_thresholds(thresholds **, char *, char *); -void set_thresholds(thresholds **, char *, char *); -int check_range(double, range *); -int get_status(double, thresholds *); - #ifndef HAVE_GETTIMEOFDAY int gettimeofday(struct timeval *, struct timezone *); #endif @@ -132,8 +109,6 @@ char *fperfdata (const char *, int, double); -char *np_escaped_string (const char *); - /* The idea here is that, although not every plugin will use all of these, most will or should. Therefore, for consistency, these very common options should have only these meanings throughout the overall suite */ -- cgit v1.2.3-74-g34f1