[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Xymon 4.3.0: Beta version available on Sourceforge
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Xymon 4.3.0: Beta version available on Sourceforge
- From: Henrik Størner <henrik (at) hswn.dk>
- Date: Mon, 9 Feb 2009 22:18:27 +0100
- References: <20090209140251.GA1292 (at) osiris.hswn.dk> <7E6EF5534BA146A7B5189C2F42B00C3C (at) noip.org> <20090209210553.GB8914 (at) osiris.hswn.dk>
- User-agent: Mutt/1.5.18 (2008-05-17)
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) {