Xymon Mailing List Archive search

nstab.html not working

4 messages in this thread

list S Aiello · Wed, 5 Sep 2007 12:38:20 -0400 ·
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>
list S Aiello · Wed, 5 Sep 2007 17:57:41 -0400 ·
quoted from S Aiello
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
list S Aiello · Wed, 26 Sep 2007 12:58:36 -0400 ·
quoted from S Aiello
On Wednesday 05 September 2007, user-ce96540ed38f@xymon.invalid wrote:
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.
Was curious if Henrik or anyone else with more C experience was able to look at this bug ? Looking at the code, the nstab file generation seems to be bundled with the bb2 page generation. But if that is so, I do not understand why I seem to alternate between 3 nstab reports. 
Or should the nstab feature be deemed depricated and not to be used ? If that is the case I can try to feed off the rss feed feature.

Thank you for your help,
 ~Steve
list S Aiello · Wed, 26 Sep 2007 13:12:52 -0400 ·
That may of come out wrong...  So the following:
Was curious if Henrik or anyone else with more C experience was...
should of read as:
Was curious if Henrik or anyone else with more C experience than I was...
Thanks,
 ~Steve
quoted from S Aiello

On Wednesday 26 September 2007, user-ce96540ed38f@xymon.invalid wrote:
On Wednesday 05 September 2007, user-ce96540ed38f@xymon.invalid wrote:
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.
Was curious if Henrik or anyone else with more C experience was able to
look at this bug ? Looking at the code, the nstab file generation seems to
be bundled with the bb2 page generation. But if that is so, I do not
understand why I seem to alternate between 3 nstab reports.

Or should the nstab feature be deemed depricated and not to be used ? If
that is the case I can try to feed off the rss feed feature.

Thank you for your help,
 ~Steve