Xymon Mailing List Archive search

Problem with .sh files

3 messages in this thread

list Michael Lowery · Mon, 14 Feb 2005 13:12:11 -0600 ·
Moving from BB to Hobbit.
 
The problem I'm having is everytime I click on an icon that references
one of the .sh files, it tries to download it.  
 
The problem does not happen in BB or any other webpage on this box.
 
When trying to run bb-hostsvc.sh manually, I get:
 
[root at host cgi-bin]# ./bb-hostsvc.sh
2005-02-14 13:11:09 xgetenv: Cannot find value for variable QUERY_STRING
Content-type: text/html
 
<html><head><title>Invalid request</title></head>
<body>Invalid request</body></html>
 
 
Can anyone point me in the right direction to solve this?  
 
Thank you,
Michael Lowery
list Henrik Størner · Mon, 14 Feb 2005 22:34:45 +0100 ·
quoted from Michael Lowery
On Mon, Feb 14, 2005 at 01:12:11PM -0600, Lowery, Michael wrote:
Moving from BB to Hobbit.
 
The problem I'm having is everytime I click on an icon that references
one of the .sh files, it tries to download it.  
Sounds like a problem with your webserver setup. Make sure you have
setup the "ScriptAlias" settings for the Hobbit cgi-bin and cgi-secure
directories. See how to do it in ~/server/etc/hobbit-apache.conf
quoted from Michael Lowery
When trying to run bb-hostsvc.sh manually, I get:
 
[root at host cgi-bin]# ./bb-hostsvc.sh
2005-02-14 13:11:09 xgetenv: Cannot find value for variable
QUERY_STRING
CGI script really are meant to be run by the webserver, which provides
a bunch of standard environment variables.


Henrik
list Michael Lowery · Mon, 14 Feb 2005 16:37:04 -0600 ·
Of course that worked!  Thank you!

Michael Lowery
quoted from Henrik Størner
       
-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] 
Sent: Monday, February 14, 2005 3:35 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Problem with .sh files

On Mon, Feb 14, 2005 at 01:12:11PM -0600, Lowery, Michael wrote:
Moving from BB to Hobbit.
 
The problem I'm having is everytime I click on an icon that references
one of the .sh files, it tries to download it.  
Sounds like a problem with your webserver setup. Make sure you have
setup the "ScriptAlias" settings for the Hobbit cgi-bin and cgi-secure
directories. See how to do it in ~/server/etc/hobbit-apache.conf
When trying to run bb-hostsvc.sh manually, I get:
 
[root at host cgi-bin]# ./bb-hostsvc.sh
2005-02-14 13:11:09 xgetenv: Cannot find value for variable
QUERY_STRING
CGI script really are meant to be run by the webserver, which provides
a bunch of standard environment variables.


Henrik