Xymon on Ubuntu not running cgi
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
Hi Scott,
perhaps AddHandler cgi-script .cgi$ in httpd.conf is missing?
kind regards Rolf
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
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
-- Mit freundlichen Gruessen Rolf Schrittenlocher
Lokales Bibliothekssystem Frankfurt Senckenberganlage 31, 60054 Frankfurt Tel: (49) 69 - 798 28908 Fax: (49) 69 798 28817 LBS: lbs-f at mlist.uni-frankfurt.de Persoenlich: schritte at ub.uni-frankfurt.de
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: +49 40 7305 7509 www.it-eckert.com info at it-eckert.de
On 21 May 2014, at 04:42, Scott A Dyer <sadyer at ucdavis.edu> 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
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
participants (3)
-
sadyer@ucdavis.edu
-
schritte@ub.uni-frankfurt.de
-
thomas.eckert@it-eckert.de