[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hobbit] Xymon 4.3.0: Beta version available on Sourceforge



On Mon, Feb 09, 2009 at 10:05:53PM +0100, Henrik Størner wrote:
> I think the attached patch should fix it, if you use the right
> commandline to start hobbitd_filestore. I.e. you must add the
> "--locator=IP:PORTNUMBER" (probably the IP of your Xymon server,
> and port 1984) to the hobbitd_filestore command.

Sorry, I was wrong - this patch won't fix it. This one will, 
I hope.


Regards,
Henrik

Index: hobbitd/hobbitd_filestore.c
===================================================================
--- hobbitd/hobbitd_filestore.c	(revision 6107)
+++ hobbitd/hobbitd_filestore.c	(working copy)
@@ -31,6 +31,7 @@
 #include "hobbitd_worker.h"
 
 static char *multigraphs = ",disk,inode,qtree,quotas,snapshot,TblSpace,if_load,";
+static int locatorbased = 0;
 
 enum role_t { ROLE_STATUS, ROLE_DATA, ROLE_NOTES, ROLE_ENADIS};
 
@@ -122,7 +123,7 @@
 			firstline, restofmsg, 
 			acktime, ackmsg, NULL,
 			disabletime, dismsg,
-			0, 1, 0, 1, multigraphs, NULL, 
+			0, 1, 0, locatorbased, multigraphs, NULL, 
 			NULL, NULL, NULL,
 			0,
 			output);
@@ -241,6 +242,11 @@
 			multigraphs = (char *)malloc(strlen(p+1) + 3);
 			sprintf(multigraphs, ",%s,", p+1);
 		}
+		else if (argnmatch(argv[argi], "--locator=")) {
+			char *p = strchr(argv[argi], '=');
+			locator_init(p+1);
+			locatorbased = 1;
+		}
 	}
 
 	if (filedir == NULL) {