Yanni,
/var/www/html is most likely the Documentroot for your apache server and server is trying to find /xymon there because the Alias is not defined properly
The warnings from apache config test shows the same problem
so check httpd.conf, make sure that Xymon's aliases are defined correctly and only once probably you have defined them manually in the main config and included xymon-apache.conf later ...
Alex
On Tue, Oct 11, 2011 at 2:55 AM, Yanni <y.goudetsidis at mail.cryst.bbk.ac.uk> wrote:
Good morning Jeremy and thank you for your reply.
xymon user has read access almost everywhere within the xymon directory.
Please see below the permissions.
In /opt/:
drwxr-xr-x 7 xymon xymon 4096 Oct 5 12:23 xymon
In /opt/xymon:
drwxr-xr-x 2 xymon xymon 4096 Oct 5 12:23 cgi-bin drwxr-xr-x 2 xymon xymon 4096 Oct 5 12:23 cgi-secure drwxr-xr-x 7 xymon root 4096 Oct 5 12:23 client drwxr-xr-x 10 xymon xymon 4096 Oct 5 12:23 data drwxr-xr-x 9 xymon xymon 4096 Oct 5 12:23 server
In /opt/xymon/server:
drwxr-xr-x 2 xymon xymon 4096 Oct 5 12:23 bin drwxr-xr-x 2 xymon xymon 4096 Oct 5 12:23 download drwxr-xr-x 2 xymon xymon 4096 Oct 5 12:24 etc drwxr-xr-x 2 xymon xymon 4096 Oct 5 12:23 ext drwxr-xr-x 2 xymon xymon 4096 Oct 11 10:25 tmp drwxr-xr-x 2 xymon xymon 4096 Oct 5 12:23 web drwxr-xr-x 10 xymon xymon 4096 Oct 11 10:27 www lrwxrwxrwx 1 root root 12 Oct 5 12:23 xymon.sh -> bin/xymon.sh
Inside /opt/xymon/server/etc/:
-rw-r--r-- 1 xymon xymon 5713 Oct 5 12:23 alerts.cfg -rw-r--r-- 1 xymon xymon 20860 Oct 5 12:23 analysis.cfg -rw-r--r-- 1 xymon xymon 2072 Oct 5 12:23 cgioptions.cfg -rw-r--r-- 1 xymon xymon 3499 Oct 5 12:23 client-local.cfg -rw-r--r-- 1 xymon xymon 10838 Oct 5 12:23 columndoc.csv -rw-r--r-- 1 xymon xymon 577 Oct 5 12:23 combo.cfg -rw-rw-r-- 1 xymon xymon 0 Oct 11 10:30 cookies.session -rw-rw-r-- 1 xymon apache 0 Oct 5 12:23 critical.cfg -rw-rw-r-- 1 xymon apache 0 Oct 5 12:23 critical.cfg.bak -rw-r--r-- 1 xymon xymon 68722 Oct 5 12:23 graphs.cfg -rw-r--r-- 1 xymon xymon 3855 Oct 5 12:23 holidays.cfg -rw-r--r-- 1 xymon xymon 583 Oct 5 12:23 hosts.cfg -rw-r--r-- 1 xymon xymon 4673 Oct 5 12:23 protocols.cfg -rw-r--r-- 1 xymon xymon 1360 Oct 5 12:23 rrddefinitions.cfg -rw-r--r-- 1 xymon xymon 16842 Oct 5 12:23 snmpmibs.cfg -rw-r--r-- 1 xymon xymon 10179 Oct 5 12:23 tasks.cfg -rw-r--r-- 1 xymon xymon 4491 Oct 5 12:23 xymon-apache.conf -rw-r--r-- 1 xymon xymon 3135 Oct 5 12:23 xymonmenu.cfg -rw-r--r-- 1 xymon xymon 15483 Oct 5 12:23 xymonserver.cfg
Also when I restart apache I get the following warnings:
Stopping httpd: [ OK ] Starting httpd: [Tue Oct 11 10:43:24 2011] [warn] The Alias directive in /etc/httpd/conf/httpd.conf at line 1011 will probably never match because it overlaps an earlier Alias. [Tue Oct 11 10:43:24 2011] [warn] The ScriptAlias directive in /etc/httpd/conf/httpd.conf at line 1018 will probably never match because it overlaps an earlier ScriptAlias. [Tue Oct 11 10:43:24 2011] [warn] The ScriptAlias directive in /etc/httpd/conf/httpd.conf at line 1026 will probably never match because it overlaps an earlier ScriptAlias. [ OK ]
These lines are:
Line 1011: Alias /opt/webpages/ "/opt/xymon/server/www/"
Line 1018: ScriptAlias /opt/xymon/xymon-cgi/ "/opt/xymon/cgi-bin/"
Line 1026: ScriptAlias /opt/xymon/xymon-seccgi/ "/opt/xymon/cgi-secure/"
and I can see these errors in the apachelog:
[Tue Oct 11 10:18:18 2011] [error] [client 193.61.34.169] File does not exist: /var/www/html/opt [Tue Oct 11 10:18:27 2011] [error] [client 193.61.34.169] File does not exist: /var/www/html/xymon [Tue Oct 11 10:18:47 2011] [error] [client 193.61.34.169] File does not exist: /var/www/html/xymon [Tue Oct 11 10:19:27 2011] [error] [client 193.61.34.169] File does not exist: /var/www/html/xymon [Tue Oct 11 10:19:39 2011] [error] [client 193.61.34.169] File does not exist: /var/www/html/xymon [Tue Oct 11 10:19:57 2011] [error] [client 193.61.34.169] File does not exist: /var/www/html/xymon [Tue Oct 11 10:26:03 2011] [error] [client 193.61.34.169] File does not exist: /var/www/html/xymon
Why is it looking in /var/www/html/xymon where there is indeed no such file (xymon). It should look inside
/opt/xymon/server/www/. I am not sure but I think the problem is somewhere in apache.
Many thanks
Yanni
On October 11, 2011 at 8:00 AM Jeremy Laidman <jlaidman at rebel-it.com.au> wrote:
On Thu, Oct 6, 2011 at 10:12 PM, Yanni <y.goudetsidis at mail.cryst.bbk.ac.uk>wrote:
**
My 'xymonlaunch.log' looks like this:
2011-10-06 11:09:38 xymonlaunch starting 2011-10-06 11:09:38 Loading tasklist configuration from /opt/xymon/server/etc/tasks.cfg 2011-10-06 11:09:38 Cannot open directory
I can not see why it can't open 'tasks.cfg'.
Try switching to the xymon user and changing to /opt/xymon/server/etc/. My guess is that one of the directories in that path is not readable by the xymon user. If a directory is not readable, subdirectories appear to be non-existent.
Cheers Jeremy
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon