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

Re: [hobbit] hobbit show devmon's community string in "info" page



On Wed, Aug 22, 2007 at 07:53:49AM -0500, T.J. Yang wrote:
> Is there anyway to hide this information from hobbit server showing this 
> community information  ?
> 
> It is showing like following under "info" for a host with devmon enabled.
> 
> Other tags:	DEVMON:cid(mypassword)

Patch attached.

Henrik


--- web/hobbitsvc-info.c	2007/07/26 21:17:06	1.119
+++ web/hobbitsvc-info.c	2007/08/22 13:40:52
@@ -981,7 +981,8 @@
 		     (strncmp(val, "post;", 5)   != 0)  &&
 		     (strncmp(val, "post=", 5)   != 0)  &&
 		     (strncmp(val, "nopost=", 7) != 0)  &&
-		     (strncmp(val, "nopost;", 7) != 0) ) {
+		     (strncmp(val, "nopost;", 7) != 0)  &&
+		     (strncmp(val, "DEVMON:", 7) != 0) ) {
 			sprintf(l, "%s ", val);
 			addtobuffer(infobuf, l);
 		}