Xymon Mailing List Archive search

Xymon on Ubuntu not running cgi

3 messages in this thread

list Scott A Dyer · Wed, 21 May 2014 02:42:14 +0000 ·
I have set up xymon using apache2 and the apt-get xymon package on a VMware virtual host.  I have been able to get the main page to display and all the hosts I have added in the hosts file show up green.  But, if I click one of the statuses it attempts to download the cgi script.  Except In chrome it gives me the following page.


#!/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 think it is a configuration issue in apache that is causing the problem but I have been unable to find it.

Thank you for any help,
Scott
list Rolf Schrittenlocher · Wed, 21 May 2014 07:54:14 +0200 ·
Hi Scott,

perhaps
AddHandler cgi-script .cgi$
in httpd.conf is missing?

kind regards
Rolf
quoted from Scott A Dyer
I have set up xymon using apache2 and the apt-get xymon package on a VMware virtual host.  I have been able to get the main page to display and all the hosts I have added in the hosts file show up green.  But, if I click one of the statuses it attempts to download the cgi script.  Except In chrome it gives me the following page.

#!/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 think it is a configuration issue in apache that is causing the problem but I have been unable to find it.

Thank you for any help,
Scott

-- 

Mit freundlichen Gruessen
Rolf Schrittenlocher

Lokales Bibliothekssystem Frankfurt
Senckenberganlage 31, 60054 Frankfurt
Tel: (XX) XX - XXX XXXXX   Fax: (XX) XX XXX XXXXX
LBS: user-1e39a1813094@xymon.invalid
Persoenlich: user-4b3b4051a09b@xymon.invalid
list Thomas Eckert · Wed, 21 May 2014 09:52:05 +0200 ·
Hi Scott,

I have not tried the xymon-packages from the official repository but rather installed the packages from sf.net.
At least on precise (64bit) this works out automatically: the package installs `/etc/apache2/conf.d/xymon` that is automatically included in the default vhost.

If you’d like to fix your current installation: The cgi-handler hint by Rolf points in the right direction. Check the `ScriptAlias` settings of your configuration. From the file mentioned above (excerpt):

ScriptAlias /xymon-cgi/ "/usr/lib/xymon/cgi-bin/"
<Directory "/usr/lib/xymon/cgi-bin">
    AllowOverride None
    Options ExecCGI Includes
    Order allow,deny
    Allow from all
</Directory>

ScriptAlias /xymon-seccgi/ "/usr/lib/xymon/cgi-secure/"
<Directory "/usr/lib/xymon/cgi-secure”>
(…)

I would advise to install the newest version of Xymon on the monitoring server (the clients can use the repo-version without problems). Just install the dependencies first:

apt-get install libldap-2.4 libpcre3 librrd4 libssl1.0.0 fping libc-ares2

and fetch 	the xymon and xymon-client packages from http://sf.net/p/xymon (4.3.17 is the current one), install the `xymon-client` package first as the server (`xymon`) depends on it.


All the best
Thomas

-- 
IT-Beratung Eckert		Bleickenallee 19			fon: +49 40 7305 1809
Thomas Eckert		22763 Hamburg			fax: +XX XX XXXX XXXX
www.it-eckert.com		user-dcf4e2aaac67@xymon.invalid
quoted from Scott A Dyer


On 21 May 2014, at 04:42, Scott A Dyer <user-4042f0cba51e@xymon.invalid> wrote:
I have set up xymon using apache2 and the apt-get xymon package on a VMware virtual host.  I have been able to get the main page to display and all the hosts I have added in the hosts file show up green.  But, if I click one of the statuses it attempts to download the cgi script.  Except In chrome it gives me the following page.

#!/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 think it is a configuration issue in apache that is causing the problem but I have been unable to find it.

Thank you for any help,
Scott