Xymon Mailing List Archive search

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

list Henrik Størner
Tue, 27 Jun 2006 23:53:01 +0200
Message-Id: <user-1198b1cc65a0@xymon.invalid>

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