From 9f6e87a311366851d6d491a1a58669f64bf1566d Mon Sep 17 00:00:00 2001 From: Sven Nierlein Date: Thu, 10 Nov 2022 08:48:37 +0100 Subject: [PATCH] cleanup some unused macros Signed-off-by: Sven Nierlein --- src/naemon/common.h | 1 - src/naemon/naemon.h | 10 ---------- 2 files changed, 11 deletions(-) diff --git a/src/naemon/common.h b/src/naemon/common.h index 44c6038e2..21e5bdad3 100644 --- a/src/naemon/common.h +++ b/src/naemon/common.h @@ -474,7 +474,6 @@ NAGIOS_END_DECL #define MAX_FILENAME_LENGTH 256 /* max length of path/filename that Nagios will process */ #define MAX_INPUT_BUFFER 1024 /* size in bytes of max. input buffer (for reading files, misc stuff) */ #define MAX_COMMAND_BUFFER 8192 /* max length of raw or processed command line */ -#define MAX_EXTERNAL_COMMAND_LENGTH 8192 /* max length of an external command */ #define MAX_DATETIME_LENGTH 48 diff --git a/src/naemon/naemon.h b/src/naemon/naemon.h index 02410b304..e2daf28a8 100644 --- a/src/naemon/naemon.h +++ b/src/naemon/naemon.h @@ -65,16 +65,6 @@ * header before use. */ -/************* MISC LENGTH/SIZE DEFINITIONS ***********/ - -/* - NOTE: Plugin length is artificially capped at 8k to prevent runaway plugins from returning MBs/GBs of data - back to Nagios. If you increase the 8k cap by modifying this value, make sure you also increase the value - of MAX_EXTERNAL_COMMAND_LENGTH in common.h to allow for passive checks results received through the external - command file. EG 10/19/07 - */ -#define MAX_PLUGIN_OUTPUT_LENGTH 8192 /* max length of plugin output (including perf data) */ - /*********** ROUTE CHECK PROPAGATION TYPES ************/ #define PROPAGATE_TO_PARENT_HOSTS 1