Xymon Mailing List Archive search

Fresh install, but the .sh files are trying to download instad of execute

10 messages in this thread

list Dan McDonald · Fri, 20 Feb 2009 17:59:58 -0600 ·
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
list Carl Inglis · Sat, 21 Feb 2009 07:51:31 +0000 ·
quoted from Dan McDonald
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
list Dan McDonald · Sun, 22 Feb 2009 07:21:47 -0600 ·
From: Carl Inglis [mailto:user-73848971e77b@xymon.invalid]
quoted from Carl Inglis
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
list Dan McDonald · Mon, 23 Feb 2009 07:46:19 -0600 ·
quoted from Dan McDonald
On Sun, 2009-02-22 at 07:21 -0600, McDonald, Dan wrote:
From: Carl Inglis [mailto:user-73848971e77b@xymon.invalid]
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
list Jason Hand · Mon, 23 Feb 2009 08:57:46 -0500 ·
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
list Carl Inglis · Mon, 23 Feb 2009 14:01:23 -0000 (UTC) ·
quoted from Jason Hand
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
list Galen Johnson · Mon, 23 Feb 2009 09:25:59 -0500 ·
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=
quoted from Jason Hand

-----Original Message-----
From: Jason Hand [mailto:user-17f7af22f408@xymon.invalid] Sent: Monday, February 23, 2009 8:58 AM
To: user-ae9b8668bcde@xymon.invalid
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
list Jason Hand · Mon, 23 Feb 2009 09:43:30 -0500 ·
No, there is nothing in the queue.  I don't ever see any evidence of  
the mail ever reaching postfix.

Thanks,
Jason
quoted from Galen Johnson


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:user-17f7af22f408@xymon.invalid]
Sent: Monday, February 23, 2009 8:58 AM
To: user-ae9b8668bcde@xymon.invalid
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

list Jason Hand · Mon, 23 Feb 2009 15:47:14 -0500 ·
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?
quoted from Carl Inglis

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

list Carl Inglis · Mon, 23 Feb 2009 21:02:03 +0000 ·
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