[hobbit] How to display only a section of clientlog

Henrik Stoerner henrik at hswn.dk
Thu Oct 19 16:05:48 CEST 2006


On Thu, Oct 19, 2006 at 07:26:40AM -0500, T.J. Yang wrote:
> as you can see the intent of showing only prtconf has failed in following 
> command.
> 
> bash-3.00$ bb 127.0.0.1 "clientlog test.test.com  section=prtconf"

Remove the extra space before the "section=prtconf".

Or apply this patch, run "make; make install" and restart Hobbit.


Henrik

-------------- next part --------------
--- hobbitd/hobbitd.c	2006/10/03 10:48:27	1.254
+++ hobbitd/hobbitd.c	2006/10/19 14:03:40
@@ -3277,6 +3277,7 @@
 
 		p = msg->buf + strlen("clientlog"); p += strspn(p, "\t ");
 		hostname = p; p += strcspn(p, "\t "); if (*p) { *p = '\0'; p++; }
+		p += strspn(p, "\t ");
 
 		hosthandle = rbtFind(rbhosts, hostname);
 		if (hosthandle != rbtEnd(rbhosts)) {


More information about the Xymon mailing list