Fresh install, but the .sh files are trying to download instad of execute
Been banging my head for a couple of hours, so thought I would post.
I've built a Xymon 4.3.0 rpm for Mandriva. Installed it on a fresh clean install of Corporate Server 4. But I can't get any of the cgi-bin files to execute - they attempt to download, and download nothing. In my error_log I get: [Fri Feb 20 17:46:07 2009] [notice] Apache/2.2.3 (Mandriva Linux/WORKER-1.4.20060mlcs4) configured -- resuming normal operations [Fri Feb 20 17:46:19 2009] [notice] child pid 28818 exit signal Segmentation fault (11)
If I try to download the file, it is zero length. wget just gets miffed. Nothing shows up in access_log.
So, I know I'm dealing with a really easy apache problem, but I'm out of clues. I've tried using SetHandler and AddHandler. Might I be missing a package? Or???
[mcdonalddj at attritive conf]$ rpm -qa | grep apache apache-base-2.2.3-1.4.20060mlcs4 apache-mpm-worker-2.2.3-1.4.20060mlcs4 apache-mod_suexec-2.2.3-1mlcs4 apache-modules-2.2.3-1.4.20060mlcs4 apache-conf-2.2.3-1.1.20060mlcs4
My production machine isn't using mpm-worker, having been upgraded a half dozen times from mandrake 8.2 to current, so there is all sorts of cruftiness that makes it hard to compare.
-- Daniel J McDonald, CCIE #2495, CISSP #78281, CNX Austin Energy http://www.austinenergy.com
McDonald, Dan wrote:
Been banging my head for a couple of hours, so thought I would post.
Hi Dan,
I presume you've added the relevant lines to your httpd.conf as per [hobbit install dir]/server/www/help/install.html?
Regards,
Carl
From: Carl Inglis [mailto:carl at yoshiwara.org.uk]
McDonald, Dan wrote:
Been banging my head for a couple of hours, so thought I would post. I presume you've added the relevant lines to your httpd.conf as per [hobbit install dir]/server/www/help/install.html?
Yes, I think. Not certain what in particular you are referring to, but there is an apache config that declares the cgi-bin directories to be +ExecCGI. I don't know if I have the SetHandler or AddHandler statements correct, though....
-- Dan McDonald, CCIE #2495
On Sun, 2009-02-22 at 07:21 -0600, McDonald, Dan wrote:
From: Carl Inglis [mailto:carl at yoshiwara.org.uk]
McDonald, Dan wrote:
Been banging my head for a couple of hours, so thought I would post. I presume you've added the relevant lines to your httpd.conf as per [hobbit install dir]/server/www/help/install.html?
Yes, I think. Not certain what in particular you are referring to, but there is an apache config that declares the cgi-bin directories to be +ExecCGI. I don't know if I have the SetHandler or AddHandler statements correct, though....
Looks like the apache-conf package for mandriva doesn't set up properly for apache-MPM. When I turned off mod_cgi and added mod_cgid it started working properly.
If anyone would like my specfile and patch for mandriva CS4, let me know. I changed a lot of filenames to xymon to follow the Mandriva naming spec.
-- Daniel J McDonald, CCIE #2495, CISSP #78281, CNX Austin Energy http://www.austinenergy.com
Hey Everyone,
This is the second Ubuntu server I have set up with Hobbit 4.2 and
Postfix as the SMTP server and the first one had no issues but this
second one is having trouble.
If I telnet to the server and send an e-mail manually it works with no
problems but what is appearing in the notifications.log shows that it
is generating the alert but no e-mail is sent according to the postfix
logs. I can see the manual e-mail in the postfix logs but nothing
from the hobbit alerts.
Any ideas of what I can check?
It is using the 'mail' command to send mail, but so is the other
Ubuntu box and it sends just fine.
Thanks for any suggestions.
-Jason
It is using the 'mail' command to send mail, but so is the other Ubuntu box and it sends just fine.
Have you tried using 'mail' on the non-working box to send a message yourself? It would seem that there may be a misconfiguration on your 'mail' command.
Just a thought.
Regards,
Carl
I see that there is a way to 'fake' a test in Hobbit (Xymon) but that
doesn't send an e-mail. Do you know what command will actually send
an e-mail as if an alert has been triggered?
Thanks, Jason
On Feb 23, 2009, at 9:01 AM, carl Inglis wrote:
It is using the 'mail' command to send mail, but so is the other Ubuntu box and it sends just fine.
Have you tried using 'mail' on the non-working box to send a message yourself? It would seem that there may be a misconfiguration on your 'mail' command.
Just a thought.
Regards,
Carl
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
I see that there is a way to 'fake' a test in Hobbit (Xymon) but that doesn't send an e-mail. Do you know what command will actually send an e-mail as if an alert has been triggered?
You could start with su'ing to the hobbit user, then trying:
$ mail [your email address] Subject: Test [blank line] ctrl-D $
That should lead to you getting an email from your hobbit user. If you don't, then your "mail" command is not configured correctly for your hobbit user.
Carl
Run the 'mailq' command on the server that you are having issues on and see if it's just queued up for some reason.
=G=
-----Original Message----- From: Jason Hand [mailto:jason at hands4christ.org] Sent: Monday, February 23, 2009 8:58 AM To: hobbit at hswn.dk Subject: [hobbit] Unable to get Hobbit 4.2 to send e-mails
Hey Everyone,
This is the second Ubuntu server I have set up with Hobbit 4.2 and
Postfix as the SMTP server and the first one had no issues but this
second one is having trouble.
If I telnet to the server and send an e-mail manually it works with no
problems but what is appearing in the notifications.log shows that it
is generating the alert but no e-mail is sent according to the postfix
logs. I can see the manual e-mail in the postfix logs but nothing
from the hobbit alerts.
Any ideas of what I can check?
It is using the 'mail' command to send mail, but so is the other
Ubuntu box and it sends just fine.
Thanks for any suggestions.
-Jason
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
No, there is nothing in the queue. I don't ever see any evidence of
the mail ever reaching postfix.
Thanks, Jason
On Feb 23, 2009, at 9:25 AM, Galen Johnson wrote:
Run the 'mailq' command on the server that you are having issues on
and see if it's just queued up for some reason.=G=
-----Original Message----- From: Jason Hand [mailto:jason at hands4christ.org] Sent: Monday, February 23, 2009 8:58 AM To: hobbit at hswn.dk Subject: [hobbit] Unable to get Hobbit 4.2 to send e-mails
Hey Everyone,
This is the second Ubuntu server I have set up with Hobbit 4.2 and Postfix as the SMTP server and the first one had no issues but this second one is having trouble.
If I telnet to the server and send an e-mail manually it works with no problems but what is appearing in the notifications.log shows that it is generating the alert but no e-mail is sent according to the postfix logs. I can see the manual e-mail in the postfix logs but nothing from the hobbit alerts.
Any ideas of what I can check?
It is using the 'mail' command to send mail, but so is the other Ubuntu box and it sends just fine.
Thanks for any suggestions.
-Jason
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
participants (4)
-
carl@yoshiwara.org.uk
-
Dan.McDonald@austinenergy.com
-
Galen.Johnson@sas.com
-
jason@hands4christ.org