Xymon Mailing List Archive search

nstab.html not working

list S Aiello
Wed, 5 Sep 2007 17:57:41 -0400
Message-Id: <user-8b6f07762e13@xymon.invalid>

On Wednesday 05 September 2007, user-ce96540ed38f@xymon.invalid 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&amp;SERVICE=kincron"hrt1
(kincron)</A>
      </LI>

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