Xymon Mailing List Archive search

new install issue

9 messages in this thread

list Kris Springer · Wed, 06 Aug 2014 16:05:36 -0700 ·
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 · Thu, 7 Aug 2014 00:26:25 +0000 ·
Check the ownership of the files - I had a similar issue and the web server couldn't execute the cgi.

cheers, Phil
quoted from Kris Springer

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 · Wed, 6 Aug 2014 21:45:53 -0400 ·
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
quoted from Phil Crooker
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 · Wed, 06 Aug 2014 23:35:04 -0700 ·
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
quoted from Josh Luthman


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 · Thu, 7 Aug 2014 06:41:14 +0000 ·
Try su'ing as the user account apache uses, then try running the programs with the exact path being reported.

cheers, Phil
quoted from Kris Springer

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 · Thu, 7 Aug 2014 09:27:34 -0400 ·
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
quoted from Kris Springer
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 · Thu, 7 Aug 2014 14:47:06 +0100 ·
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
quoted from Ralph Mitchell


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 · Thu, 07 Aug 2014 07:12:17 -0700 ·
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!
quoted from Martin Lenko
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>>
quoted from Martin Lenko
    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>
quoted from Martin Lenko
        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 · Sat, 9 Aug 2014 16:46:47 -0700 ·
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
quoted from Phil Crooker


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