[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] nstab.html not working
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] nstab.html not working
- From: "s_aiello (at) comcast.net" <s_aiello (at) comcast.net>
- Date: Wed, 5 Sep 2007 17:57:41 -0400
- References: <200709051238.20618.s_aiello (at) comcast.net>
- User-agent: KMail/1.9.6
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