nstab.html not working
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>
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
On Wednesday 05 September 2007, s_aiello at comcast.net 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
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
On Wednesday 26 September 2007, s_aiello at comcast.net wrote:
On Wednesday 05 September 2007, s_aiello at comcast.net 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
participants (1)
-
s_aiello@comcast.net