[hobbit] nstab.html not working

s_aiello at comcast.net s_aiello at comcast.net
Wed Sep 5 23:57:41 CEST 2007


On Wednesday 05 September 2007, s_aiello at comcast.net wrote:
> I am running BBGEN with the options, "--nstab=nstab.html". Seems the HTML
> is not being outputted correctly. Missing ">Device.test". Is this a bug ?
> Does any one else use the nstab option ?
>
> nstab.html source snippet:
>
> <LI>
> 	<A TARGET="_content"
> HREF="//hobbit-cgi/bb-hostsvc.sh?HOST=hrt1&SERVICE=kincron"hrt1
> (kincron)</A>
>       </LI>
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk

I played with the code myself to fix, was a simple little bug. I had to change 
2 lines:

--- rssgen.c.orig     2007-09-05 17:54:27.000000000 -0400
+++ rssgen.c    2007-09-05 17:48:54.000000000 -0400
@@ -267,10 +267,10 @@
                        }
                        else {
                             fprintf(fd, "\t<A TARGET=\"_content\" 
HREF=\"%s%s\"",
-                               xgetenv("BBWEB"),
+                               xgetenv("BBWEBHOST"),
                                hostsvcurl(h->hostname, e->column->name, 1));
                        }
-                       fprintf(fd, "%s (%s)</A>\n",
+                       fprintf(fd, ">%s (%s)</A>\n",
                             h->hostname, e->column->name);
                        fprintf(fd, "      </LI>\n");
                      }


Now my only problem is that nstab.html file does not consistently show all 
alerts that have a red state. I will continue to dig, but I think that may be 
beyond me, presently.

Please advise,
 ~Steve



More information about the Xymon mailing list