Problem viewing "Critical Systems"
list Tom D. Bullers
Hi, New to the list here and new to Hobbit so sorry about the naïve nature of the request. I've just installed Hobbit 4.2 and am running insto some errors in the Web interface. Most pages seem to load fine but when I select "views" and "critical systems" I'm presented with this error. I get a similar error in Firefox. I've attched a screenshot, but it says "IE cannot download hobbit-nkview.sh from localhost" I wasn't able to find very descriptive logs. Only apache reports a 500 error Do y'all have any suggestions? Thanks a lot. -tom ~~~~~~~~~~~~~~~~~~~~~~ Tom Bullers Systems Administrator Phone: (XXX)XXX-XXXX mailto:user-5dfc2160a848@xymon.invalid
Attachments (1)
list Greg L Hubbard
There is some required Apache setup to allow the Hobbit CGI scripts to run correctly. Look in the etc directory on your Hobbit server. But the problem may be related to the fact that IE is trying to run on "localhost" (the machine with the browser) instead of the display host? Are you doing some sort of virtual machine tricks? GLH
▸
From: Bullers, Tom D. [mailto:user-36c110e67d4c@xymon.invalid]
Sent: Monday, December 11, 2006 9:00 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] Problem viewing "Critical Systems"
Hi,
New to the list here and new to Hobbit so sorry about the naïve nature of the request.
I've just installed Hobbit 4.2 and am running insto some errors in the Web interface. Most pages seem to load fine but when I select "views" and "critical systems" I'm presented with this error. I get a similar error in Firefox.
I've attched a screenshot, but it says "IE cannot download hobbit-nkview.sh from localhost"
I wasn't able to find very descriptive logs. Only apache reports a 500 error
Do y'all have any suggestions? Thanks a lot.
-tom
~~~~~~~~~~~~~~~~~~~~~~
Tom Bullers
Systems Administrator
Phone: (XXX)XXX-XXXX
mailto:user-5dfc2160a848@xymon.invalid
list Tom D. Bullers
Yes I am doing some tricks - I should have mentioned it. My test environment requires that I ssh tunnel through my localhost to the remote machine on the defined network port. I can see how this is foiling the cgi's. I thought I was having apache/cgi problems. I'll see what I can do about improving accessibility in my test environment. Thanks much.
▸
-tom
~~~~~~~~~~~~~~~~~~~~~~
Tom Bullers
Systems Administrator
Phone: (XXX)XXX-XXXX
mailto:user-5dfc2160a848@xymon.invalid -----Original Message----- From: Hubbard, Greg L [mailto:user-d970b5e56ec9@xymon.invalid] Sent: Monday, December 11, 2006 10:10 AM To: user-ae9b8668bcde@xymon.invalid Subject: RE: [hobbit] Problem viewing "Critical Systems" There is some required Apache setup to allow the Hobbit CGI scripts to run correctly. Look in the etc directory on your Hobbit server. But the problem may be related to the fact that IE is trying to run on "localhost" (the machine with the browser) instead of the display host? Are you doing some sort of virtual machine tricks? GLH From: Bullers, Tom D. [mailto:user-36c110e67d4c@xymon.invalid] Sent: Monday, December 11, 2006 9:00 AM To: user-ae9b8668bcde@xymon.invalid Subject: [hobbit] Problem viewing "Critical Systems" Hi, New to the list here and new to Hobbit so sorry about the naïve nature of the request. I've just installed Hobbit 4.2 and am running insto some errors in the Web interface. Most pages seem to load fine but when I select "views" and "critical systems" I'm presented with this error. I get a similar error in Firefox. I've attched a screenshot, but it says "IE cannot download hobbit-nkview.sh from localhost" I wasn't able to find very descriptive logs. Only apache reports a 500 error Do y'all have any suggestions? Thanks a lot. -tom ~~~~~~~~~~~~~~~~~~~~~~ Tom Bullers Systems Administrator Phone: (XXX)XXX-XXXX mailto:user-5dfc2160a848@xymon.invalid
list Tom D. Bullers
Greg, I tried another test that allows me to connect directly to the display host without using a tunnel. I get the the same error, but with this browser it's a bit more descriptive - "The file hobbit-nkview.sh" is of type application/x-sh, and Mozilla does not know how to handle this file type. The file is lcoated at: http://hostname:1000 What should Mozilla do with this file?" It seems that Apache is trying to send the .sh file instead of executing it and forwarding the output. This does seem like an Apache config issue but I've made the changes suggested in the installation. Can you give me any other hints? Thanks.
▸
-tom
~~~~~~~~~~~~~~~~~~~~~~
Tom Bullers
Systems Administrator
Phone: (XXX)XXX-XXXX
mailto:user-5dfc2160a848@xymon.invalid -----Original Message----- From: Bullers, Tom D. Sent: Monday, December 11, 2006 11:04 AM To: user-ae9b8668bcde@xymon.invalid Subject: RE: [hobbit] Problem viewing "Critical Systems" Yes I am doing some tricks - I should have mentioned it. My test environment requires that I ssh tunnel through my localhost to the remote machine on the defined network port. I can see how this is foiling the cgi's. I thought I was having apache/cgi problems. I'll see what I can do about improving accessibility in my test environment. Thanks much. -tom ~~~~~~~~~~~~~~~~~~~~~~ Tom Bullers Systems Administrator Phone: (XXX)XXX-XXXX mailto:user-5dfc2160a848@xymon.invalid-----Original Message----- From: Hubbard, Greg L [mailto:user-d970b5e56ec9@xymon.invalid] Sent: Monday, December 11, 2006 10:10 AM To: user-ae9b8668bcde@xymon.invalid Subject: RE: [hobbit] Problem viewing "Critical Systems"There is some required Apache setup to allow the Hobbit CGI scripts to > run correctly. Look in the etc directory on your Hobbit server. But > the problem may be related to the fact that IE is trying to run on > "localhost" (the machine with the browser) instead of the display host? Are you doing some sort of > virtual machine tricks? GLH From: Bullers, Tom D. [mailto:user-36c110e67d4c@xymon.invalid] > Sent: Monday, December 11, 2006 9:00 AMTo: user-ae9b8668bcde@xymon.invalid Subject: [hobbit] Problem viewing "Critical Systems"Hi,New to the list here and new to Hobbit so sorry about the naïve > nature of the request. I've just installed Hobbit 4.2 and am running insto some errors in > the Web interface. Most pages seem to load fine but when I select > "views" and "critical systems" I'm presented with this error. I get a > similar error in Firefox.I've attched a screenshot, but it says "IE cannot download > hobbit-nkview.sh from localhost"I wasn't able to find very descriptive logs. Only apache reports a > 500 errorDo y'all have any suggestions? Thanks a lot.-tom~~~~~~~~~~~~~~~~~~~~~~ Tom Bullers Systems Administrator Phone: (XXX)XXX-XXXX mailto:user-5dfc2160a848@xymon.invalid
list Henrik Størner
▸
On Mon, Dec 11, 2006 at 11:20:43AM -0500, Bullers, Tom D. wrote:
I get the the same error, but with this browser it's a bit more descriptive - "The file hobbit-nkview.sh" is of type application/x-sh, and Mozilla does not know how to handle this file type. The file is lcoated at: http://hostname:1000 What should Mozilla do with this file?" It seems that Apache is trying to send the .sh file instead of executing it and forwarding the output.
What's the full URL for that link you're clicking on ? "http://hostname:1000"; doesn't look right, there must be something more than that. Check your Apache setup for the ScriptAlias settings. The results you get indicate that the directory with the hobbit-nkview.sh is considered a normal document directory by Apache, instead of a script (CGI) directory. Regards, Henrik
list Lars Ebeling
Did you restart Apache? Lars
▸
----- Original Message ----- From: "Bullers, Tom D." <user-36c110e67d4c@xymon.invalid> To: <user-ae9b8668bcde@xymon.invalid> Sent: Monday, December 11, 2006 5:20 PM Subject: RE: [hobbit] Problem viewing "Critical Systems" Greg, I tried another test that allows me to connect directly to the display host without using a tunnel. I get the the same error, but with this browser it's a bit more descriptive - "The file hobbit-nkview.sh" is of type application/x-sh, and Mozilla does not know how to handle this file type. The file is lcoated at: http://hostname:1000 What should Mozilla do with this file?" It seems that Apache is trying to send the .sh file instead of executing it and forwarding the output. This does seem like an Apache config issue but I've made the changes suggested in the installation. Can you give me any other hints? Thanks. -tom ~~~~~~~~~~~~~~~~~~~~~~ Tom Bullers Systems Administrator Phone: (XXX)XXX-XXXX mailto:user-5dfc2160a848@xymon.invalid
-----Original Message----- From: Bullers, Tom D. Sent: Monday, December 11, 2006 11:04 AM To: user-ae9b8668bcde@xymon.invalid Subject: RE: [hobbit] Problem viewing "Critical Systems" Yes I am doing some tricks - I should have mentioned it. My test environment requires that I ssh tunnel through my localhost to the remote machine on the defined network port. I can see how this is foiling the cgi's. I thought I was having apache/cgi problems. I'll see what I can do about improving accessibility in my test environment. Thanks much. -tom ~~~~~~~~~~~~~~~~~~~~~~ Tom Bullers Systems Administrator Phone: (XXX)XXX-XXXX mailto:user-5dfc2160a848@xymon.invalid-----Original Message----- From: Hubbard, Greg L [mailto:user-d970b5e56ec9@xymon.invalid] Sent: Monday, December 11, 2006 10:10 AM To: user-ae9b8668bcde@xymon.invalid Subject: RE: [hobbit] Problem viewing "Critical Systems" There is some required Apache setup to allow the Hobbit CGI scripts to run correctly. Look in the etc directory on your Hobbit server. But the problem may be related to the fact that IE is trying to run on "localhost" (the machine with the browser) instead of the display host? Are you doing some sort of virtual machine tricks? GLH From: Bullers, Tom D. [mailto:user-36c110e67d4c@xymon.invalid] Sent: Monday, December 11, 2006 9:00 AM To: user-ae9b8668bcde@xymon.invalid Subject: [hobbit] Problem viewing "Critical Systems" Hi, New to the list here and new to Hobbit so sorry about the naïve nature of the request. I've just installed Hobbit 4.2 and am running insto some errors in the Web interface. Most pages seem to load fine but when I select "views" and "critical systems" I'm presented with this error. I get a similar error in Firefox. I've attched a screenshot, but it says "IE cannot download hobbit-nkview.sh from localhost" I wasn't able to find very descriptive logs. Only apache reports a 500 error Do y'all have any suggestions? Thanks a lot. -tom ~~~~~~~~~~~~~~~~~~~~~~ Tom Bullers Systems Administrator Phone: (XXX)XXX-XXXX mailto:user-5dfc2160a848@xymon.invalid
list Tom D. Bullers
Here are the ScriptAlias settings from httpd.conf. They seem ok to me -
I can't see what might be wrong with them.
This directory: /home/s-hob1/hobbit/cgi-bin/ is where the nkview.sh
script lives that it is complaining about. The driectory is
ScriptAliased below in the 2nd stanza.
I am restarting Apache after a change to httpd.conf.
I am running Apache on port 10001. In my previos email I mentioned port
1000 but meant 10001.
Again the error occurs when I select "Critical Systems" from the views
prompt.
Does the ScriptAlias directive look correct? Are there log files I can
look at to get more detailed info? I'm not getting much out of the
Apache logs and I can't find hobbit logs.
Thanks much.
-tom
Alias /s-hob/ "/home/s-hob1/hobbit/server/www/"
<Directory "/home/s-hob1/hobbit/server/www">
Options Indexes FollowSymLinks Includes MultiViews
Order allow,deny
Allow from all
</Directory>
ScriptAlias /s-hob-cgi/ "/home/s-hob1/hobbit/cgi-bin/"
<Directory "/home/s-hob1/hobbit/cgi-bin">
AllowOverride None
Options ExecCGI Includes
Order allow,deny
Allow from all
</Directory>
ScriptAlias /s-hob-seccgi/ "/home/s-hob1/hobbit/cgi-secure/"
<Directory "/home/s-hob1/hobbit/cgi-secure">
AllowOverride None
Options ExecCGI Includes
Order allow,deny
Allow from all
# Password file where users with access to these scripts are kept.
# Create it with "htpasswd -c
/home/s-hob1/hobbit/server/etc/hobbitpasswd USERNAME"
# Add more users / change passwords with "htpasswd
/home/s-hob1/hobbit/server/etc/hobbitpasswd USERNAME"
#
# You can also use a group file to restrict admin access to members
of a
# group, instead of anyone who is logged in. In that case you must
setup
# the "hobbitgroups" file, and change the "Require" settings to
require
# a specific group membership. See the Apache docs for more details.
AuthUserFile /home/s-hob1/hobbit/server/etc/hobbitpasswd
AuthGroupFile /home/s-hob1/hobbit/server/etc/hobbitgroups
AuthType Basic
AuthName "Hobbit Administration"
# "valid-user" restricts access to anyone who is logged in.
Require valid-user
# "group admins" restricts access to users who have logged in, AND
# are members of the "admins" group in hobbitgroups.
# Require group admins
</Directory>
▸
~~~~~~~~~~~~~~~~~~~~~~
Tom Bullers
Systems Administrator
Phone: (XXX)XXX-XXXX
mailto:user-5dfc2160a848@xymon.invalid
-----Original Message----- From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] Sent: Monday, December 11, 2006 11:36 AM To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] Problem viewing "Critical Systems" On Mon, Dec 11, 2006 at 11:20:43AM -0500, Bullers, Tom D. wrote:I get the the same error, but with this browser it's a bit more descriptive - "The file hobbit-nkview.sh" is of type application/x-sh, and Mozilla does not know how to handle this file type. The file is lcoated at: http://hostname:1000 What should Mozilla do with this file?" It seems that Apache is trying to send the .sh file instead of executing it and forwarding the output.What's the full URL for that link you're clicking on ? "http://hostname:1000"; doesn't look right, there must be something more than that. Check your Apache setup for the ScriptAlias settings. The results you get indicate that the directory with the hobbit-nkview.sh is considered a normal document directory by Apache, instead of a script (CGI) directory. Regards, Henrik
list Tom D. Bullers
I'm getting a segmentation fault when running the hobbit-nkview.sh script. I looked at the file that hobbit is generating when I select the "Critical Systems" file menu option. This is the content. <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>500 Internal Server Error</title> </head><body> <h1>Internal Server Error</h1> <p>The server encountered an internal error or misconfiguration and was unable to complete your request.</p> <p>Please contact the server administrator, user-c9dc537f1ffb@xymon.invalid and inform them of This si the error in Apache: [Mon Dec 11 16:42:42 2006] [error] [client 10.11.14.60] Premature end of script headers: hobbit-nkview.sh, referer: http://localhost:10001/s-hob-cgi/bb-eventlog.sh When I try to execute the cgi script from the command line I get a segmentation fault: [s-hob1 at saomb60 cgi-bin]$ /home/s-hob1/hobbit/server/bin/hobbit-nkview.cgi Content-type: text/html Segmentation fault [s-hob1 at saomb60 cgi-bin]$ I did a standard compile under RedHat on a Compaq DL380 server. I don't know what else I can do to resolve this. Any Ideas? Thanks.
▸
-tom
~~~~~~~~~~~~~~~~~~~~~~
Tom Bullers
Systems Administrator
Phone: (XXX)XXX-XXXX
mailto:user-5dfc2160a848@xymon.invalid -----Original Message----- From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] Sent: Monday, December 11, 2006 11:36 AM To: user-ae9b8668bcde@xymon.invalid Subject: Re: [hobbit] Problem viewing "Critical Systems" On Mon, Dec 11, 2006 at 11:20:43AM -0500, Bullers, Tom D. wrote:I get the the same error, but with this browser it's a bit more > descriptive - "The file hobbit-nkview.sh" is of type application/x-sh, > and Mozilla does not know how to handle this file type. The file is > lcoated at: http://hostname:1000What should Mozilla do with this file?" It seems that Apache is trying to send the .sh file instead of executing it and forwarding the output.What's the full URL for that link you're clicking on ? "http://hostname:1000"; doesn't look right, there must be something more than that. Check your Apache setup for the ScriptAlias settings. The results you get indicate that the directory with the hobbit-nkview.sh is considered a normal document directory by Apache, instead of a script (CGI) directory. Regards, Henrik
attachment.jpg