Xymon Mailing List Archive search

Still no ghostlist

4 messages in this thread

list Kent Brodie · Fri, 11 Aug 2006 22:24:01 -0500 ·
Web page still shows:  "failed to retrieve ghostlist from server".

Bb commands show (I renamed a host to force a ghost entry to appear):

-bash-3.00$ bb 127.0.0.1 ghostlist
carrxxx.hmgc.mcw.edu|141.106.224.202|1155352870

-bash-3.00$ bb 127.0.0.1 ping
hobbitd 4.2.0


Ideas?     


-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: Thursday, August 10, 2006 4:40 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] acknowledge with 4.2.0

On Thu, Aug 10, 2006 at 04:28:22PM -0500, Larry Barber wrote:
I just installed the new 4.2.0 release and I have discoved that when
trying
to acknowledge alerts, that the ack-alerts page does not seem to be
working
for the intermediate pages. When called from the top page you get a
list of
all the active alerts, and when called from the lowest level pages you
get a
list of alerts on that page (plus one more for some reason), on
intermediate
pages though, you just get a "No Active Alerts" message. Is this the
way it
is supposed to work.
Hmm, no - that doesn't seem right. The culprit is the web/bb-ack.c line
257:
   sprintf(cmd + strlen(cmd), " page=^%s$", pagename);
That's a regular expression for matching the pagename. It should
probably just have the '$' at the end removed, so it becomes
   sprintf(cmd + strlen(cmd), " page=^%s", pagename);


Regards,
Henrik
list Henrik Størner · Sat, 12 Aug 2006 08:27:36 +0200 ·
quoted from Kent Brodie
On Fri, Aug 11, 2006 at 10:24:01PM -0500, Brodie, Kent wrote:
Web page still shows:  "failed to retrieve ghostlist from server".

Bb commands show (I renamed a host to force a ghost entry to appear):

-bash-3.00$ bb 127.0.0.1 ghostlist
carrxxx.hmgc.mcw.edu|141.106.224.202|1155352870
What's in your hobbitcgi.cfg's CGI_GHOSTS_OPT setting? Should be

CGI_GHOSTS_OPTS="--env=/usr/lib/hobbit/server/etc/hobbitserver.cfg"

(adjusted for your hobbit homedir path).


Also, what are your BBDISP and BBDISPLAYS settings? Does it work if
you modify the ~hobbit/cgi-bin/hobbit-ghosts.sh script and add 
  BBDISP="127.0.0.1
  export BBDISP
just before the "exec ..." line ?


Regards,
Henrik
list Henrik Størner · Sat, 12 Aug 2006 08:31:46 +0200 ·
quoted from Henrik Størner
On Fri, Aug 11, 2006 at 10:24:01PM -0500, Brodie, Kent wrote:
Web page still shows:  "failed to retrieve ghostlist from server".

Bb commands show (I renamed a host to force a ghost entry to appear):

-bash-3.00$ bb 127.0.0.1 ghostlist
carrxxx.hmgc.mcw.edu|141.106.224.202|1155352870
Does it show up on the hobbit servers' "hobbitd" status?


Regards,
Henrik
list Kent Brodie · Mon, 14 Aug 2006 09:21:50 -0500 ·
Henrik:

The BBDISP setting is the true IP address of my hobbit server.
BBDISPLAYS is blank.

And yes, if I modify hobbit-ghosts.sh as you outlined below, it now
seems to work.   An OK workaround for me for now, I hope you are able to
figure out what the permanent fix is?   Thanks!

By the way, this is new behavior to me with the 4.2.0. release - my
"ghostlist" display from the hobbit web page always used to work with no
problems.   


Kent C. Brodie - user-da7f7d5174c0@xymon.invalid
Department of Physiology
Medical College of Wisconsin
(XXX) XXX-XXXX
quoted from Henrik Størner
-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: Saturday, August 12, 2006 1:28 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Still no ghostlist

On Fri, Aug 11, 2006 at 10:24:01PM -0500, Brodie, Kent wrote:
Web page still shows:  "failed to retrieve ghostlist from server".

Bb commands show (I renamed a host to force a ghost entry to appear):

-bash-3.00$ bb 127.0.0.1 ghostlist
carrxxx.hmgc.mcw.edu|141.106.224.202|1155352870
What's in your hobbitcgi.cfg's CGI_GHOSTS_OPT setting? Should be

CGI_GHOSTS_OPTS="--env=/usr/lib/hobbit/server/etc/hobbitserver.cfg"

(adjusted for your hobbit homedir path).


Also, what are your BBDISP and BBDISPLAYS settings? Does it work if
you modify the ~hobbit/cgi-bin/hobbit-ghosts.sh script and add 
  BBDISP="127.0.0.1
  export BBDISP
just before the "exec ..." line ?


Regards,
Henrik