Xymon Mailing List Archive search

CGI script errors / browser attempts to download file

8 messages in this thread

list Paul McIlrath · Fri, 5 Oct 2007 11:25:38 -0700 ·
Hi,
 Thanks everyone for your recommendations on my first noob post. They really helped.  I decided to create a new thread for this problem. "
http://<MYSERVERNAME>/hobbit/bb.html is working normally and brings me up to the normal "Main View" screen.  The "All Non-Green" screen works as well. But everything else....and I mean everything else....my browser tries to download a file rather than run the cgi script to generate the new page/report.  I checked and made sure my hobbit-server.cgi file points at the /usr/libexec/hobbit/cgi-bin directory, and I also made sure that my http.conf file points at the right cgi-bin for hobbit-cgi and cgi-secure for hobbit-seccgi.    Im stumped!
 Has anyone seen this behaviour before?
 Paul

</PRE>The information contained in this e-mail message may be confidential and protected from disclosure. If you are not the intended recipient, any dissemination, distribution or copying is strictly prohibited. If you think that you have received this e-mail message in error, please e-mail the sender at user-732e5d44368c@xymon.invalid
list Trent Melcher · Fri, 05 Oct 2007 13:39:28 -0500 ·
quoted from Paul McIlrath
On Fri, 2007-10-05 at 11:25 -0700, McIlrath, Paul wrote:
Hi,
 Thanks everyone for your recommendations on my first noob post. They really helped.  I decided to create a new thread for this problem. "
http://<MYSERVERNAME>/hobbit/bb.html is working normally and brings me up to the normal "Main View" screen.  The "All Non-Green" screen works as well. But everything else....and I mean everything else....my browser tries to download a file rather than run the cgi script to generate the new page/report.  I checked and made sure my hobbit-server.cgi file points at the /usr/libexec/hobbit/cgi-bin directory, and I also made sure that my http.conf file points at the right cgi-bin for hobbit-cgi and cgi-secure for hobbit-seccgi.    Im stumped!
Check your webserver.

Make sure you have AddHandler cgi-script .cgi

in your httpd.conf


and also that you have the ExecCGI option in your hobbit-cgi and
hobbit-seccgi sections of the httpd.conf


Trent
quoted from Paul McIlrath
 Has anyone seen this behaviour before?
 Paul

</PRE>The information contained in this e-mail message may be confidential and protected from disclosure. If you are not the intended recipient, any dissemination, distribution or copying is strictly prohibited. If you think that you have received this e-mail message in error, please e-mail the sender at user-732e5d44368c@xymon.invalid
list Greg L Hubbard · Fri, 5 Oct 2007 13:41:34 -0500 ·
This is a problem with your Web server setup.  It needs to be configured
to properly handle each file type.  Check the Hobbit documentation (tips
and tricks? Installation? I forget where) for the bit about how to set
up your Web server.

If you have Apache, then Apache needs to know that <whatever>.cgi is a
CGI, etc. 
quoted from Trent Melcher

-----Original Message-----
From: McIlrath, Paul [mailto:user-03ec167d2f2d@xymon.invalid] 
Sent: Friday, October 05, 2007 1:26 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] CGI script errors / browser attempts to download file

Hi,
 
Thanks everyone for your recommendations on my first noob post. They
really helped. 
 
I decided to create a new thread for this problem. 
"
http://<MYSERVERNAME>/hobbit/bb.html is working normally and brings me
up to the normal "Main View" screen.  The "All Non-Green" screen works
as well. But everything else....and I mean everything else....my browser
tries to download a file rather than run the cgi script to generate the
new page/report. 
 
I checked and made sure my hobbit-server.cgi file points at the
/usr/libexec/hobbit/cgi-bin directory, and I also made sure that my
http.conf file points at the right cgi-bin for hobbit-cgi and cgi-secure
for hobbit-seccgi.    Im stumped!
 
Has anyone seen this behaviour before?
 
Paul

</PRE>The information contained in this e-mail message may be
confidential and protected from disclosure. If you are not the intended
recipient, any dissemination, distribution or copying is strictly
prohibited. If you think that you have received this e-mail message in
error, please e-mail the sender at user-732e5d44368c@xymon.invalid
list Josh Luthman · Fri, 5 Oct 2007 14:46:58 -0400 ·
Necessary Apache configuration can be found as such:

[shire at frodo etc]$ locate hobbit-apache.conf
/home/shire/server/etc/hobbit-apache.conf

Josh
quoted from Greg L Hubbard

On 10/5/07, Hubbard, Greg L <user-d970b5e56ec9@xymon.invalid> wrote:
This is a problem with your Web server setup.  It needs to be configured
to properly handle each file type.  Check the Hobbit documentation (tips
and tricks? Installation? I forget where) for the bit about how to set
up your Web server.

If you have Apache, then Apache needs to know that <whatever>.cgi is a
CGI, etc.

-----Original Message-----
From: McIlrath, Paul [mailto:user-03ec167d2f2d@xymon.invalid]
Sent: Friday, October 05, 2007 1:26 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] CGI script errors / browser attempts to download file

Hi,

Thanks everyone for your recommendations on my first noob post. They
really helped.

I decided to create a new thread for this problem.
"
http://<MYSERVERNAME>/hobbit/bb.html is working normally and brings me
up to the normal "Main View" screen.  The "All Non-Green" screen works
as well. But everything else....and I mean everything else....my browser
tries to download a file rather than run the cgi script to generate the
new page/report.

I checked and made sure my hobbit-server.cgi file points at the
/usr/libexec/hobbit/cgi-bin directory, and I also made sure that my
http.conf file points at the right cgi-bin for hobbit-cgi and cgi-secure
for hobbit-seccgi.    Im stumped!

Has anyone seen this behaviour before?

Paul

</PRE>The information contained in this e-mail message may be
confidential and protected from disclosure. If you are not the intended
recipient, any dissemination, distribution or copying is strictly
prohibited. If you think that you have received this e-mail message in
error, please e-mail the sender at user-732e5d44368c@xymon.invalid

-- 

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 Josh Luthman · Fri, 5 Oct 2007 14:47:06 -0400 ·
Necessary Apache configuration can be found as such:

[shire at frodo etc]$ locate hobbit-apache.conf
/home/shire/server/etc/hobbit-apache.conf

Josh

On 10/5/07, Hubbard, Greg L <user-d970b5e56ec9@xymon.invalid> wrote:
This is a problem with your Web server setup.  It needs to be configured
to properly handle each file type.  Check the Hobbit documentation (tips
and tricks? Installation? I forget where) for the bit about how to set
up your Web server.

If you have Apache, then Apache needs to know that <whatever>.cgi is a
CGI, etc.

-----Original Message-----
From: McIlrath, Paul [mailto:user-03ec167d2f2d@xymon.invalid]
Sent: Friday, October 05, 2007 1:26 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] CGI script errors / browser attempts to download file

Hi,

Thanks everyone for your recommendations on my first noob post. They
really helped.

I decided to create a new thread for this problem.
"
http://<MYSERVERNAME>/hobbit/bb.html is working normally and brings me
up to the normal "Main View" screen.  The "All Non-Green" screen works
as well. But everything else....and I mean everything else....my browser
tries to download a file rather than run the cgi script to generate the
new page/report.

I checked and made sure my hobbit-server.cgi file points at the
/usr/libexec/hobbit/cgi-bin directory, and I also made sure that my
http.conf file points at the right cgi-bin for hobbit-cgi and cgi-secure
for hobbit-seccgi.    Im stumped!

Has anyone seen this behaviour before?

Paul

</PRE>The information contained in this e-mail message may be
confidential and protected from disclosure. If you are not the intended
recipient, any dissemination, distribution or copying is strictly
prohibited. If you think that you have received this e-mail message in
error, please e-mail the sender at user-732e5d44368c@xymon.invalid

-- 
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 Michael C [card] Long · Fri, 5 Oct 2007 14:46:33 -0500 ·
SELINUX turned on?
quoted from Josh Luthman
-----Original Message-----
From: McIlrath, Paul [mailto:user-03ec167d2f2d@xymon.invalid]
Sent: Friday, October 05, 2007 1:26 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: CGI script errors / browser attempts to download file

Hi,

Thanks everyone for your recommendations on my first noob post. They
really helped.

I decided to create a new thread for this problem.
"
http://<MYSERVERNAME>/hobbit/bb.html is working normally and brings me
up to the normal "Main View" screen.  The "All Non-Green" screen works
as well. But everything else....and I mean everything else....my
browser tries to download a file rather than run the cgi script to
generate the new page/report.

I checked and made sure my hobbit-server.cgi file points at the
/usr/libexec/hobbit/cgi-bin directory, and I also made sure that my

http.conf file points at the right cgi-bin for hobbit-cgi and cgi-
secure for hobbit-seccgi.    Im stumped!
quoted from Josh Luthman

Has anyone seen this behaviour before?

Paul

</PRE>The information contained in this e-mail message may be
confidential and protected from disclosure. If you are not the intended
recipient, any dissemination, distribution or copying is strictly
prohibited. If you think that you have received this e-mail message in
error, please e-mail the sender at user-732e5d44368c@xymon.invalid
list Paul McIlrath · Fri, 5 Oct 2007 23:43:04 -0700 ·
RESOLVED
 
 
Thanks again to everyone for their suggestions. I tried them all and still no luck, then  just by dumb luck, I vi'ed the shell scripts in /usr/libexec/hobbit/cgi-bin and /usr/libexec/hobbit/cgi-secure.
 
They were all pointing at /opt/hobbit/server/etc/  rather than /usr/libexec/hobbit/server/etc
 
I modified each shell script and everything works now. 
 
As to why the shell scripts were screwed up......well I have tried several installs...the first into /opt/hobbit.....so either I missed something when I was cleaning up between installs, or...I also noticed that the hobbit-4.2.0 directory and its contents were not owned by root.root    so maybe that had an effect. 
 
Thank you again for all your suggestions...it was luck not skill on my part that brought me to the answer. 
 
Paul
 

	-----Original Message----- 
	From: Long, Michael C [CARD] [mailto:user-70b211a0d438@xymon.invalid] 
	Sent: Fri 10/5/2007 1:46 PM 
	To: user-ae9b8668bcde@xymon.invalid 
	Cc: 
	Subject: [hobbit] RE: CGI script errors / browser attempts to download file
quoted from Michael C [card] Long
	
	
	SELINUX turned on?
	
-----Original Message-----
From: McIlrath, Paul [mailto:user-03ec167d2f2d@xymon.invalid]
Sent: Friday, October 05, 2007 1:26 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: CGI script errors / browser attempts to download file

Hi,

Thanks everyone for your recommendations on my first noob post. They
really helped.

I decided to create a new thread for this problem.
"
http://<MYSERVERNAME>/hobbit/bb.html is working normally and brings me
up to the normal "Main View" screen.  The "All Non-Green" screen works
as well. But everything else....and I mean everything else....my
browser tries to download a file rather than run the cgi script to
generate the new page/report.

I checked and made sure my hobbit-server.cgi file points at the
/usr/libexec/hobbit/cgi-bin directory, and I also made sure that my
http.conf file points at the right cgi-bin for hobbit-cgi and cgi-
secure for hobbit-seccgi.    Im stumped!

Has anyone seen this behaviour before?

Paul

</PRE>The information contained in this e-mail message may be
confidential and protected from disclosure. If you are not the intended
recipient, any dissemination, distribution or copying is strictly
prohibited. If you think that you have received this e-mail message in
error, please e-mail the sender at user-732e5d44368c@xymon.invalid
	
	
</PRE>The information contained in this e-mail message may be confidential and protected from disclosure. If you are not the intended recipient, any dissemination, distribution or copying is strictly prohibited. If you think that you have received this e-mail message in error, please e-mail the sender at user-732e5d44368c@xymon.invalid
list Ansiimire · Mon, 8 Oct 2007 08:49:34 +0300 (EAT) ·
Hi all,
I have managed to successfully install devmon on my hobbit server box and
i needed to monitor devices using snmp..my box supports MIB as well...but
i just cant get round to monitoring services like smtp...on monitored
devices...can some one kindly give me the procedures of doing this?
That would be of much help to me.
Thank you.
Alyn