Xymon Mailing List Archive search

find host problem

list Guillermo Castellini
Fri, 23 Feb 2007 14:54:21 -0300
Message-Id: <user-309cafa8d530@xymon.invalid>

John thanks a lot, i found the problem...
My webserver is HTTP://HOBBITSRV:8080 <http://HOBBITSRV:8080>; (listen in
8080 port) but $BBWEBHOST show me HTTP://HOBBITSRV
<http://HOBBITSRV>;(whithout 8080), i move my webserver to 80 port and
the problem go out !
I put the BBWEBHOST variable correctly
BBWEBHOST="http://$BBSERVERWWWNAME<http://$bbserverwwwname/>:8080";
and works fine !!!!

Thanks a lot !!!! - I am happy now :)


On 2/23/07, John Glowacki <user-a1361bcdf988@xymon.invalid> wrote:
I have seen minor issue that sounds like what you are trying to describe.

Starting URL.
http://10.10.10.12/hobbit-cgi/bb-findhost.sh

URL after search with "jump to page" unckecked. (works)
http://10.10.10.12/hobbit-cgi/bb-findhost.sh?host=pymon01&SUB=Search

URL after search with "jump to page" checked. (http host changed from ip
to hostname, I think this is where your problem is)
http://pymon02/hobbit//#pymon01

URL after search with "jump to page" checked but with more than one host
returned. (works)
http://10.10.10.12/hobbit-cgi/bb-findhost.sh?host=mon&jump=on&SUB=Search

I believe it has to do with the use of calling BBWEBHOST in the jump
code. What is BBWEBHOST set to? Run bbcmd and echo $BBWEBHOST. Does that
hostname exist? Or a better question might be is it resolvable from the
system you are running your browser from?

web/bb-findhost.c
       if (dojump) {
               if (gotany == 1) {
                       printf("Location: %s%s\n\n",
xgetenv("BBWEBHOST"), oneurl);
                       return 0;
               }
               else if ((gotany > 1) && (gotonepage == OP_YES)) {
                       printf("Location: %s%s/%s/\n\n",
                              xgetenv("BBWEBHOST"), xgetenv("BBWEB"),
onepage);
                       return 0;
               }
       }


John


Guillermo Castellini wrote:
Nobody have this problem?

On 2/19/07, Guillermo Castellini <user-00680cb9d11a@xymon.invalid> wrote:
This page can't be founded in the browser (jump active)....
http://149.194.61.199:8080/hobbit-cgi/bb-findhost.sh?host=hobbitsrv&jump=on

Works Great !

http://149.194.61.199:8080/hobbit-cgi/bb-findhost.sh?host=hobbitsrv&SUB=Search
Thanks a Lot !

On 2/16/07, Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote:
On Fri, Feb 16, 2007 at 10:49:14AM -0300, Guillermo Castellini wrote:
When i check "jump to page" in Admnistration Menu/Find Host, the
server
can4t find  the generated page.
If i remove "Jump to page" works great ! I try in serverals ways
but
nothing
resolve the problem....
Could you show me both of the URL's that you end up with ? The one
that
fails and the one that works ?


Regards,
Henrik