[icinga-checkins] icinga.org: icinga-core/mfriedrich/ido: Revert " Truncate plugin output to 2048 bytes."

git at icinga.org git at icinga.org
Mon Oct 22 17:28:05 CEST 2012


Module: icinga-core
Branch: mfriedrich/ido
Commit: 224bb98bc1f920cc1abe4f072acc254a0bc3c4e5
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=224bb98bc1f920cc1abe4f072acc254a0bc3c4e5

Author: Michael Friedrich <michael.friedrich at gmail.com>
Date:   Mon Oct 22 17:19:42 2012 +0200

Revert "Truncate plugin output to 2048 bytes."

This reverts commit 2d7d55cdb4af6b2c535f788993f533c6d3996116.

---

 module/idoutils/src/dbhandlers.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/module/idoutils/src/dbhandlers.c b/module/idoutils/src/dbhandlers.c
index 0c791f3..8788887 100644
--- a/module/idoutils/src/dbhandlers.c
+++ b/module/idoutils/src/dbhandlers.c
@@ -4202,7 +4202,6 @@ int ido2db_handle_hoststatusdata(ido2db_idi *idi) {
 	int x = 0;
 	int result = IDO_OK;
 	void *data[56];
-	const int PLUGIN_OUTPUT_SIZE = 2048; /* table servicestatus column output length */
 
 	ido2db_log_debug_info(IDO2DB_DEBUGL_PROCESSINFO, 2, "ido2db_handle_hoststatusdata() start\n");
 
@@ -4255,9 +4254,6 @@ int ido2db_handle_hoststatusdata(ido2db_idi *idi) {
 	result = ido2db_convert_string_to_double(idi->buffered_input[IDO_DATA_NORMALCHECKINTERVAL], &normal_check_interval);
 	result = ido2db_convert_string_to_double(idi->buffered_input[IDO_DATA_RETRYCHECKINTERVAL], &retry_check_interval);
 
-	if (strlen(idi->buffered_input[IDO_DATA_OUTPUT]) > PLUGIN_OUTPUT_SIZE)
-		idi->buffered_input[IDO_DATA_OUTPUT][PLUGIN_OUTPUT_SIZE] = '\0';
-
 	es[0] = ido2db_db_escape_string(idi, idi->buffered_input[IDO_DATA_OUTPUT]);
 	es[1] = ido2db_db_escape_string(idi, idi->buffered_input[IDO_DATA_LONGOUTPUT]);
 	es[2] = ido2db_db_escape_string(idi, idi->buffered_input[IDO_DATA_PERFDATA]);
@@ -4421,7 +4417,6 @@ int ido2db_handle_servicestatusdata(ido2db_idi *idi) {
 	int x = 0;
 	int result = IDO_OK;
 	void *data[58];
-	const int PLUGIN_OUTPUT_SIZE = 2048; /* table servicestatus column output length */
 
 	ido2db_log_debug_info(IDO2DB_DEBUGL_PROCESSINFO, 2, "ido2db_handle_servicestatusdata() start\n");
 
@@ -4475,9 +4470,6 @@ int ido2db_handle_servicestatusdata(ido2db_idi *idi) {
 	result = ido2db_convert_string_to_double(idi->buffered_input[IDO_DATA_NORMALCHECKINTERVAL], &normal_check_interval);
 	result = ido2db_convert_string_to_double(idi->buffered_input[IDO_DATA_RETRYCHECKINTERVAL], &retry_check_interval);
 
-	if (strlen(idi->buffered_input[IDO_DATA_OUTPUT]) > PLUGIN_OUTPUT_SIZE)
-		idi->buffered_input[IDO_DATA_OUTPUT][PLUGIN_OUTPUT_SIZE] = '\0';
-
 	es[0] = ido2db_db_escape_string(idi, idi->buffered_input[IDO_DATA_OUTPUT]);
 	es[1] = ido2db_db_escape_string(idi, idi->buffered_input[IDO_DATA_LONGOUTPUT]);
 	es[2] = ido2db_db_escape_string(idi, idi->buffered_input[IDO_DATA_PERFDATA]);





More information about the icinga-checkins mailing list