diff -ruBbd cacti-0.8.6f/lib/poller.php cacti-0.8.6f-patched/lib/poller.php
--- cacti-0.8.6f/lib/poller.php	2005-06-30 23:45:49.000000000 -0400
+++ cacti-0.8.6f-patched/lib/poller.php	2005-07-15 20:23:15.000000000 -0400
@@ -42,7 +42,7 @@
 		stream_set_timeout($fp, $script_timeout);
 
 		/* get output from command */
-		$output = fgets($fp, 1024);
+		$output = fgets($fp, 4096);
 
 		/* determine if the script timedout */
 		$info = stream_get_meta_data($fp);
@@ -85,7 +85,7 @@
 			fwrite($pipes[0], $command . "\r\n");
 
 			/* get result from server */
-			$output = fgets($pipes[1], 1024);
+			$output = fgets($pipes[1], 4096);
 
 			/* determine if the script timedout */
 			$info = stream_get_meta_data($pipes[0]);
@@ -114,7 +114,7 @@
 			stream_set_timeout($fp, $script_timeout);
 
 			/* get output from command */
-			$output = fgets($fp, 1024);
+			$output = fgets($fp, 4096);
 
 			/* determine if the script timedout */
 			$info = stream_get_meta_data($pipes[0]);
diff -ruBbd cacti-0.8.6f/script_server.php cacti-0.8.6f-patched/script_server.php
--- cacti-0.8.6f/script_server.php	2005-06-30 23:45:49.000000000 -0400
+++ cacti-0.8.6f-patched/script_server.php	2005-07-15 20:23:05.000000000 -0400
@@ -90,7 +90,7 @@
 /* process waits for input and then calls functions as required */
 while (1) {
 	$result = "";
-	$in_string = fgets(STDIN,255);
+	$in_string = fgets(STDIN,1024);
 	$in_string = trim(strtr(strtr($in_string,'\r',''),'\n',''));
 	if (strlen($in_string)>0) {
 		if (($in_string != "quit") && ($in_string != "")) {
