Xymon Mailing List Archive search

Premature end of script headers: bb-hostsvc.sh, referer: ...

28 messages in this thread

list Neil D. ManTech Ctr Camp · Wed, 8 Feb 2006 15:58:50 -0500 ·
Hello all. I finally got everything compiled and installed on an HP-UX
server. I have added the recommended lines to my httpd.conf, but now
every time I try to drill down on any of the tests I get and error 500
page and the following error in my webserver log...
Premature end of script headers: bb-hostsvc.sh, referer:
https://odin......
It seems like only a few times this has popped up in the past due to a
bug. I was wondering if anyone could give me some pointers since I have
probably mis-configured something.

--neil
 
ManTech
DeCA Operations Systems Administrator
(XXX) XXX-XXXX
user-22a6a1b96d9d@xymon.invalid
 

-----Original Message-----
From: Chris Wopat [mailto:user-8ece45634613@xymon.invalid] 
Sent: Wednesday, February 08, 2006 12:21 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Hobbit Sensitivity lowered?

Hello,

I switched from BB to hobbit about a month ago and have been generally 
happy. One thing that's "different" is that Hobbit seems to be more 
sensitive to services timing out, such as during an http check.

I don't see anything in bb-services related to this, is there any global

setting somwhere to permit me to allow a check to take a few more ms to 
respond before it's considered "red"? My bb2.html file is frequently red

due to this, although it only lasts a few seconds.

Is there an appropriate way to do this without hacking code and finding 
the timeout period?

Thanks,
--Chris
list Stef Coene · Wed, 8 Feb 2006 22:07:56 +0100 ·
quoted from Neil D. ManTech Ctr Camp
On Wednesday 08 February 2006 21:58, Camp, Neil D. (ManTech) CTR wrote:
Hello all. I finally got everything compiled and installed on an HP-UX
server. I have added the recommended lines to my httpd.conf, but now
every time I try to drill down on any of the tests I get and error 500
page and the following error in my webserver log...
Premature end of script headers: bb-hostsvc.sh, referer:
https://odin......
It seems like only a few times this has popped up in the past due to a
bug. I was wondering if anyone could give me some pointers since I have
probably mis-configured something.
What if you execute hobbitsvc.cgi from the command line?
This is the output on my server:
 
/home/users/hobbit/server/bin/hobbitsvc.cgi
Content-type: text/html

<html><head><title>Invalid request</title></head>


Stef
list Neil D. ManTech Ctr Camp · Wed, 8 Feb 2006 16:32:17 -0500 ·
odin:/home/bb/data/histlogs/odin> /home/bb/server/bin/hobbitsvc.cgi
Content-type: text/html

<html><head><title>Invalid request</title></head>
<body>Invalid request</body></html>

Same here. I am wondering, does anyone else use ssl exclusively on their
webserver? I am wondering if that may be causing the problem. I am
getting closer to being free of BB.
quoted from Stef Coene

--neil
 
ManTech
DeCA Operations Systems Administrator
(XXX) XXX-XXXX
user-22a6a1b96d9d@xymon.invalid
 

-----Original Message-----
From: Stef Coene [mailto:user-dbffe946c0f4@xymon.invalid] 
Sent: Wednesday, February 08, 2006 4:08 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Premature end of script headers: bb-hostsvc.sh,
referer: ...

On Wednesday 08 February 2006 21:58, Camp, Neil D. (ManTech) CTR wrote:
Hello all. I finally got everything compiled and installed on an HP-UX
server. I have added the recommended lines to my httpd.conf, but now
every time I try to drill down on any of the tests I get and error 500
page and the following error in my webserver log...
Premature end of script headers: bb-hostsvc.sh, referer:
https://odin......
It seems like only a few times this has popped up in the past due to a
bug. I was wondering if anyone could give me some pointers since I
have
probably mis-configured something.
What if you execute hobbitsvc.cgi from the command line?
This is the output on my server:
 
/home/users/hobbit/server/bin/hobbitsvc.cgi
Content-type: text/html

<html><head><title>Invalid request</title></head>


Stef
list Stef Coene · Wed, 8 Feb 2006 22:46:14 +0100 ·
quoted from Neil D. ManTech Ctr Camp
On Wednesday 08 February 2006 22:32, Camp, Neil D. (ManTech) CTR wrote:
odin:/home/bb/data/histlogs/odin> /home/bb/server/bin/hobbitsvc.cgi
Content-type: text/html

<html><head><title>Invalid request</title></head>
<body>Invalid request</body></html>

Same here.
Can you do this also if you logon as the user that runs the webserver?  Most 
of the time this is user nobody.


Stef
list Henrik Størner · Wed, 8 Feb 2006 23:27:44 +0100 ·
quoted from Neil D. ManTech Ctr Camp
On Wed, Feb 08, 2006 at 03:58:50PM -0500, Camp, Neil D. (ManTech) CTR wrote:
Hello all. I finally got everything compiled and installed on an HP-UX
server. I have added the recommended lines to my httpd.conf, but now
every time I try to drill down on any of the tests I get and error 500
page and the following error in my webserver log...
Premature end of script headers: bb-hostsvc.sh, referer:
https://odin......
What happens if you do it like this (from a command line):

   REQUEST_METHOD=GET \
   REQUEST_URI="" \
   QUERY_STRING="HOSTSVC=yourserver,deca,mil.conn" \
   ~hobbit/cgi-bin/bb-hostsvc.sh

(note the use of commas in the hostname instead of dots).

I would expect you to get some sort of error message ...


Henrik
list Frédéric Mangeant · Thu, 09 Feb 2006 11:33:06 +0100 ·
quoted from Henrik Størner
Henrik Stoerner a écrit :
On Wed, Feb 08, 2006 at 03:58:50PM -0500, Camp, Neil D. (ManTech) CTR wrote:
  
Hello all. I finally got everything compiled and installed on an HP-UX
server. I have added the recommended lines to my httpd.conf, but now
every time I try to drill down on any of the tests I get and error 500
page and the following error in my webserver log...
Premature end of script headers: bb-hostsvc.sh, referer:
https://odin......
    
What happens if you do it like this (from a command line):

   REQUEST_METHOD=GET \
   REQUEST_URI="" \
   QUERY_STRING="HOSTSVC=yourserver,deca,mil.conn" \
   ~hobbit/cgi-bin/bb-hostsvc.sh

(note the use of commas in the hostname instead of dots).

I would expect you to get some sort of error message ...
  
Hi Henrik

I'm having the same problem on my test system with Hobbit 4.2-pre from 
02/09 snapshot (snapshot from 01/31 works fine) :

$ REQUEST_METHOD=GET    REQUEST_URI=""    
QUERY_STRING="HOSTSVC=hades.disk" /BB/hobbit/cgi-bin/bb-hostsvc.sh
Content-type: text/html

<html><head><title>Invalid request</title></head>
<body>Invalid request</body></html>


It works fine using the BB client :

$ ./bb localhost "hobbitdboard hades.disk"
hades|disk|green||1139480848|1139481095|1139482895|0|0|10.50.80.10|-1|green 
Thu Feb  9 11:31:29 CET 2006 - Disk partitions on hades OK

-- 

Frédéric Mangeant

Steria EDC Sophia-Antipolis
list Henrik Størner · Thu, 9 Feb 2006 12:40:29 +0100 ·
quoted from Frédéric Mangeant
On Thu, Feb 09, 2006 at 11:33:06AM +0100, Frédéric Mangeant wrote:
I'm having the same problem on my test system with Hobbit 4.2-pre from 
02/09 snapshot (snapshot from 01/31 works fine) :

$ REQUEST_METHOD=GET    REQUEST_URI=""    
QUERY_STRING="HOSTSVC=hades.disk" /BB/hobbit/cgi-bin/bb-hostsvc.sh
Content-type: text/html

<html><head><title>Invalid request</title></head>
<body>Invalid request</body></html>
The input parameters for the hobbitsvc CGI are being changed,
so how does it work if you run
$ REQUEST_METHOD=GET REQUEST_URI="" QUERY_STRING="HOST=hades&SERVICE=disk" \
     /BB/hobbit/cgi-bin/bb-hostsvc.sh

(the "HOSTSVC" combo was disgusting because it required you to do the
 make-hostname-dots-into-commas dancing around for BB's sake).

But if you run the entire snapshot - i.e. you did a full "make install"
of the snapshot - then it should generate the correct URL's for you.


Henrik
list Neil D. ManTech Ctr Camp · Thu, 9 Feb 2006 07:22:28 -0500 ·
I ran it as my webserver owner (www) and got the same error :-( 
quoted from Stef Coene

--neil
 
ManTech
DeCA Operations Systems Administrator
(XXX) XXX-XXXX
user-22a6a1b96d9d@xymon.invalid
 

-----Original Message-----
From: Stef Coene [mailto:user-dbffe946c0f4@xymon.invalid] 
Sent: Wednesday, February 08, 2006 4:46 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Premature end of script headers: bb-hostsvc.sh,
referer: ...

On Wednesday 08 February 2006 22:32, Camp, Neil D. (ManTech) CTR wrote:
odin:/home/bb/data/histlogs/odin> /home/bb/server/bin/hobbitsvc.cgi
Content-type: text/html

<html><head><title>Invalid request</title></head>
<body>Invalid request</body></html>

Same here.
Can you do this also if you logon as the user that runs the webserver?
Most 
of the time this is user nobody.


Stef
list Neil D. ManTech Ctr Camp · Thu, 9 Feb 2006 07:23:50 -0500 ·
I ran the command as the hobbit user (bb) and I was able to get an html
status page back. Does this mean I some how mangled my httpd.conf or
potentially it is due to my webserver being https only?
quoted from Frédéric Mangeant

--neil
 
ManTech
DeCA Operations Systems Administrator
(XXX) XXX-XXXX
user-22a6a1b96d9d@xymon.invalid
 

-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: Wednesday, February 08, 2006 5:28 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Premature end of script headers: bb-hostsvc.sh,
referer: ...

On Wed, Feb 08, 2006 at 03:58:50PM -0500, Camp, Neil D. (ManTech) CTR
wrote:
Hello all. I finally got everything compiled and installed on an HP-UX
server. I have added the recommended lines to my httpd.conf, but now
every time I try to drill down on any of the tests I get and error 500
page and the following error in my webserver log...
Premature end of script headers: bb-hostsvc.sh, referer:
https://odin......
What happens if you do it like this (from a command line):

   REQUEST_METHOD=GET \
   REQUEST_URI="" \
   QUERY_STRING="HOSTSVC=yourserver,deca,mil.conn" \
   ~hobbit/cgi-bin/bb-hostsvc.sh

(note the use of commas in the hostname instead of dots).

I would expect you to get some sort of error message ...


Henrik
list Henrik Størner · Thu, 9 Feb 2006 14:39:53 +0100 ·
quoted from Neil D. ManTech Ctr Camp
On Thu, Feb 09, 2006 at 07:23:50AM -0500, Camp, Neil D. (ManTech) CTR wrote:
I ran the command as the hobbit user (bb) and I was able to get an html
status page back. Does this mean I some how mangled my httpd.conf or
potentially it is due to my webserver being https only?
https shouldn't matter at all.

Since it works when you run it as the hobbit user, but not when you run
it as the web user, it sounds like your hobbit config files are
inaccessible to the web user. Check permissions on the
~hobbit/server/etc/ directory and the files in there; they should be
readable by the webserver user.


Regards,
Henrik
list Neil D. ManTech Ctr Camp · Thu, 9 Feb 2006 08:53:33 -0500 ·
The files are world readable, and just for good measure, I su'd to www
and opened bb-hosts file to be sure. I must have missed something really
simple.
quoted from Henrik Størner

--neil
 
ManTech
DeCA Operations Systems Administrator
(XXX) XXX-XXXX
user-22a6a1b96d9d@xymon.invalid
 

-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: Thursday, February 09, 2006 8:40 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Premature end of script headers: bb-hostsvc.sh,
referer: ...

On Thu, Feb 09, 2006 at 07:23:50AM -0500, Camp, Neil D. (ManTech) CTR
wrote:
I ran the command as the hobbit user (bb) and I was able to get an
html
status page back. Does this mean I some how mangled my httpd.conf or
potentially it is due to my webserver being https only?
https shouldn't matter at all.

Since it works when you run it as the hobbit user, but not when you run
it as the web user, it sounds like your hobbit config files are
inaccessible to the web user. Check permissions on the
~hobbit/server/etc/ directory and the files in there; they should be
readable by the webserver user.


Regards,
Henrik
list Henrik Størner · Thu, 9 Feb 2006 15:11:46 +0100 ·
quoted from Neil D. ManTech Ctr Camp
On Thu, Feb 09, 2006 at 08:53:33AM -0500, Camp, Neil D. (ManTech) CTR wrote:
The files are world readable, and just for good measure, I su'd to www
and opened bb-hosts file to be sure. I must have missed something really
simple.
There are more config files than just bb-hosts - hobbitserver.cfg,
hobbitgraph.cfg etc. 

What about all of the directories leading to the Hobbit etc directory ?
Are they all mode 755 ? Or at least they must have world-execute
permission set.

If all else fails, go to the hobbit cgi-bin directory, and modify the
bb-hostsvc.sh file so the last line reads

 exec /usr/lib/hobbit/server/bin/hobbitsvc.cgi $CGI_SVC_OPTS --debug 2>&1 1>/tmp/cgi.log

This will cause the application to write all output - including debug
output - to the file /tmp/cgi.log


Regards,
Henrik
list Neil D. ManTech Ctr Camp · Thu, 9 Feb 2006 09:42:52 -0500 ·
Everything leading up to the etc dir is 755. I modified the line and
tried to click on a few pages, but the /tmp/cgi.log is a zero byte file.
quoted from Henrik Størner

--neil
 
ManTech
DeCA Operations Systems Administrator
(XXX) XXX-XXXX
user-22a6a1b96d9d@xymon.invalid
 

-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: Thursday, February 09, 2006 9:12 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Premature end of script headers: bb-hostsvc.sh,
referer: ...

On Thu, Feb 09, 2006 at 08:53:33AM -0500, Camp, Neil D. (ManTech) CTR
wrote:
The files are world readable, and just for good measure, I su'd to www
and opened bb-hosts file to be sure. I must have missed something
really
simple.
There are more config files than just bb-hosts - hobbitserver.cfg,
hobbitgraph.cfg etc. 

What about all of the directories leading to the Hobbit etc directory ?
Are they all mode 755 ? Or at least they must have world-execute
permission set.

If all else fails, go to the hobbit cgi-bin directory, and modify the
bb-hostsvc.sh file so the last line reads

 exec /usr/lib/hobbit/server/bin/hobbitsvc.cgi $CGI_SVC_OPTS --debug
2>&1 1>/tmp/cgi.log

This will cause the application to write all output - including debug
output - to the file /tmp/cgi.log


Regards,
Henrik
list Neil D. ManTech Ctr Camp · Thu, 9 Feb 2006 11:15:42 -0500 ·
I have even done a fresh install using a snapshot from last night. The
webpage shows general status of my hosts, but when I drill down, still
get the same message, arggg, any ideas?
quoted from Neil D. ManTech Ctr Camp

--neil
 
ManTech
DeCA Operations Systems Administrator
(XXX) XXX-XXXX
user-22a6a1b96d9d@xymon.invalid
 

-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: Thursday, February 09, 2006 9:12 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Premature end of script headers: bb-hostsvc.sh,
referer: ...

On Thu, Feb 09, 2006 at 08:53:33AM -0500, Camp, Neil D. (ManTech) CTR
wrote:
The files are world readable, and just for good measure, I su'd to www
and opened bb-hosts file to be sure. I must have missed something
really
simple.
There are more config files than just bb-hosts - hobbitserver.cfg,
hobbitgraph.cfg etc. 

What about all of the directories leading to the Hobbit etc directory ?
Are they all mode 755 ? Or at least they must have world-execute
permission set.

If all else fails, go to the hobbit cgi-bin directory, and modify the
bb-hostsvc.sh file so the last line reads

 exec /usr/lib/hobbit/server/bin/hobbitsvc.cgi $CGI_SVC_OPTS --debug
2>&1 1>/tmp/cgi.log

This will cause the application to write all output - including debug
output - to the file /tmp/cgi.log


Regards,
Henrik
list Frédéric Mangeant · Thu, 09 Feb 2006 17:22:17 +0100 ·
quoted from Henrik Størner
Henrik Stoerner a écrit :
The input parameters for the hobbitsvc CGI are being changed,
so how does it work if you run
$ REQUEST_METHOD=GET REQUEST_URI="" QUERY_STRING="HOST=hades&SERVICE=disk" \
     /BB/hobbit/cgi-bin/bb-hostsvc.sh

(the "HOSTSVC" combo was disgusting because it required you to do the
 make-hostname-dots-into-commas dancing around for BB's sake).

But if you run the entire snapshot - i.e. you did a full "make install"
of the snapshot - then it should generate the correct URL's for you.
  
I did a "make install", but the error is still here. I went back to 
01/31 snapshot.

-- 

Frédéric Mangeant

Steria EDC Sophia-Antipolis
list Neil D. ManTech Ctr Camp · Thu, 9 Feb 2006 12:53:19 -0500 ·
I have narrowed down the problem to the fact that the webserver will not
run
 
exec /home/bb/server/bin/hobbitsvc.cgi $CGI_SVC_OPTS 

I put in some echos before it and an exit and it worked. Once the echo
and exit came after that line, the error 500 returned. I am not too
familiar with apache, but it seems to be configured correctly. Is
someone willing to pass on their config of apache for comparison? I have
used the generic config file that HP has with its version of apache.
quoted from Neil D. ManTech Ctr Camp

--neil
 
ManTech
DeCA Operations Systems Administrator
(XXX) XXX-XXXX
user-22a6a1b96d9d@xymon.invalid
 

-----Original Message-----
From: Camp, Neil D. (ManTech) CTR 
Sent: Thursday, February 09, 2006 11:16 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Premature end of script headers: bb-hostsvc.sh,
referer: ...

I have even done a fresh install using a snapshot from last night. The
webpage shows general status of my hosts, but when I drill down, still
get the same message, arggg, any ideas?

--neil
 
ManTech
DeCA Operations Systems Administrator
(XXX) XXX-XXXX
user-22a6a1b96d9d@xymon.invalid
 

-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: Thursday, February 09, 2006 9:12 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Premature end of script headers: bb-hostsvc.sh,
referer: ...

On Thu, Feb 09, 2006 at 08:53:33AM -0500, Camp, Neil D. (ManTech) CTR
wrote:
The files are world readable, and just for good measure, I su'd to www
and opened bb-hosts file to be sure. I must have missed something
really
simple.
There are more config files than just bb-hosts - hobbitserver.cfg,
hobbitgraph.cfg etc. 

What about all of the directories leading to the Hobbit etc directory ?
Are they all mode 755 ? Or at least they must have world-execute
permission set.

If all else fails, go to the hobbit cgi-bin directory, and modify the
bb-hostsvc.sh file so the last line reads

 exec /usr/lib/hobbit/server/bin/hobbitsvc.cgi $CGI_SVC_OPTS --debug
2>&1 1>/tmp/cgi.log

This will cause the application to write all output - including debug
output - to the file /tmp/cgi.log


Regards,
Henrik
list Lars Ebeling · Thu, 9 Feb 2006 19:19:28 +0100 ·
Have you done the changes in Apache configfile according to hobbit 
installation?
I have some other stuff in my configfile, but if you want I could send it 
directly to you.

Lars
quoted from Neil D. ManTech Ctr Camp

----- Original Message ----- 
From: "Camp, Neil D. (ManTech) CTR" <user-22a6a1b96d9d@xymon.invalid>
To: <user-ae9b8668bcde@xymon.invalid>
Sent: Thursday, February 09, 2006 6:53 PM
Subject: RE: [hobbit] Premature end of script headers: bb-hostsvc.sh, 
referer: ...


I have narrowed down the problem to the fact that the webserver will not
run

exec /home/bb/server/bin/hobbitsvc.cgi $CGI_SVC_OPTS

I put in some echos before it and an exit and it worked. Once the echo
and exit came after that line, the error 500 returned. I am not too
familiar with apache, but it seems to be configured correctly. Is
someone willing to pass on their config of apache for comparison? I have
used the generic config file that HP has with its version of apache.

--neil

ManTech
DeCA Operations Systems Administrator
(XXX) XXX-XXXX
user-22a6a1b96d9d@xymon.invalid


-----Original Message-----
From: Camp, Neil D. (ManTech) CTR
Sent: Thursday, February 09, 2006 11:16 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Premature end of script headers: bb-hostsvc.sh,
referer: ...

I have even done a fresh install using a snapshot from last night. The
webpage shows general status of my hosts, but when I drill down, still
get the same message, arggg, any ideas?

--neil

ManTech
DeCA Operations Systems Administrator
(XXX) XXX-XXXX
user-22a6a1b96d9d@xymon.invalid


-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid]
Sent: Thursday, February 09, 2006 9:12 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Premature end of script headers: bb-hostsvc.sh,
referer: ...

On Thu, Feb 09, 2006 at 08:53:33AM -0500, Camp, Neil D. (ManTech) CTR
wrote:
The files are world readable, and just for good measure, I su'd to www
and opened bb-hosts file to be sure. I must have missed something
really
simple.
There are more config files than just bb-hosts - hobbitserver.cfg,
hobbitgraph.cfg etc.

What about all of the directories leading to the Hobbit etc directory ?
Are they all mode 755 ? Or at least they must have world-execute
permission set.

If all else fails, go to the hobbit cgi-bin directory, and modify the
bb-hostsvc.sh file so the last line reads

 exec /usr/lib/hobbit/server/bin/hobbitsvc.cgi $CGI_SVC_OPTS --debug
2>&1 1>/tmp/cgi.log

This will cause the application to write all output - including debug
output - to the file /tmp/cgi.log


Regards,
Henrik
list Stef Coene · Thu, 9 Feb 2006 19:23:09 +0100 ·
quoted from Lars Ebeling
On Thursday 09 February 2006 18:53, Camp, Neil D. (ManTech) CTR wrote:
I have narrowed down the problem to the fact that the webserver will not
run

exec /home/bb/server/bin/hobbitsvc.cgi $CGI_SVC_OPTS

I put in some echos before it and an exit and it worked. Once the echo
and exit came after that line, the error 500 returned. I am not too
familiar with apache, but it seems to be configured correctly. Is
someone willing to pass on their config of apache for comparison? I have
used the generic config file that HP has with its version of apache.
Your apache configuration is not the main problem.  You first have to be able 
to run this command as user www on the command line.
You can do a "chmod +R 775" of the hobbit installation (this is not really 
secure, but at least it will exclude owner ship problems).


Stef
list Neil D. ManTech Ctr Camp · Thu, 9 Feb 2006 13:36:34 -0500 ·
I have tried running it from the command line with no go. And now I am
convinced that it is not apache. I can run a whole lot of other cgi's
like the avail report and the event log report, but just not the
bb-hostsvc.sh. It just makes no sense that mostly everything else works,
but that...
quoted from Lars Ebeling

--neil
 
ManTech
DeCA Operations Systems Administrator
(XXX) XXX-XXXX
user-22a6a1b96d9d@xymon.invalid
 

-----Original Message-----
From: lars ebeling [mailto:user-1fecd3eafd52@xymon.invalid] 
Sent: Thursday, February 09, 2006 1:19 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Premature end of script headers: bb-hostsvc.sh,
referer: ...

Have you done the changes in Apache configfile according to hobbit 
installation?
I have some other stuff in my configfile, but if you want I could send
it 
directly to you.

Lars

----- Original Message ----- 
From: "Camp, Neil D. (ManTech) CTR" <user-22a6a1b96d9d@xymon.invalid>
To: <user-ae9b8668bcde@xymon.invalid>
Sent: Thursday, February 09, 2006 6:53 PM
Subject: RE: [hobbit] Premature end of script headers: bb-hostsvc.sh, 
referer: ...


I have narrowed down the problem to the fact that the webserver will not
run

exec /home/bb/server/bin/hobbitsvc.cgi $CGI_SVC_OPTS

I put in some echos before it and an exit and it worked. Once the echo
and exit came after that line, the error 500 returned. I am not too
familiar with apache, but it seems to be configured correctly. Is
someone willing to pass on their config of apache for comparison? I have
used the generic config file that HP has with its version of apache.

--neil

ManTech
DeCA Operations Systems Administrator
(XXX) XXX-XXXX
user-22a6a1b96d9d@xymon.invalid


-----Original Message-----
From: Camp, Neil D. (ManTech) CTR
Sent: Thursday, February 09, 2006 11:16 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Premature end of script headers: bb-hostsvc.sh,
referer: ...

I have even done a fresh install using a snapshot from last night. The
webpage shows general status of my hosts, but when I drill down, still
get the same message, arggg, any ideas?

--neil

ManTech
DeCA Operations Systems Administrator
(XXX) XXX-XXXX
user-22a6a1b96d9d@xymon.invalid


-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid]
Sent: Thursday, February 09, 2006 9:12 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Premature end of script headers: bb-hostsvc.sh,
referer: ...

On Thu, Feb 09, 2006 at 08:53:33AM -0500, Camp, Neil D. (ManTech) CTR
wrote:
The files are world readable, and just for good measure, I su'd to www
and opened bb-hosts file to be sure. I must have missed something
really
simple.
There are more config files than just bb-hosts - hobbitserver.cfg,
hobbitgraph.cfg etc.

What about all of the directories leading to the Hobbit etc directory ?
Are they all mode 755 ? Or at least they must have world-execute
permission set.

If all else fails, go to the hobbit cgi-bin directory, and modify the
bb-hostsvc.sh file so the last line reads

 exec /usr/lib/hobbit/server/bin/hobbitsvc.cgi $CGI_SVC_OPTS --debug
2>&1 1>/tmp/cgi.log

This will cause the application to write all output - including debug
output - to the file /tmp/cgi.log


Regards,
Henrik
list Neil D. ManTech Ctr Camp · Thu, 9 Feb 2006 13:39:57 -0500 ·
This is what I have for output from /tmp/cgi.log when I click on a few
objects...


2006-02-09 13:38:06 CGI: Request method='GET',
data='HOST=odin&SERVICE=disk'
2006-02-09 13:38:22 load_all_links()
2006-02-09 13:38:22 load_links(/home/bb/server/www/notes, /hobbit/notes)
2006-02-09 13:38:22 init_link(., /hobbit/notes)
2006-02-09 13:38:22 init_link(.., /hobbit/notes)
2006-02-09 13:38:22 load_links(/home/bb/server/www/help, /hobbit/help)
2006-02-09 13:38:22 init_link(., /hobbit/help)
2006-02-09 13:38:22 init_link(.., /hobbit/help)
2006-02-09 13:38:22 init_link(manpages, /hobbit/help)
2006-02-09 13:38:22 init_link(about.html, /hobbit/help)
2006-02-09 13:38:22 init_link(bb-to-hobbit.html, /hobbit/help)
2006-02-09 13:38:22 init_link(hobbit-alerts.html, /hobbit/help)
2006-02-09 13:38:22 init_link(hobbit-config.html, /hobbit/help)
2006-02-09 13:38:22 init_link(hobbit-mrtg.html, /hobbit/help)
2006-02-09 13:38:22 init_link(hobbit-tips.html, /hobbit/help)
2006-02-09 13:38:22 init_link(install.html, /hobbit/help)
2006-02-09 13:38:22 init_link(known-issues.html, /hobbit/help)
2006-02-09 13:38:22 init_link(configure.txt, /hobbit/help)
2006-02-09 13:38:22 init_link(hobbit-apacheconf.txt, /hobbit/help)
2006-02-09 13:38:22 init_link(hobbit-bbhosts.png, /hobbit/help)
2006-02-09 13:38:22 init_link(hobbit-clients.png, /hobbit/help)
2006-02-09 13:38:22 init_link(hobbitmain.png, /hobbit/help)
2006-02-09 13:38:22 init_link(hobbitprocs.png, /hobbit/help)
2006-02-09 13:38:22 Transport setup is:
2006-02-09 13:38:22 bbdportnumber = 1984
2006-02-09 13:38:22 bbdispproxyhost = NONE
2006-02-09 13:38:22 bbdispproxyport = 0
2006-02-09 13:38:22 Recipient listed as '172.16.225.84'
2006-02-09 13:38:22 Standard BB protocol on port 1984
2006-02-09 13:38:22 Will connect to address 172.16.225.84 port 1984
2006-02-09 13:38:22 Connect status is 0
2006-02-09 13:38:22 Sent 70 bytes
2006-02-09 13:38:22 Read 213 bytes
2006-02-09 13:38:22 Closing connection
2006-02-09 13:38:22 Recipient listed as '172.16.225.84'
2006-02-09 13:38:22 Standard BB protocol on port 1984
2006-02-09 13:38:22 Will connect to address 172.16.225.84 port 1984
2006-02-09 13:38:22 Connect status is 0
2006-02-09 13:38:22 Sent 8 bytes
2006-02-09 13:38:22 Closing connection
2006-02-09 13:38:22 Recipient listed as '172.16.225.84'
2006-02-09 13:38:22 Standard BB protocol on port 1984
2006-02-09 13:38:22 Will connect to address 172.16.225.84 port 1984
2006-02-09 13:38:22 Connect status is 0
2006-02-09 13:38:22 Sent 28 bytes
2006-02-09 13:38:22 Read 64 bytes
2006-02-09 13:38:22 Closing connection
2006-02-09 13:38:22 Found no first matching rule
2006-02-09 13:38:22 Found no first matching rule
2006-02-09 13:38:22 Found no first matching rule
2006-02-09 13:38:22 Found no first matching rule
2006-02-09 13:38:22 Found no first matching rule
2006-02-09 13:38:22 Found no first matching rule
2006-02-09 13:38:22 Found no first matching rule
2006-02-09 13:38:22 Found no first matching rule
2006-02-09 13:38:22 Found no first matching rule
2006-02-09 13:38:22 Found no first matching rule
2006-02-09 13:38:22 Found no first matching rule
Content-type: text/html

2006-02-09 13:38:22 Trying header/footer file
'/home/bb/server/web/info_header'
quoted from Neil D. ManTech Ctr Camp


--neil
 
ManTech
DeCA Operations Systems Administrator
(XXX) XXX-XXXX
user-22a6a1b96d9d@xymon.invalid
 

-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: Thursday, February 09, 2006 9:12 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Premature end of script headers: bb-hostsvc.sh,
referer: ...

On Thu, Feb 09, 2006 at 08:53:33AM -0500, Camp, Neil D. (ManTech) CTR
wrote:
The files are world readable, and just for good measure, I su'd to www
and opened bb-hosts file to be sure. I must have missed something
really
simple.
There are more config files than just bb-hosts - hobbitserver.cfg,
hobbitgraph.cfg etc. 

What about all of the directories leading to the Hobbit etc directory ?
Are they all mode 755 ? Or at least they must have world-execute
permission set.

If all else fails, go to the hobbit cgi-bin directory, and modify the
bb-hostsvc.sh file so the last line reads

 exec /usr/lib/hobbit/server/bin/hobbitsvc.cgi $CGI_SVC_OPTS --debug
2>&1 1>/tmp/cgi.log

This will cause the application to write all output - including debug
output - to the file /tmp/cgi.log


Regards,
Henrik
list Henrik Størner · Fri, 10 Feb 2006 15:08:42 +0100 ·
quoted from Neil D. ManTech Ctr Camp
On Thu, Feb 09, 2006 at 01:36:34PM -0500, Camp, Neil D. (ManTech) CTR wrote:
I have tried running it from the command line with no go. And now I am
convinced that it is not apache. I can run a whole lot of other cgi's
like the avail report and the event log report, but just not the
bb-hostsvc.sh. It just makes no sense that mostly everything else works,
but that...
Could it be runtime libraries that cannot be found when you run it via
CGI ? Wouldn't be the first time that happened.

The hobbitsvc.cgi program needs the PCRE runtime library. Where do you
have that installed ? Look for libpcre3.so* ...

In the bb-hostsvc.sh put

  LD_LIBRARY_PATH=/directory/with/libpcre3*.so*/
  export LD_LIBRARY_PATH

before the call to hobbitsvc.cgi .


Regards,
Henrik
list Neil D. ManTech Ctr Camp · Fri, 10 Feb 2006 10:50:03 -0500 ·
I did add it, plus the debug statement. I click on any of the objects
and get basically the same messages...

006-02-10 10:48:50 Transport setup is:
2006-02-10 10:48:50 bbdportnumber = 1984
2006-02-10 10:48:50 bbdispproxyhost = NONE
2006-02-10 10:48:50 bbdispproxyport = 0
2006-02-10 10:48:50 Recipient listed as '172.16.225.84'
2006-02-10 10:48:50 Standard BB protocol on port 1984
2006-02-10 10:48:50 Will connect to address 172.16.225.84 port 1984
2006-02-10 10:48:50 Connect status is 0
2006-02-10 10:48:50 Sent 20 bytes
2006-02-10 10:48:50 Read 228 bytes
2006-02-10 10:48:50 Closing connection
Content-type: text/html

2006-02-10 10:48:50 Trying header/footer file
'/home/bb/server/web/hostsvc_header'
quoted from Henrik Størner
--neil
 
ManTech
DeCA Operations Systems Administrator
(XXX) XXX-XXXX
user-22a6a1b96d9d@xymon.invalid
 

-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: Friday, February 10, 2006 9:09 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Premature end of script headers: bb-hostsvc.sh,
referer: ...

On Thu, Feb 09, 2006 at 01:36:34PM -0500, Camp, Neil D. (ManTech) CTR
wrote:
I have tried running it from the command line with no go. And now I am
convinced that it is not apache. I can run a whole lot of other cgi's
like the avail report and the event log report, but just not the
bb-hostsvc.sh. It just makes no sense that mostly everything else
works,
but that...
Could it be runtime libraries that cannot be found when you run it via
CGI ? Wouldn't be the first time that happened.

The hobbitsvc.cgi program needs the PCRE runtime library. Where do you
have that installed ? Look for libpcre3.so* ...

In the bb-hostsvc.sh put

  LD_LIBRARY_PATH=/directory/with/libpcre3*.so*/
  export LD_LIBRARY_PATH

before the call to hobbitsvc.cgi .


Regards,
Henrik
list Henrik Størner · Fri, 10 Feb 2006 17:21:35 +0100 ·
quoted from Neil D. ManTech Ctr Camp
On Fri, Feb 10, 2006 at 10:50:03AM -0500, Camp, Neil D. (ManTech) CTR wrote:
I did add it, plus the debug statement. I click on any of the objects
and get basically the same messages...

006-02-10 10:48:50 Transport setup is:
2006-02-10 10:48:50 bbdportnumber = 1984
2006-02-10 10:48:50 bbdispproxyhost = NONE
2006-02-10 10:48:50 bbdispproxyport = 0
2006-02-10 10:48:50 Recipient listed as '172.16.225.84'
2006-02-10 10:48:50 Standard BB protocol on port 1984
2006-02-10 10:48:50 Will connect to address 172.16.225.84 port 1984
2006-02-10 10:48:50 Connect status is 0
2006-02-10 10:48:50 Sent 20 bytes
2006-02-10 10:48:50 Read 228 bytes
2006-02-10 10:48:50 Closing connection
Content-type: text/html

2006-02-10 10:48:50 Trying header/footer file '/home/bb/server/web/hostsvc_header'
Well, it definitely runs and is does get a status back from the server.
Then it dies while generating the HTML page.

Could you send me your ~hobbit/server/etc/bb-hosts,
~hobbit/data/tmp/hobbitd.chk and ~hobbit/server/web/hostsvc_header
files, please ? Mail them directly to me at user-ce4a2c883f75@xymon.invalid - no need
to drop them on the mailing list.


Henrik
list Neil D. ManTech Ctr Camp · Wed, 22 Feb 2006 12:40:41 -0500 ·
All,

Here is a note on HP-UX. If you get the error that I did (in the
subject) then there is a good chance that you are trying to compile in
64 bit mode. Come to find out trying to compile hobbit (and all of its
required libraries) caused problems when linking with HP-UX 64 bit
libraries. I have learned (talking with other developers) that the 64
bit libraries on HP-UX leave a lot to be desired. Once I compiled
everything 32 bit using 32 bit gcc, I was golden. I would be happy to
provide help on HP-UX in the future if anyone is interested. Henrik was
very kind in troubleshooting the issue with me, and got me pointed in
the right direction.

--neil
 
ManTech
DeCA Operations Systems Administrator
(XXX) XXX-XXXX
user-22a6a1b96d9d@xymon.invalid
list Craig Cook · Wed, 04 Oct 2006 01:52:20 -0500 ·
I have very similar symptons to this thread:
http://www.hswn.dk/hobbiton/2006/02/msg00302.html

I am on Solaris 9 though (New Hobbit 4.2.0 install).  I only get the error when trying to view the info column, other columns work.

How do I force hobbit to compile in 32bit mode on Solaris?

Thanks

Craig Cook
--
Systems Monitoring Consulting and Support Services
http://www.cookitservices.com
list Neil D. ManTech Ctr Camp · Wed, 4 Oct 2006 07:36:07 -0400 ·
I found this link. Let me know if it works for you.

 http://www.gnu.org/software/gmp/manual/html_node/ABI-and-ISA.html
quoted from Craig Cook

-----Original Message-----
From: Craig Cook [mailto:user-618593604956@xymon.invalid] 
Sent: Wednesday, October 04, 2006 2:52 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: RE: [hobbit] Premature end of script headers: bb-hostsvc.sh,
referer: ...

I have very similar symptons to this thread:
http://www.hswn.dk/hobbiton/2006/02/msg00302.html

I am on Solaris 9 though (New Hobbit 4.2.0 install).  I only get the
error when trying to view the info column, other columns work.

How do I force hobbit to compile in 32bit mode on Solaris?

Thanks

Craig Cook
--
Systems Monitoring Consulting and Support Services
http://www.cookitservices.com
list Craig Cook · Wed, 04 Oct 2006 19:19:50 -0500 ·
Thanks for the link.  I will try this next week when I am with the client again.

Further to this issue, the info column for the hobbit server displays fine.  The info column for the hobbit clients fail.  I have no idea what is different.  Client code was compiled on the server and copied over as usual.  Clients are Solaris 9 as well, their standard tests report fine.  This is actually the second site I have seen with the same symptoms (the other site I upgraded from 4.1.2 so I thought it was something I had done.  Their hobbit server was on Solaris 9 as well).

Craig Cook
--
Systems Monitoring Consulting and Support Services
http://www.cookitservices.com
list Craig Cook · Tue, 10 Oct 2006 23:08:09 -0500 ·
I added the latest all-in-one patch first.  Then added the switch "-mv8plus" to the Makefile.SunOS file and did a rebuild.  Still the same thing.

The hobbit server info column displays, but the info columns for the clients do not.

Same apache error: Premature end of script headers... etc

I am using gcc 3.4.6 from sunfreeware.

Craig Cook
--
Systems Monitoring Consulting and Support Services
http://www.cookitservices.com