<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
    <title></title>
  </head>

  <body>
    <p style="margin: 0px;"><span>Good morning Jeremy and thank you for your reply.</span></p>

    <p style="margin: 0px;"><span> </span></p>

    <p style="margin: 0px;"><span>xymon user has read access almost everywhere within the xymon directory.</span></p>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;">Please see below the permissions.</p>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;">In /opt/:</p>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;">drwxr-xr-x 7 xymon  xymon  4096 Oct  5 12:23 xymon</p>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;"><br />
    In /opt/xymon:</p>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;">drwxr-xr-x  2 xymon xymon 4096 Oct  5 12:23 cgi-bin<br />
    drwxr-xr-x  2 xymon xymon 4096 Oct  5 12:23 cgi-secure<br />
    drwxr-xr-x  7 xymon root  4096 Oct  5 12:23 client<br />
    drwxr-xr-x 10 xymon xymon 4096 Oct  5 12:23 data<br />
    drwxr-xr-x  9 xymon xymon 4096 Oct  5 12:23 server<br />
    <br />
    </p>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;">In /opt/xymon/server:</p>

    <p style="margin: 0px;"><span> </span></p>

    <p style="margin: 0px;">drwxr-xr-x  2 xymon xymon 4096 Oct  5 12:23 bin<br />
    drwxr-xr-x  2 xymon xymon 4096 Oct  5 12:23 download<br />
    drwxr-xr-x  2 xymon xymon 4096 Oct  5 12:24 etc<br />
    drwxr-xr-x  2 xymon xymon 4096 Oct  5 12:23 ext<br />
    drwxr-xr-x  2 xymon xymon 4096 Oct 11 10:25 tmp<br />
    drwxr-xr-x  2 xymon xymon 4096 Oct  5 12:23 web<br />
    drwxr-xr-x 10 xymon xymon 4096 Oct 11 10:27 www<br />
    lrwxrwxrwx  1 root  root    12 Oct  5 12:23 xymon.sh -> bin/xymon.sh</p>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;">Inside /opt/xymon/server/etc/:</p>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;">-rw-r--r-- 1 xymon xymon   5713 Oct  5 12:23 alerts.cfg<br />
    -rw-r--r-- 1 xymon xymon  20860 Oct  5 12:23 analysis.cfg<br />
    -rw-r--r-- 1 xymon xymon   2072 Oct  5 12:23 cgioptions.cfg<br />
    -rw-r--r-- 1 xymon xymon   3499 Oct  5 12:23 client-local.cfg<br />
    -rw-r--r-- 1 xymon xymon  10838 Oct  5 12:23 columndoc.csv<br />
    -rw-r--r-- 1 xymon xymon    577 Oct  5 12:23 combo.cfg<br />
    -rw-rw-r-- 1 xymon xymon      0 Oct 11 10:30 cookies.session<br />
    -rw-rw-r-- 1 xymon apache     0 Oct  5 12:23 critical.cfg<br />
    -rw-rw-r-- 1 xymon apache     0 Oct  5 12:23 critical.cfg.bak<br />
    -rw-r--r-- 1 xymon xymon  68722 Oct  5 12:23 graphs.cfg<br />
    -rw-r--r-- 1 xymon xymon   3855 Oct  5 12:23 holidays.cfg<br />
    -rw-r--r-- 1 xymon xymon    583 Oct  5 12:23 hosts.cfg<br />
    -rw-r--r-- 1 xymon xymon   4673 Oct  5 12:23 protocols.cfg<br />
    -rw-r--r-- 1 xymon xymon   1360 Oct  5 12:23 rrddefinitions.cfg<br />
    -rw-r--r-- 1 xymon xymon  16842 Oct  5 12:23 snmpmibs.cfg<br />
    -rw-r--r-- 1 xymon xymon  10179 Oct  5 12:23 tasks.cfg<br />
    -rw-r--r-- 1 xymon xymon   4491 Oct  5 12:23 xymon-apache.conf<br />
    -rw-r--r-- 1 xymon xymon   3135 Oct  5 12:23 xymonmenu.cfg<br />
    -rw-r--r-- 1 xymon xymon  15483 Oct  5 12:23 xymonserver.cfg</p>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;">Also when I restart apache I get the following warnings:</p>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;">Stopping httpd:                                            [  OK  ]<br />
    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.<br />
    [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.<br />
    [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.<br />
                                                               [  OK  ]</p>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;">These lines are:</p>

    <p style="margin: 0px;">Line 1011: Alias /opt/webpages/  "/opt/xymon/server/www/"</p>

    <p style="margin: 0px;">Line 1018: ScriptAlias /opt/xymon/xymon-cgi/ "/opt/xymon/cgi-bin/"</p>

    <p style="margin: 0px;">Line 1026: ScriptAlias /opt/xymon/xymon-seccgi/ "/opt/xymon/cgi-secure/"</p>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;">and I can see these errors in the apachelog:</p>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;">[Tue Oct 11 10:18:18 2011] [error] [client 193.61.34.169] File does not exist: /var/www/html/opt<br />
    [Tue Oct 11 10:18:27 2011] [error] [client 193.61.34.169] File does not exist: /var/www/html/xymon<br />
    [Tue Oct 11 10:18:47 2011] [error] [client 193.61.34.169] File does not exist: /var/www/html/xymon<br />
    [Tue Oct 11 10:19:27 2011] [error] [client 193.61.34.169] File does not exist: /var/www/html/xymon<br />
    [Tue Oct 11 10:19:39 2011] [error] [client 193.61.34.169] File does not exist: /var/www/html/xymon<br />
    [Tue Oct 11 10:19:57 2011] [error] [client 193.61.34.169] File does not exist: /var/www/html/xymon<br />
    [Tue Oct 11 10:26:03 2011] [error] [client 193.61.34.169] File does not exist: /var/www/html/xymon</p>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;">Why is it looking in /var/www/html/xymon where there is indeed no such file (xymon). It should look inside</p>

    <p style="margin: 0px;">/opt/xymon/server/www/. I am not sure but I think the problem is somewhere in apache.</p>

    <p style="margin: 0px;"> </p>

    <p style="margin: 0px;">Many thanks</p>

    <p style="margin: 0px;">Yanni</p>

    <p style="margin: 0px;"> </p>

    <div style="margin: 5px 0px 5px 0px; font-family: monospace;">
      On October 11, 2011 at 8:00 AM Jeremy Laidman <jlaidman@rebel-it.com.au> wrote:<br />
      <br />
      > On Thu, Oct 6, 2011 at 10:12 PM, Yanni<br />
      > <y.goudetsidis@mail.cryst.bbk.ac.uk>wrote:<br />
      ><br />
      > > **<br />
      > ><br />
      > > My 'xymonlaunch.log' looks like this:<br />
      > ><br />
      > ><br />
      > ><br />
      > > 2011-10-06 11:09:38 xymonlaunch starting<br />
      > > 2011-10-06 11:09:38 Loading tasklist configuration from<br />
      > > /opt/xymon/server/etc/tasks.cfg<br />
      > > 2011-10-06 11:09:38 Cannot open directory<br />
      > ><br />
      ><br />
      ><br />
      > > I can not see why it can't open 'tasks.cfg'.<br />
      > ><br />
      ><br />
      > Try switching to the xymon user and changing to /opt/xymon/server/etc/.  My<br />
      > guess is that one of the directories in that path is not readable by the<br />
      > xymon user.  If a directory is not readable, subdirectories appear to be<br />
      > non-existent.<br />
      ><br />
      > Cheers<br />
      > Jeremy
    </div>
  </body>
</html>