new install issue
list Kris Springer
I've got a stable server hosted on AWS and I'm trying to build a new server on my ESXi VM server hosted elsewhere. Both are using Xymon 4.3.17 and both are build on Ubuntu 14.04. I've got Xymon2 up and supposedly configured the same as Xymon1. It's displaying the basic colored webpage with alerts functioning. My problem is that when I click any colored icon to view the drilldown info I get this message. #!/bin/sh # This is a wrapper for the Xymon svcstatus.cgi script . /usr/lib/xymon/server/etc/cgioptions.cfg exec /usr/lib/xymon/server/bin/svcstatus.cgi $CGI_SVC_OPTS Signature - Kris I tend to think this is an apache2 issue but I can't figure out what it is. I'm comparing Xymon1 and Xymon2 config files and I'm not seeing anything wrong. Anybody have a clue for me? Thank you. Kris Springer
list Phil Crooker
Check the ownership of the files - I had a similar issue and the web server couldn't execute the cgi. cheers, Phil
▸
From: Xymon on behalf of Kris Springer
Sent: Thursday, 7 August 2014 8:35 AM
To: Xymon MailingList
Subject: [Xymon] new install issue
I've got a stable server hosted on AWS and I'm trying to build a new server on my ESXi VM server hosted elsewhere. Both are using Xymon 4.3.17 and both are build on Ubuntu 14.04. I've got Xymon2 up and supposedly configured the same as Xymon1. It's displaying the basic colored webpage with alerts functioning. My problem is that when I click any colored icon to view the drilldown info I get this message.
#!/bin/sh
# This is a wrapper for the Xymon svcstatus.cgi script
. /usr/lib/xymon/server/etc/cgioptions.cfg exec /usr/lib/xymon/server/bin/svcstatus.cgi $CGI_SVC_OPTS
I tend to think this is an apache2 issue but I can't figure out what it is. I'm comparing Xymon1 and Xymon2 config files and I'm not seeing anything wrong. Anybody have a clue for me?
Thank you.
Kris Springer
list Josh Luthman
Apache isn't executing it, I'd guess the config wasn't included. Might also check the httpd logs. Josh Luthman Office: XXX-XXX-XXXX Direct: XXX-XXX-XXXX XXXX Wayne St Suite XXXX Troy, OH XXXXX
▸
On Aug 6, 2014 8:36 PM, "Phil Crooker" <user-e8e31cd73303@xymon.invalid> wrote:
Check the ownership of the files - I had a similar issue and the web server couldn't execute the cgi. cheers, Phil *From:* Xymon on behalf of Kris Springer *Sent:* Thursday, 7 August 2014 8:35 AM *To:* Xymon MailingList *Subject:* [Xymon] new install issue I've got a stable server hosted on AWS and I'm trying to build a new server on my ESXi VM server hosted elsewhere. Both are using Xymon 4.3.17 and both are build on Ubuntu 14.04. I've got Xymon2 up and supposedly configured the same as Xymon1. It's displaying the basic colored webpage with alerts functioning. My problem is that when I click any colored icon to view the drilldown info I get this message. #!/bin/sh # This is a wrapper for the Xymon svcstatus.cgi script . /usr/lib/xymon/server/etc/cgioptions.cfg exec /usr/lib/xymon/server/bin/svcstatus.cgi $CGI_SVC_OPTS I tend to think this is an apache2 issue but I can't figure out what it is. I'm comparing Xymon1 and Xymon2 config files and I'm not seeing anything wrong. Anybody have a clue for me? Thank you. Kris Springer
list Kris Springer
I've looked in apache logs and xymon logs and I don't see anything wrong. The permissions all look the same on both the working and nonworking servers. I'm just missing something simple I'm sure but I don't know where to look. Signature - Kris Thank you. Kris Springer
▸
On 8/6/2014 6:45 PM, Josh Luthman wrote:
Apache isn't executing it, I'd guess the config wasn't included.
Might also check the httpd logs.
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
On Aug 6, 2014 8:36 PM, "Phil Crooker" <user-e8e31cd73303@xymon.invalid
<mailto:user-e8e31cd73303@xymon.invalid>> wrote:
Check the ownership of the files - I had a similar issue and the
web server couldn't execute the cgi.
cheers, Phil
*From:* Xymon on behalf of Kris Springer
*Sent:* Thursday, 7 August 2014 8:35 AM
*To:* Xymon MailingList
*Subject:* [Xymon] new install issue
I've got a stable server hosted on AWS and I'm trying to build a
new server on my ESXi VM server hosted elsewhere. Both are using
Xymon 4.3.17 and both are build on Ubuntu 14.04. I've got Xymon2
up and supposedly configured the same as Xymon1. It's displaying
the basic colored webpage with alerts functioning. My problem is
that when I click any colored icon to view the drilldown info I
get this message.
#!/bin/sh
# This is a wrapper for the Xymon svcstatus.cgi script
. /usr/lib/xymon/server/etc/cgioptions.cfg exec
/usr/lib/xymon/server/bin/svcstatus.cgi $CGI_SVC_OPTS
I tend to think this is an apache2 issue but I can't figure out
what it is. I'm comparing Xymon1 and Xymon2 config files and I'm
not seeing anything wrong. Anybody have a clue for me?
Thank you.
Kris Springer
list Phil Crooker
Try su'ing as the user account apache uses, then try running the programs with the exact path being reported. cheers, Phil
▸
From: Kris Springer
Sent: Thursday, 7 August 2014 4:05 PM
To: Josh Luthman; Phil Crooker
Cc: xymon at xymon.com
Subject: Re: [Xymon] new install issue
I've looked in apache logs and xymon logs and I don't see anything wrong. The permissions all look the same on both the working and nonworking servers. I'm just missing something simple I'm sure but I don't know where to look.
Thank you.
Kris Springer
On 8/6/2014 6:45 PM, Josh Luthman wrote:
Apache isn't executing it, I'd guess the config wasn't included. Might also check the httpd logs.
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
On Aug 6, 2014 8:36 PM, "Phil Crooker" <user-e8e31cd73303@xymon.invalid<mailto:user-e8e31cd73303@xymon.invalid>> wrote:
Check the ownership of the files - I had a similar issue and the web server couldn't execute the cgi.
cheers, Phil
From: Xymon on behalf of Kris Springer
Sent: Thursday, 7 August 2014 8:35 AM
To: Xymon MailingList
Subject: [Xymon] new install issue
I've got a stable server hosted on AWS and I'm trying to build a new server on my ESXi VM server hosted elsewhere. Both are using Xymon 4.3.17 and both are build on Ubuntu 14.04. I've got Xymon2 up and supposedly configured the same as Xymon1. It's displaying the basic colored webpage with alerts functioning. My problem is that when I click any colored icon to view the drilldown info I get this message.
#!/bin/sh
# This is a wrapper for the Xymon svcstatus.cgi script
. /usr/lib/xymon/server/etc/cgioptions.cfg exec /usr/lib/xymon/server/bin/svcstatus.cgi $CGI_SVC_OPTS
I tend to think this is an apache2 issue but I can't figure out what it is. I'm comparing Xymon1 and Xymon2 config files and I'm not seeing anything wrong. Anybody have a clue for me?
Thank you.
Kris Springer
list Ralph Mitchell
The installation would have written $xymonhome/server/etc/xymon-apache.conf. Did you copy that to the Apache config file directory, then restart Apache? It contains the ExecCGI option for the CGI directory, and without that, Apache doesn't know to execute the scripts, so it just pushes them out as plain text. Ralph Mitchell
▸
On Aug 7, 2014 2:35 AM, "Kris Springer" <user-c2caa0a7a8d5@xymon.invalid> wrote:
I've looked in apache logs and xymon logs and I don't see anything wrong. The permissions all look the same on both the working and nonworking servers. I'm just missing something simple I'm sure but I don't know where to look. Thank you. Kris Springer On 8/6/2014 6:45 PM, Josh Luthman wrote: Apache isn't executing it, I'd guess the config wasn't included. Might also check the httpd logs. Josh Luthman Office: XXX-XXX-XXXX Direct: XXX-XXX-XXXX XXXX Wayne St Suite XXXX Troy, OH XXXXX On Aug 6, 2014 8:36 PM, "Phil Crooker" <user-e8e31cd73303@xymon.invalid> wrote:Check the ownership of the files - I had a similar issue and the web server couldn't execute the cgi. cheers, Phil *From:* Xymon on behalf of Kris Springer *Sent:* Thursday, 7 August 2014 8:35 AM *To:* Xymon MailingList *Subject:* [Xymon] new install issue I've got a stable server hosted on AWS and I'm trying to build a new server on my ESXi VM server hosted elsewhere. Both are using Xymon 4.3.17 and both are build on Ubuntu 14.04. I've got Xymon2 up and supposedly configured the same as Xymon1. It's displaying the basic colored webpage with alerts functioning. My problem is that when I click any colored icon to view the drilldown info I get this message. #!/bin/sh # This is a wrapper for the Xymon svcstatus.cgi script . /usr/lib/xymon/server/etc/cgioptions.cfg exec /usr/lib/xymon/server/bin/svcstatus.cgi $CGI_SVC_OPTS I tend to think this is an apache2 issue but I can't figure out what it is. I'm comparing Xymon1 and Xymon2 config files and I'm not seeing anything wrong. Anybody have a clue for me? Thank you. Kris Springer
list Martin Lenko
Does apache loads the cgi module? Yuo can check it using "a2query -m cgid" or listing the files in mods-enabled directory "ls -l /etc/apache2/mods-enabled/cgid.load" Martin
▸
On 7 August 2014 14:27, Ralph Mitchell <user-00a5e44c48c0@xymon.invalid> wrote:
The installation would have written $xymonhome/server/etc/xymon-apache.conf. Did you copy that to the Apache config file directory, then restart Apache? It contains the ExecCGI option for the CGI directory, and without that, Apache doesn't know to execute the scripts, so it just pushes them out as plain text. Ralph Mitchell On Aug 7, 2014 2:35 AM, "Kris Springer" <user-c2caa0a7a8d5@xymon.invalid> wrote:I've looked in apache logs and xymon logs and I don't see anything wrong. The permissions all look the same on both the working and nonworking servers. I'm just missing something simple I'm sure but I don't know where to look. Thank you. Kris Springer On 8/6/2014 6:45 PM, Josh Luthman wrote: Apache isn't executing it, I'd guess the config wasn't included. Might also check the httpd logs. Josh Luthman Office: XXX-XXX-XXXX Direct: XXX-XXX-XXXX XXXX Wayne St Suite XXXX Troy, OH XXXXX On Aug 6, 2014 8:36 PM, "Phil Crooker" <user-e8e31cd73303@xymon.invalid> wrote:Check the ownership of the files - I had a similar issue and the web server couldn't execute the cgi. cheers, Phil *From:* Xymon on behalf of Kris Springer *Sent:* Thursday, 7 August 2014 8:35 AM *To:* Xymon MailingList *Subject:* [Xymon] new install issue I've got a stable server hosted on AWS and I'm trying to build a new server on my ESXi VM server hosted elsewhere. Both are using Xymon 4.3.17 and both are build on Ubuntu 14.04. I've got Xymon2 up and supposedly configured the same as Xymon1. It's displaying the basic colored webpage with alerts functioning. My problem is that when I click any colored icon to view the drilldown info I get this message. #!/bin/sh # This is a wrapper for the Xymon svcstatus.cgi script . /usr/lib/xymon/server/etc/cgioptions.cfg exec /usr/lib/xymon/server/bin/svcstatus.cgi $CGI_SVC_OPTS I tend to think this is an apache2 issue but I can't figure out what it is. I'm comparing Xymon1 and Xymon2 config files and I'm not seeing anything wrong. Anybody have a clue for me? Thank you. Kris Springer
list Kris Springer
This mailing list rocks! That was it! Thank you Martin for pointing me to the apache2 module that needed enabled. I added the cgid.load module to the /etc/apache2/mods-enabled/ directory and restarted the apache2 service and everything started working like magic. Good job. Thanks again!
▸
Signature - Kris
Thank you.
Kris Springer
On 8/7/2014 6:47 AM, Martin Lenko wrote:Does apache loads the cgi module? Yuo can check it using "a2query -m
cgid" or listing the files in mods-enabled directory "ls -l
/etc/apache2/mods-enabled/cgid.load"
Martin
On 7 August 2014 14:27, Ralph Mitchell <user-00a5e44c48c0@xymon.invalid
<mailto:user-00a5e44c48c0@xymon.invalid>> wrote:
The installation would have written
$xymonhome/server/etc/xymon-apache.conf. Did you copy that to the
Apache config file directory, then restart Apache? It contains
the ExecCGI option for the CGI directory, and without that, Apache
doesn't know to execute the scripts, so it just pushes them out as
plain text.
Ralph Mitchell
On Aug 7, 2014 2:35 AM, "Kris Springer"
<user-c2caa0a7a8d5@xymon.invalid <mailto:user-c2caa0a7a8d5@xymon.invalid>>
▸
wrote: I've looked in apache logs and xymon logs and I don't see anything wrong. The permissions all look the same on both the working and nonworking servers. I'm just missing something simple I'm sure but I don't know where to look. Thank you. Kris Springer On 8/6/2014 6:45 PM, Josh Luthman wrote:Apache isn't executing it, I'd guess the config wasn't included. Might also check the httpd logs. Josh Luthman
Office: XXX-XXX-XXXX <tel:XXX-XXX-XXXX> Direct: XXX-XXX-XXXX <tel:XXX-XXX-XXXX>
▸
XXXX Wayne St Suite XXXX Troy, OH XXXXX On Aug 6, 2014 8:36 PM, "Phil Crooker" <user-e8e31cd73303@xymon.invalid <mailto:user-e8e31cd73303@xymon.invalid>> wrote: Check the ownership of the files - I had a similar issue and the web server couldn't execute the cgi. cheers, Phil *From:* Xymon on behalf of Kris Springer *Sent:* Thursday, 7 August 2014 8:35 AM *To:* Xymon MailingList *Subject:* [Xymon] new install issue I've got a stable server hosted on AWS and I'm trying to build a new server on my ESXi VM server hosted elsewhere. Both are using Xymon 4.3.17 and both are build on Ubuntu 14.04. I've got Xymon2 up and supposedly configured the same as Xymon1. It's displaying the basic colored webpage with alerts functioning. My problem is that when I click any colored icon to view the drilldown info I get this message. #!/bin/sh # This is a wrapper for the Xymon svcstatus.cgi script . /usr/lib/xymon/server/etc/cgioptions.cfg exec /usr/lib/xymon/server/bin/svcstatus.cgi $CGI_SVC_OPTS I tend to think this is an apache2 issue but I can't figure out what it is. I'm comparing Xymon1 and Xymon2 config files and I'm not seeing anything wrong. Anybody have a clue for me? Thank you. Kris Springer
list Japheth Cleaver
Could be a result of the '.sh' extension not being considered a valid cgi-script. RH/Fedora used to be that way; not sure if Ubuntu still is... Adding "AddHandler cgi-script .sh$" somewhere into your apache config might fix it. HTH, -jc
▸
On Wed, August 6, 2014 11:41 pm, Phil Crooker wrote:Try su'ing as the user account apache uses, then try running the programs with the exact path being reported. cheers, Phil From: Kris Springer Sent: Thursday, 7 August 2014 4:05 PM To: Josh Luthman; Phil Crooker Cc: xymon at xymon.com Subject: Re: [Xymon] new install issue I've looked in apache logs and xymon logs and I don't see anything wrong. The permissions all look the same on both the working and nonworking servers. I'm just missing something simple I'm sure but I don't know where to look. Thank you. Kris Springer On 8/6/2014 6:45 PM, Josh Luthman wrote: Apache isn't executing it, I'd guess the config wasn't included. Might also check the httpd logs. Josh Luthman Office: XXX-XXX-XXXX Direct: XXX-XXX-XXXX XXXX Wayne St Suite XXXX Troy, OH XXXXX On Aug 6, 2014 8:36 PM, "Phil Crooker" <user-e8e31cd73303@xymon.invalid<mailto:user-e8e31cd73303@xymon.invalid>> wrote: Check the ownership of the files - I had a similar issue and the web server couldn't execute the cgi. cheers, Phil From: Xymon on behalf of Kris Springer Sent: Thursday, 7 August 2014 8:35 AM To: Xymon MailingList Subject: [Xymon] new install issue I've got a stable server hosted on AWS and I'm trying to build a new server on my ESXi VM server hosted elsewhere. Both are using Xymon 4.3.17 and both are build on Ubuntu 14.04. I've got Xymon2 up and supposedly configured the same as Xymon1. It's displaying the basic colored webpage with alerts functioning. My problem is that when I click any colored icon to view the drilldown info I get this message. #!/bin/sh # This is a wrapper for the Xymon svcstatus.cgi script . /usr/lib/xymon/server/etc/cgioptions.cfg exec /usr/lib/xymon/server/bin/svcstatus.cgi $CGI_SVC_OPTS I tend to think this is an apache2 issue but I can't figure out what it is. I'm comparing Xymon1 and Xymon2 config files and I'm not seeing anything wrong. Anybody have a clue for me? Thank you. Kris Springer