<!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;">Hi</p>
<p style="margin: 0px;"><span> </span></p>
<p style="margin: 0px;"><span> </span> I re-installed Xymon but I still can't get anything on the web browser.<br />
<br />
I get "Not Found. The requested URL /xymon was not found on this server"<br />
<br />
Run 'Make & make install' again with no errors.<br />
<br />
1) Added the content of file 'xymon-apache.conf' in 'httpd.conf'.<br />
2) Created 'xymonpasswd' using '.htaccess' and placed it in /etc/httpd directory.<br />
3) Edited 'xymon-apache.conf' file and modify location of xymonpasswd.<br />
4) Commented out '#AuthGroupFile /opt/xymon/server/etc/xymongroups' in httpd.conf because I am not going to use it.</p>
<p style="margin: 0px;"> In fact I haven't figured out how to use it at the moment, so I will leave for another time.<br />
<br />
When I checked the apache syntax (apachectl -t), I got the following warnings:<br />
<br />
*)[Thu Oct 06 11:27:58 2011] [warn] The Alias directive in /etc/httpd/conf/httpd.conf at line 1010 will probably never match because it overlaps an earlier Alias.<br />
<br />
*)[Thu Oct 06 11:27:58 2011] [warn] The ScriptAlias directive in /etc/httpd/conf/httpd.conf at line 1017 will probably never match because it overlaps an earlier ScriptAlias.<br />
<br />
*)[Thu Oct 06 11:27:58 2011] [warn] The ScriptAlias directive in /etc/httpd/conf/httpd.conf at line 1025 will probably never match because it overlaps an earlier ScriptAlias.<br />
<br />
*)Syntax OK</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"><br />
My 'xymonlaunch.log' looks like this:</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">2011-10-06 11:09:38 xymonlaunch starting<br />
2011-10-06 11:09:38 Loading tasklist configuration from /opt/xymon/server/etc/tasks.cfg<br />
2011-10-06 11:09:38 Cannot open directory<br />
2011-10-06 11:09:38 Loading hostnames<br />
2011-10-06 11:09:38 Loading saved state<br />
2011-10-06 11:09:38 Setting up network listener on 0.0.0.0:1984<br />
2011-10-06 11:09:38 Setting up signal handlers<br />
2011-10-06 11:09:38 Setting up xymond channels<br />
2011-10-06 11:09:38 Setting up logfiles<br />
<br />
I can not see why it can't open 'tasks.cfg'.</p>
<p style="margin: 0px;">The file is there and its owner is 'xymon' (created when asked during installation)</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">My 'alert.log' looks like this:</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">Cannot open configuration file /opt/xymon/server/etc/alerts.cfg: No such file or directory<br />
2011-10-05 12:11:46 Cannot open configuration file /opt/xymon/server/etc/holidays.cfg<br />
2011-10-05 12:12:46 Cannot open configuration file /opt/xymon/server/etc/alerts.cfg: No such file or directory<br />
2011-10-05 12:12:46 Cannot open configuration file /opt/xymon/server/etc/holidays.cfg<br />
2011-10-05 12:13:46 Cannot open configuration file /opt/xymon/server/etc/alerts.cfg: No such file or directory<br />
2011-10-05 12:13:46 Cannot open configuration file /opt/xymon/server/etc/holidays.cfg<br />
2011-10-05 12:14:46 Cannot open configuration file /opt/xymon/server/etc/alerts.cfg: No such file or directory<br />
2011-10-05 12:14:46 Cannot open configuration file /opt/xymon/server/etc/holidays.cfg<br />
2011-10-05 12:15:46 Cannot open configuration file /opt/xymon/server/etc/alerts.cfg: No such file or directory<br />
2011-10-05 12:15:46 Cannot open configuration file /opt/xymon/server/etc/holidays.cfg<br />
2011-10-05 12:16:46 Cannot open configuration file /opt/xymon/server/etc/alerts.cfg: No such file or directory<br />
2011-10-05 12:16:46 Cannot open configuration file /opt/xymon/server/etc/holidays.cfg<br />
2011-10-05 12:17:46 Cannot open configuration file /opt/xymon/server/etc/alerts.cfg: No such file or directory<br />
2011-10-05 12:17:46 Cannot open configuration file /opt/xymon/server/etc/holidays.cfg<br />
2011-10-05 12:18:46 Cannot open configuration file /opt/xymon/server/etc/alerts.cfg: No such file or directory<br />
2011-10-05 12:18:46 Cannot open configuration file /opt/xymon/server/etc/holidays.cfg<br />
2011-10-05 12:19:46 Cannot open configuration file /opt/xymon/server/etc/alerts.cfg: No such file or directory<br />
2011-10-05 12:19:46 Cannot open configuration file /opt/xymon/server/etc/holidays.cfg<br />
2011-10-05 12:20:46 Cannot open configuration file /opt/xymon/server/etc/alerts.cfg: No such file or directory<br />
2011-10-05 12:20:46 Cannot open configuration file /opt/xymon/server/etc/holidays.cfg<br />
2011-10-05 12:20:56 Cannot open configuration file /opt/xymon/server/etc/alerts.cfg: No such file or directory<br />
2011-10-05 12:20:56 Cannot open configuration file /opt/xymon/server/etc/holidays.cfg<br />
2011-10-05 12:21:56 Cannot open configuration file /opt/xymon/server/etc/alerts.cfg: No such file or directory<br />
2011-10-05 12:21:56 Cannot open configuration file /opt/xymon/server/etc/holidays.cfg<br />
2011-10-05 12:22:56 Cannot open configuration file /opt/xymon/server/etc/alerts.cfg: No such file or directory<br />
2011-10-05 12:22:56 Cannot open configuration file /opt/xymon/server/etc/holidays.cfg<br />
<br />
I can confirm that all the above files are located in /opt/xymon/server/etc directory.<br />
The owner is 'apache' and they belong to the group 'xymon', except 'critical.cfg' which also owned by 'apache'.</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"><br />
My 'xymond.log' looks like this:<br />
<br />
2011-09-26 11:25:31 Setup complete<br />
2011-09-26 15:15:23 Setup complete<br />
2011-09-29 12:13:41 Setup complete<br />
2011-10-05 12:15:56 Config file hosts.cfg not found<br />
2011-10-05 12:21:02 Cannot open checkpoint file /opt/xymon/server/tmp/xymond.chk.1317813662 : No such file or directory<br />
2011-10-05 12:21:04 Cannot load host data<br />
2011-10-05 12:23:34 Setup complete<br />
2011-10-05 12:24:26 Setup complete<br />
2011-10-06 10:52:43 Setup complete<br />
2011-10-06 11:09:38 Setup complete</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"><br />
My 'xymongen.log' looks like this:<br />
<br />
2011-09-26 11:25:36 xymond status-board not available, code 0<br />
2011-09-26 11:25:36 Failed to load current Xymon status, aborting page-update</p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;"> </p>
<p style="margin: 0px;">Sorry for the long message but if you have any more suggestions, please let me know.<br />
<br />
Many thanks<br />
Yanni</p>
<p style="margin: 0px;"></p>
<p> </p>
<div style="margin: 5px 0px 5px 0px; font-family: monospace;">
On September 28, 2011 at 4:50 AM Alex Levin <alevin@gmail.com> wrote:<br />
<br />
> Yanni,<br />
><br />
> All directives for xymon related apache directories ( including cgi-*<br />
> ) are already included in xymon-apache.conf, so you need just to make<br />
> sure that the file itself is included into main apache config (<br />
> httpd.conf )<br />
><br />
> if you placed xymonpasswd into /etc/httpd/ folder - you need to edit<br />
> xymon-apache.conf file and modify location of the file.<br />
> Also - if not using groups for apache authentication - remove or<br />
> comment corresponding lines from xymon-apache.conf.<br />
><br />
> When done - check syntax of the config ( apachectl -t ) and restart<br />
> apache ( apachectl restart ) using root account.<br />
> Under user xymon - start server ( in your case<br />
> "/opt/xymon/server/xymon.sh start" )<br />
><br />
> if everything is OK - you should be able to see something at<br />
> http://YOURWEBHOST/xymon/<br />
><br />
><br />
> If something is not working - check log files ( apache or xymon )<br />
><br />
> ---<br />
> Alex<br />
><br />
> On Tue, Sep 27, 2011 at 9:13 AM, Yanni<br />
> <y.goudetsidis@mail.cryst.bbk.ac.uk> wrote:<br />
> > Hi Alex<br />
> ><br />
> ><br />
> ><br />
> > Please allow me to mention what I have done so far.<br />
> ><br />
> ><br />
> ><br />
> > All xymon related directores (cgi-bin, cgi-secure, client, data, server,<br />
> > webpages, xymon-cgi, xymon-seccgi) are inside<br />
> ><br />
> > /opt/xymon.<br />
> ><br />
> ><br />
> ><br />
> > After searching about configuring apache online, I found out that in order<br />
> > for Apache to execute CGI scripts<br />
> ><br />
> > I need to edit the "access.conf" file by adding a section like this:<br />
> ><br />
> ><br />
> ><br />
> > <Directory /opt/xymon/cgi-bin><br />
> > Options ExecCGI<br />
> > AddHandler cgi-script .cgi .pl<br />
> > </Directory><br />
> ><br />
> ><br />
> ><br />
> > I did that. Next I read that I should create a special location called alias<br />
> > to the actual CGI directory and then edit my "httpd.conf" file and add the<br />
> > line below:<br />
> ><br />
> > 'ScriptAlias /cgi-bin/ /opt/xymon/cgi-bin/'<br />
> ><br />
> ><br />
> ><br />
> > I've done that as well.<br />
> ><br />
> ><br />
> ><br />
> > Next I followed your instructions on the link you send me.<br />
> ><br />
> > I run:<br />
> ><br />
> > 'htpasswd -c /etc/httpd/xymonpasswd admin' and entered password.<br />
> ><br />
> ><br />
> ><br />
> > I finally found "xymon-apache.conf" and copied it to /etc/httpd/conf.d/<br />
> ><br />
> ><br />
> ><br />
> > but I am a bit confused about the 'sed' command.<br />
> ><br />
> ><br />
> ><br />
> > Is the directory at the end stops at 'httpd'?<br />
> ><br />
> ><br />
> ><br />
> > Many thanks<br />
> ><br />
> > Yanni<br />
> ><br />
> ><br />
> ><br />
> > On September 27, 2011 at 12:17 AM Alex Levin <alevin@gmail.com> wrote:<br />
> ><br />
> >> Yanni,<br />
> >><br />
> >> You need to include xymon-apache.conf file in your httpd.conf, it's<br />
> >> location depends on the system you are using and on how the Apache<br />
> >> server was installed ( from repository or compiled )<br />
> >> but before - make sure that xymonpasswd ( and probably<br />
> >> xymongroups ) files are created. ( read the config file :) )<br />
> >><br />
> >> Actually - it is a good idea to understand syntax of Apache config<br />
> >> files ( at least check directives used in xymon config on<br />
> >> http://httpd.apache.org/docs/2.2/ ) ...<br />
> >><br />
> >> Also, I have some notes on installing xymon in AWS ( amazon ) cloud<br />
> >> that could be useful for you -<br />
> >> http://www.abristech.net/2011/09/xymon-monitoring-from-cloud.html as<br />
> >> well<br />
> >><br />
> >><br />
> >> --<br />
> >> Alex<br />
> >><br />
> >><br />
> >><br />
> >> On Mon, Sep 26, 2011 at 4:02 AM, Yanni<br />
> >> <y.goudetsidis@mail.cryst.bbk.ac.uk> wrote:<br />
> >> > Hi everyone<br />
> >> ><br />
> >> ><br />
> >> ><br />
> >> > I am junior sysadmin at a college and after a few failed attempts I<br />
> >> > successfully installed Xymon. No errors appeared after running 'make'<br />
> >> > and<br />
> >> > 'make install'.<br />
> >> ><br />
> >> ><br />
> >> ><br />
> >> > At the moment I am trying to configure my web server(Apache/2.2.3 )<br />
> >> > (which<br />
> >> > is located on the same machine as xymon) and I am following the<br />
> >> > instructions<br />
> >> > on the "installing Xymon" link<br />
> >> > (http://www.xymon.com/xymon/help/install.html) but I can not really<br />
> >> > understand what changes I have to make. It says on the link that I have<br />
> >> > to<br />
> >> > make the necessary additions to the apache configuration in<br />
> >> > ~/server/etc/xymon-apache.conf. What lines do I have to add/change and<br />
> >> > where<br />
> >> > can I find this file?<br />
> >> ><br />
> >> ><br />
> >> ><br />
> >> > As you can understand my apache knowledge is limited, I only installed<br />
> >> > it so<br />
> >> > I can run Xymon. Could someone please help me?<br />
> >> ><br />
> >> ><br />
> >> ><br />
> >> > Many thanks<br />
> >> ><br />
> >> > Yanni<br />
> >> ><br />
> >> ><br />
> >> >
</div>
</body>
</html>