Commit 5f2914bf20da900a0ddb73ec7fb03e5c330ee41d
1 parent
75bf9b0f
Build fixed
Showing
11 changed files
with
17 additions
and
11 deletions
CMakeLists.txt
... | ... | @@ -3,5 +3,14 @@ project(nagios_plugins) |
3 | 3 | |
4 | 4 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -U__STRICT_ANSI__") |
5 | 5 | |
6 | -set(SOURCE_FILES check_memfree/check_memfree.cpp check_memfree/check_memfree.h check_memfree/range.cpp check_memfree/range.h check_memfree/aux.cpp check_memfree/auxiliar.cpp check_memfree/auxiliar.h) | |
7 | -add_executable(nagios_plugins ${SOURCE_FILES}) | |
8 | 6 | \ No newline at end of file |
7 | +set(SOURCE_FILES_MEMFREE check_memfree/check_memfree.cpp check_memfree/range.cpp check_memfree/auxiliar.cpp) | |
8 | +add_executable(check_memfree ${SOURCE_FILES_MEMFREE}) | |
9 | + | |
10 | +set(SOURCE_FILES_MEMFREE_FREEBSD check_memfree_freebsd/check_memfree.cpp check_memfree_freebsd/range.cpp check_memfree_freebsd/auxiliar.cpp) | |
11 | +add_executable(check_memfree_freebsd ${SOURCE_FILES_MEMFREE_FREEBSD}) | |
12 | + | |
13 | +set(SOURCE_FILES_SMART check_smart/check_smart.cpp check_smart/auxiliar.cpp) | |
14 | +add_executable(check_smart ${SOURCE_FILES_SMART}) | |
15 | + | |
16 | +set(SOURCE_FILES_TFTP check_tftp/check_tftp.cpp check_tftp/udp.cpp check_tftp/auxiliar.cpp) | |
17 | +add_executable(check_tftp ${SOURCE_FILES_TFTP}) | |
9 | 18 | \ No newline at end of file | ... | ... |
check_memfree/check_memfree deleted
No preview for this file type
check_memfree/check_memfree.h
100644 → 100755
check_memfree/range.h
100644 → 100755
... | ... | @@ -5,7 +5,7 @@ |
5 | 5 | |
6 | 6 | #include <string.h> |
7 | 7 | |
8 | -#include "aux.h" | |
8 | +#include "auxiliar.h" | |
9 | 9 | |
10 | 10 | struct range |
11 | 11 | { |
... | ... | @@ -13,7 +13,6 @@ struct range |
13 | 13 | int max; |
14 | 14 | }; |
15 | 15 | |
16 | -void wrongRange(); | |
17 | 16 | range parseRange(char* input, int total); |
18 | 17 | |
19 | 18 | class rangeException : public exception | ... | ... |
check_memfree_freebsd/check_memfree deleted
No preview for this file type
check_memfree_freebsd/check_memfree.h
100644 → 100755
check_memfree_freebsd/range.h
100644 → 100755
... | ... | @@ -5,7 +5,7 @@ |
5 | 5 | |
6 | 6 | #include <string.h> |
7 | 7 | |
8 | -#include "aux.h" | |
8 | +#include "auxiliar.h" | |
9 | 9 | |
10 | 10 | struct range |
11 | 11 | { |
... | ... | @@ -13,7 +13,6 @@ struct range |
13 | 13 | int max; |
14 | 14 | }; |
15 | 15 | |
16 | -void wrongRange(); | |
17 | 16 | range parseRange(char* input, int total); |
18 | 17 | |
19 | 18 | class rangeException : public exception | ... | ... |
check_smart/check_smart deleted
No preview for this file type
check_smart/check_smart.h
100644 → 100755
check_tftp/check_tftp deleted
No preview for this file type
check_tftp/check_tftp.h
100644 → 100755
... | ... | @@ -11,7 +11,7 @@ |
11 | 11 | |
12 | 12 | #include <sys/time.h> |
13 | 13 | |
14 | -#include "aux.h" | |
14 | +#include "auxiliar.h" | |
15 | 15 | #include "udp.h" |
16 | 16 | |
17 | 17 | #define DEFAULT_PORT 69 //SEXY PROGRAMMING... |
... | ... | @@ -20,7 +20,6 @@ |
20 | 20 | #define RRQ 1 |
21 | 21 | #define DATA 3 |
22 | 22 | #define ACK 4 |
23 | -#define ERROR 5 | |
24 | 23 | #define MODE_OCTAL (char*)"octet" |
25 | 24 | |
26 | 25 | using namespace std; | ... | ... |