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,5 +3,14 @@ project(nagios_plugins) | ||
3 | 3 | ||
4 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -U__STRICT_ANSI__") | 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 | \ No newline at end of file | 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 | \ No newline at end of file | 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
@@ -14,7 +14,7 @@ | @@ -14,7 +14,7 @@ | ||
14 | #include <sys/time.h> | 14 | #include <sys/time.h> |
15 | 15 | ||
16 | #include "range.h" | 16 | #include "range.h" |
17 | -#include "aux.h" | 17 | +#include "auxiliar.h" |
18 | 18 | ||
19 | #define MEMINFO "/proc/meminfo" | 19 | #define MEMINFO "/proc/meminfo" |
20 | #define VERSION "1.0" | 20 | #define VERSION "1.0" |
check_memfree/range.h
100644 → 100755
@@ -5,7 +5,7 @@ | @@ -5,7 +5,7 @@ | ||
5 | 5 | ||
6 | #include <string.h> | 6 | #include <string.h> |
7 | 7 | ||
8 | -#include "aux.h" | 8 | +#include "auxiliar.h" |
9 | 9 | ||
10 | struct range | 10 | struct range |
11 | { | 11 | { |
@@ -13,7 +13,6 @@ struct range | @@ -13,7 +13,6 @@ struct range | ||
13 | int max; | 13 | int max; |
14 | }; | 14 | }; |
15 | 15 | ||
16 | -void wrongRange(); | ||
17 | range parseRange(char* input, int total); | 16 | range parseRange(char* input, int total); |
18 | 17 | ||
19 | class rangeException : public exception | 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,7 +5,7 @@ | ||
5 | 5 | ||
6 | #include <string.h> | 6 | #include <string.h> |
7 | 7 | ||
8 | -#include "aux.h" | 8 | +#include "auxiliar.h" |
9 | 9 | ||
10 | struct range | 10 | struct range |
11 | { | 11 | { |
@@ -13,7 +13,6 @@ struct range | @@ -13,7 +13,6 @@ struct range | ||
13 | int max; | 13 | int max; |
14 | }; | 14 | }; |
15 | 15 | ||
16 | -void wrongRange(); | ||
17 | range parseRange(char* input, int total); | 16 | range parseRange(char* input, int total); |
18 | 17 | ||
19 | class rangeException : public exception | 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,7 +11,7 @@ | ||
11 | 11 | ||
12 | #include <sys/time.h> | 12 | #include <sys/time.h> |
13 | 13 | ||
14 | -#include "aux.h" | 14 | +#include "auxiliar.h" |
15 | #include "udp.h" | 15 | #include "udp.h" |
16 | 16 | ||
17 | #define DEFAULT_PORT 69 //SEXY PROGRAMMING... | 17 | #define DEFAULT_PORT 69 //SEXY PROGRAMMING... |
@@ -20,7 +20,6 @@ | @@ -20,7 +20,6 @@ | ||
20 | #define RRQ 1 | 20 | #define RRQ 1 |
21 | #define DATA 3 | 21 | #define DATA 3 |
22 | #define ACK 4 | 22 | #define ACK 4 |
23 | -#define ERROR 5 | ||
24 | #define MODE_OCTAL (char*)"octet" | 23 | #define MODE_OCTAL (char*)"octet" |
25 | 24 | ||
26 | using namespace std; | 25 | using namespace std; |