Xymon Mailing List Archive search

Channel processing problem with 4.11

list Henrik Størner
Fri, 30 Sep 2005 18:01:46 +0200
Message-Id: <user-48cf933e601c@xymon.invalid>

On Fri, Sep 30, 2005 at 10:47:39AM -0500, Deiss, Mark wrote:
I have narrowed down the fault in the client message to the first line in
the df output (how strange). Below is the client side code where only
reporting the initial client line and then the [df] block header and the df
output. If the HPUX df header line is removed before sending out message, no
error on channel. 
I just had another report about hobbitd_client crashing, also with the "df"
reports. In that case I was able to track it down and the attached patch 
should fix it (the patch is on top of the current snapshot). Could you
try if this fixes it ? It might be the same problem.

Regards,
Henrik

-------------- next part --------------
--- hobbitd/hobbitd_client.c	2005/09/28 21:21:56	1.34
+++ hobbitd/hobbitd_client.c	2005/09/30 15:53:55
@@ -314,7 +314,7 @@
 			if (usestr && isdigit((int)*usestr)) usage = atoi(usestr); else usage = -1;
 
 			strcpy(p, bol); fsname = getcolumn(p, mntcol);
-			add_disk_count(fsname);
+			if (fsname) add_disk_count(fsname);
 
 			if (fsname && (usage != -1)) {
 				get_disk_thresholds(hinfo, fsname, &warnlevel, &paniclevel);
--- hobbitd/client_config.c	2005/09/21 11:37:05	1.9
+++ hobbitd/client_config.c	2005/09/30 15:54:57
@@ -544,6 +544,8 @@
 	int ovector[10];
 	int result;
 
+	if (!pname) return;
• for (pwalk = head; (pwalk); pwalk = pwalk->next) {
 		switch (pwalk->rule->ruletype) {
 		  case C_PROC: