Xymon Mailing List Archive search

purple status bug in 3/27/08 snapshot

4 messages in this thread

list Tom Georgoulias · Mon, 07 Apr 2008 09:31:22 -0400 ·
We're seeing a weird bug in the 3/27/08 snapshot.  When you click on the info column for a host who's status color is purple, the web browser tries to download the "bb-hostsvc.sh" script instead of executing it. This doesn't happen when the host is any other color.

Anyone else seen this?

Tom
list Josh Luthman · Mon, 7 Apr 2008 15:59:13 -0400 ·
Assuming there is #!/bin/sh in the first line of bb-hostsvc.sh it would be
an Apache thing as to why it isn't executing, I believe.

On Mon, Apr 7, 2008 at 9:31 AM, Tom Georgoulias <
quoted from Tom Georgoulias
user-6a0b8b0f0ae1@xymon.invalid> wrote:
We're seeing a weird bug in the 3/27/08 snapshot.  When you click on the
info column for a host who's status color is purple, the web browser tries
to download the "bb-hostsvc.sh" script instead of executing it. This doesn't
happen when the host is any other color.

Anyone else seen this?

Tom

-- 

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
list John Glowacki · Mon, 7 Apr 2008 21:56:06 -0400 ·
quoted from Josh Luthman
On Mon, Apr 7, 2008 at 9:31 AM, Tom Georgoulias
<user-6a0b8b0f0ae1@xymon.invalid> wrote:
We're seeing a weird bug in the 3/27/08 snapshot.  When you click on the
info column for a host who's status color is purple, the web browser tries
to download the "bb-hostsvc.sh" script instead of executing it. This doesn't
happen when the host is any other color.

 Anyone else seen this?

 Tom
I am using 4/5/08 snapshot and info icon worked OK.  I was able to
duplicate the problem. I turned off my hobbitclient and waited for
client statuses to go purple. Then I got the error by clicking on the
info icon. I think it may happen before it turns purple too, if the
hobbit server is restarted with the client not reporting or after
about 10-15 minutes. When I uncomment the hobbitclient process the
info icon works again.

[Mon Apr 07 21:14:12 2008] [error] [client 127.0.0.1] Premature end of
script headers: bb-hostsvc.sh, referer:
http://localhost/hobbit/bb.html


What I am also seeing that is similar is when I click on any yellow
cpu icons in status history or event log report it wants to download
bb-histlog.sh.

apache2 error.log - clicked on yellow cpu history icon
Mon Apr 07 19:48:53 2008] [error] [client 127.0.0.1] Premature end of
script headers: bb-histlog.sh, referer:
http://localhost/hobbit-cgi/bb-hist.sh?HISTFILE=debian.cpu&ENTRIES=50&IP=127.0.0.1&DISPLAYNAME=debian

apache2 error.log - clicked on yellow cpu event log icon
[Mon Apr 07 20:23:31 2008] [error] [client 127.0.0.1] Premature end of
script headers: bb-histlog.sh, referer:
http://localhost/hobbit-cgi/bb-eventlog.sh?MAXTIME=&FROMTIME=2008%2F04%2F01%4000%3A00%3A00&TOTIME=&MAXCOUNT=100&HOSTMATCH=&EXHOSTMATCH=&PAGEMATCH=&EXPAGEMATCH=&TESTMATCH=&EXTESTMATCH=&COLORMATCH=&Send=View+log


I went back and checked 65 events since the 5th and these links have
the same problem. Seems a little random at the moment.

Mon Apr 7 21:13:22 2008 	debian 	cpu 	green From -> To 	purple
http://localhost/hobbit-cgi/bb-histlog.sh?HOST=debian&SERVICE=cpu&TIMEBUF=Mon_Apr_7_21:13:22_2008
Mon Apr 7 21:13:22 2008 	debian 	procs 	clear From -> To 	purple
http://localhost/hobbit-cgi/bb-histlog.sh?HOST=debian&SERVICE=procs&TIMEBUF=Mon_Apr_7_21:13:22_2008
Mon Apr 7 19:06:48 2008 	debian 	cpu 	green From -> To 	yellow
http://localhost/hobbit-cgi/bb-histlog.sh?HOST=debian&SERVICE=cpu&TIMEBUF=Mon_Apr_7_19:06:48_2008
Sun Apr 6 17:06:35 2008 	debian 	cpu 	green From -> To 	yellow
http://localhost/hobbit-cgi/bb-histlog.sh?HOST=debian&SERVICE=cpu&TIMEBUF=Sun_Apr_6_17:06:35_2008
Sat Apr 5 18:58:05 2008 	debian 	hrtask 	green From -> To 	purple
http://localhost/hobbit-cgi/bb-histlog.sh?HOST=debian&SERVICE=hrtask&TIMEBUF=Sat_Apr_5_18:58:05_2008
Sat Apr 5 17:37:45 2008 	debian 	procs 	unknown From -> To 	clear
http://localhost/hobbit-cgi/bb-histlog.sh?HOST=debian&SERVICE=procs&TIMEBUF=Sat_Apr_5_17:37:45_2008
Sat Apr 5 17:37:45 2008 	debian 	cpu 	unknown From -> To 	green
http://localhost/hobbit-cgi/bb-histlog.sh?HOST=debian&SERVICE=cpu&TIMEBUF=Sat_Apr_5_17:37:45_2008

John
list Dave Haertig · Tue, 8 Apr 2008 07:55:07 -0600 ·
I've seen a similar behavior.  In version 4.2.0 standard (no patches).

Sometimes, when viewing full history and clicking one of the non-green
historical dots, it will try to download bb-histlog.sh rather than
execute it.  But I've only seen this using Firefox, never with IE.  And
only when clicking non-green dots.  Green ones always execute the
script.  I figured it wasa browser issue, but that does't explain why it
always works with the green dowts but not the other colors.
quoted from John Glowacki

-----Original Message-----
From: John Glowacki [mailto:user-7da77b391823@xymon.invalid] 
Sent: Monday, April 07, 2008 7:56 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] purple status bug in 3/27/08 snapshot

On Mon, Apr 7, 2008 at 9:31 AM, Tom Georgoulias
<user-6a0b8b0f0ae1@xymon.invalid> wrote:
We're seeing a weird bug in the 3/27/08 snapshot.  When you click on 
the info column for a host who's status color is purple, the web 
browser tries to download the "bb-hostsvc.sh" script instead of 
executing it. This doesn't happen when the host is any other color.

 Anyone else seen this?

 Tom
I am using 4/5/08 snapshot and info icon worked OK.  I was able to
duplicate the problem. I turned off my hobbitclient and waited for
client statuses to go purple. Then I got the error by clicking on the
info icon. I think it may happen before it turns purple too, if the
hobbit server is restarted with the client not reporting or after about
10-15 minutes. When I uncomment the hobbitclient process the info icon
works again.

[Mon Apr 07 21:14:12 2008] [error] [client 127.0.0.1] Premature end of
script headers: bb-hostsvc.sh, referer:
http://localhost/hobbit/bb.html


What I am also seeing that is similar is when I click on any yellow cpu
icons in status history or event log report it wants to download
bb-histlog.sh.

apache2 error.log - clicked on yellow cpu history icon Mon Apr 07
19:48:53 2008] [error] [client 127.0.0.1] Premature end of script
headers: bb-histlog.sh, referer:

http://localhost/hobbit-cgi/bb-hist.sh?HISTFILE=debian.cpu&ENTRIES=50&IP
=127.0.0.1&DISPLAYNAME=debian
quoted from John Glowacki

apache2 error.log - clicked on yellow cpu event log icon [Mon Apr 07
20:23:31 2008] [error] [client 127.0.0.1] Premature end of script
headers: bb-histlog.sh, referer:

http://localhost/hobbit-cgi/bb-eventlog.sh?MAXTIME=&FROMTIME=2008%2F04%2
F01%4000%3A00%3A00&TOTIME=&MAXCOUNT=100&HOSTMATCH=&EXHOSTMATCH=&PAGEMATC
H=&EXPAGEMATCH=&TESTMATCH=&EXTESTMATCH=&COLORMATCH=&Send=View+log
quoted from John Glowacki


I went back and checked 65 events since the 5th and these links have the
same problem. Seems a little random at the moment.

Mon Apr 7 21:13:22 2008 	debian 	cpu 	green From -> To
purple

http://localhost/hobbit-cgi/bb-histlog.sh?HOST=debian&SERVICE=cpu&TIMEBU
F=Mon_Apr_7_21:13:22_2008
Mon Apr 7 21:13:22 2008 	debian 	procs 	clear From -> To
purple
http://localhost/hobbit-cgi/bb-histlog.sh?HOST=debian&SERVICE=procs&TIME
BUF=Mon_Apr_7_21:13:22_2008
Mon Apr 7 19:06:48 2008 	debian 	cpu 	green From -> To
yellow
http://localhost/hobbit-cgi/bb-histlog.sh?HOST=debian&SERVICE=cpu&TIMEBU
F=Mon_Apr_7_19:06:48_2008
Sun Apr 6 17:06:35 2008 	debian 	cpu 	green From -> To
yellow
http://localhost/hobbit-cgi/bb-histlog.sh?HOST=debian&SERVICE=cpu&TIMEBU
F=Sun_Apr_6_17:06:35_2008
Sat Apr 5 18:58:05 2008 	debian 	hrtask 	green From -> To
purple
http://localhost/hobbit-cgi/bb-histlog.sh?HOST=debian&SERVICE=hrtask&TIM
EBUF=Sat_Apr_5_18:58:05_2008
Sat Apr 5 17:37:45 2008 	debian 	procs 	unknown From -> To
clear
http://localhost/hobbit-cgi/bb-histlog.sh?HOST=debian&SERVICE=procs&TIME
BUF=Sat_Apr_5_17:37:45_2008
Sat Apr 5 17:37:45 2008 	debian 	cpu 	unknown From -> To
green
http://localhost/hobbit-cgi/bb-histlog.sh?HOST=debian&SERVICE=cpu&TIMEBU
F=Sat_Apr_5_17:37:45_2008

John