[hobbit] [patch] bb-findhost.cgi redirects to the page when only one host matches

Henrik Stoerner henrik at hswn.dk
Tue Jun 27 23:53:01 CEST 2006


On Tue, Jun 27, 2006 at 12:05:14PM +0200, Charles Goyard wrote:
> 
> I made a small modification to bb-findhost.c so that when a search
> yields only one results, you get transported to that page.
> 
> Since we only know there's one result after a full scan of the bb-hosts
> file, and don't want to scan the file twice, I use an ugly way to do it:
> a javascript redirect held in a <img> tag.

I like the overall idea, but the implementation is not so nice.

So I made a different implementation of the same idea, but without the
JavaScript/img tag stuff. You'll find it in the snapshot that is
generated in a few minutes.


Regards,
Henrik




More information about the Xymon mailing list