diff options
Diffstat (limited to 'plugins/common.h')
-rw-r--r-- | plugins/common.h | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/plugins/common.h b/plugins/common.h index 833479ce..603bae55 100644 --- a/plugins/common.h +++ b/plugins/common.h | |||
@@ -32,6 +32,7 @@ | |||
32 | #define _COMMON_H_ | 32 | #define _COMMON_H_ |
33 | 33 | ||
34 | #include "config.h" | 34 | #include "config.h" |
35 | #include "../lib/monitoringplug.h" | ||
35 | 36 | ||
36 | #ifdef HAVE_FEATURES_H | 37 | #ifdef HAVE_FEATURES_H |
37 | #include <features.h> | 38 | #include <features.h> |
@@ -90,16 +91,10 @@ | |||
90 | # define GET_NUMBER_OF_CPUS() -1 | 91 | # define GET_NUMBER_OF_CPUS() -1 |
91 | #endif | 92 | #endif |
92 | 93 | ||
93 | #ifdef TIME_WITH_SYS_TIME | 94 | #ifdef HAVE_SYS_TIME_H |
94 | # include <sys/time.h> | 95 | # include <sys/time.h> |
95 | # include <time.h> | ||
96 | #else | ||
97 | # ifdef HAVE_SYS_TIME_H | ||
98 | # include <sys/time.h> | ||
99 | # else | ||
100 | # include <time.h> | ||
101 | # endif | ||
102 | #endif | 96 | #endif |
97 | #include <time.h> | ||
103 | 98 | ||
104 | #ifdef HAVE_SYS_TYPES_H | 99 | #ifdef HAVE_SYS_TYPES_H |
105 | #include <sys/types.h> | 100 | #include <sys/types.h> |
@@ -185,14 +180,6 @@ enum { | |||
185 | }; | 180 | }; |
186 | 181 | ||
187 | enum { | 182 | enum { |
188 | STATE_OK, | ||
189 | STATE_WARNING, | ||
190 | STATE_CRITICAL, | ||
191 | STATE_UNKNOWN, | ||
192 | STATE_DEPENDENT | ||
193 | }; | ||
194 | |||
195 | enum { | ||
196 | DEFAULT_SOCKET_TIMEOUT = 10, /* timeout after 10 seconds */ | 183 | DEFAULT_SOCKET_TIMEOUT = 10, /* timeout after 10 seconds */ |
197 | MAX_INPUT_BUFFER = 8192, /* max size of most buffers we use */ | 184 | MAX_INPUT_BUFFER = 8192, /* max size of most buffers we use */ |
198 | MAX_HOST_ADDRESS_LENGTH = 256 /* max size of a host address */ | 185 | MAX_HOST_ADDRESS_LENGTH = 256 /* max size of a host address */ |