summaryrefslogtreecommitdiffstats
path: root/plugins/utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/utils.h')
-rw-r--r--plugins/utils.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/plugins/utils.h b/plugins/utils.h
index 43b612c..b345f7a 100644
--- a/plugins/utils.h
+++ b/plugins/utils.h
@@ -17,6 +17,7 @@ char *my_basename (char *);
17void support (void); 17void support (void);
18char *clean_revstring (const char *revstring); 18char *clean_revstring (const char *revstring);
19void print_revision (const char *, const char *); 19void print_revision (const char *, const char *);
20void die (int result, const char *fmt, ...);
20void terminate (int result, char *msg, ...); 21void terminate (int result, char *msg, ...);
21extern RETSIGTYPE timeout_alarm_handler (int); 22extern RETSIGTYPE timeout_alarm_handler (int);
22 23
@@ -71,17 +72,10 @@ void usage (char *msg);
71void usage2(char *msg, char *arg); 72void usage2(char *msg, char *arg);
72void usage3(char *msg, char arg); 73void usage3(char *msg, char arg);
73 74
75char *state_text (int result);
74 76
75#define max(a,b) (((a)>(b))?(a):(b)) 77#define max(a,b) (((a)>(b))?(a):(b))
76 78
77#define state_text(a) \
78(a)==0?"OK":\
79(a)==1?"WARNING":\
80(a)==2?"CRITICAL":\
81(a)==3?"UNKNOWN":\
82(a)==4?"DEPENDENT":\
83"UNKNOWN"
84
85/* The idea here is that, although not every plugin will use all of these, 79/* The idea here is that, although not every plugin will use all of these,
86 most will or should. Therefore, for consistency, these very common 80 most will or should. Therefore, for consistency, these very common
87 options should have only these meanings throughout the overall suite */ 81 options should have only these meanings throughout the overall suite */