Xymon Mailing List Archive search

Xymon Digest, Vol 8, Issue 20

14 messages in this thread

list Yanni · Mon, 26 Sep 2011 13:02:48 +0200 (CEST) ·
Hi everyone
 
I am junior sysadmin at a college and after a few failed attempts I successfully
installed Xymon. No errors appeared after running 'make' and 'make install'.
 
At the moment I am trying to configure my web server(Apache/2.2.3 ) (which is
located on the same machine as xymon) and I am following the instructions on the
"installing Xymon" link (http://www.xymon.com/xymon/help/install.html) but I can
not really understand what changes I have to make. It says on the link that I
have to make the necessary additions to the apache configuration in
~/server/etc/xymon-apache.conf. What lines do I have to add/change and where can
I find this file?
 
As you can understand my apache knowledge is limited, I only installed it so I
can run Xymon. Could someone please help me?
 
Many thanks
Yanni


 

On September 26, 2011 at 12:00 PM xymon-request at xymon.com wrote:
Send Xymon mailing list submissions to

To subscribe or unsubscribe via the World Wide Web, visit
or, via email, send a message with subject or body 'help' to

You can reach the person managing the list at

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Xymon digest..."


Today's Topics:

    1. Re: Alert based on ping response time (Vernon Everett)
    2. Re: 4.3.5 compile problems Solaris 10 x86 (Roland Soderstrom)
    3. Re: monitoring mysql with xymon (Jeremy Laidman)
    4. Re: Alert based on ping response time (Jeremy Laidman)
    5. Re: Cannot Load Host Data (Raul GN)


Message: 1
Date: Mon, 26 Sep 2011 11:14:21 +0800
From: Vernon Everett <user-b3f8dacb72c8@xymon.invalid>
To: Ryan Novosielski <user-ae4522577e16@xymon.invalid>
Cc: "xymon at xymon.com" <xymon at xymon.com>
Subject: Re: [Xymon] Alert based on ping response time
Message-ID:
         <CAGo4kcYbTbL9B4Xuo-bmuF3Vo4WboFN37JLnxz5QmqJ7Jk=user-894c51d51a9c@xymon.invalid>
Content-Type: text/plain; charset="iso-8859-1"

This is relatively easy to do in a script, but you would end up with a new
test.
Incorportating the time into the existing conn test is probably a task for
the likes of Henrik et al.

Regards
      Vernon


On 23 September 2011 22:59, Ryan Novosielski <user-ae4522577e16@xymon.invalid> wrote:
Anyone have any experience with this at all?

On 09/21/11, *Ryan Novosielski * <user-ae4522577e16@xymon.invalid> wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I see this question has been asked on the list a few times, but I
haven't quite gotten the complete answers from any of the old threads...
so here goes:

I see that I get ping response time with my current setup. I appear to
be using fping already, so that recommendation is covered. The trouble
is, the data appears to be captured as a graph is being assembled using
it. Is there really no way to use this data for alerting as it stands
now? It appears as if more than 10ms in my environment represents a
problem and that setting it at 10 would probably yield no false alarms,
but I can see no way to turn red for any value other than a failed
ping/dropped packets.

Thanks for any info you can pass along.
- --
- ---- _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  | |Ryan Novosielski - Sr. Systems Programmer
|$&| |__| |  | |__/ | \| _| |user-ae4522577e16@xymon.invalid - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/CST-Academic Svcs. - ADMC 450, Newark
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk56VNEACgkQmb+gadEcsb7roACff5HzoFnfjHYsyLLf6mc23RbI
s30AnA1vn+duYt2S/J9DHIjunS3eFdqq
=mssT
-----END PGP SIGNATURE-----


--
---- _ _ _ _ ___ _ _ _
|Y#| | | |\/| | \ |\ | | |Ryan Novosielski - Sr. Systems Programmer
|$&| |__| | | |__/ | \| _| |user-ae4522577e16@xymon.invalid - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent.|IST/CST-Academic Svcs. - ADMC 450, Newark

list Pkc Mls · Mon, 26 Sep 2011 14:06:38 +0200 ·
Le 26/09/2011 13:02, Yanni a écrit :
Hi everyone
Hi Yanni,
quoted from Yanni

I am junior sysadmin at a college and after a few failed attempts I successfully installed Xymon. No errors appeared after running 'make' and 'make install'.

At the moment I am trying to configure my web server(Apache/2.2.3 ) (which is located on the same machine as xymon) and I am following the instructions on the "installing Xymon" link (http://www.xymon.com/xymon/help/install.html) but I can not really understand what changes I have to make. It says on the link that I have to make the necessary additions to the apache configuration in ~/server/etc/xymon-apache.conf. What lines do I have to add/change and where can I find this file?

As you can understand my apache knowledge is limited, I only installed it so I can run Xymon. Could someone please help me?
xymon-apache.conf is a file that contains all xymon directives (ie aliases to xymon, cgis, etc);
if your http conf directory contains a httpd.conf.d, you can copy the file to httpd.conf.d/xymon-apache.conf and restart apache.
you should be able to see the http://myserver/xymon/ page.

hope this helps.
Many thanks

Yanni

list Alex Levin · Mon, 26 Sep 2011 15:17:14 -0700 ·
Yanni,

You need to include xymon-apache.conf file in your httpd.conf, it's
location depends on the system you are using and  on how the Apache
server was installed ( from repository or compiled )
  but before  - make sure that  xymonpasswd  ( and probably
xymongroups ) files are created. ( read the config file :) )

Actually -  it is a good idea to understand syntax of Apache config
files (  at least check directives used in xymon config on
http://httpd.apache.org/docs/2.2/ ) ...

Also, I have some notes on installing xymon in AWS ( amazon ) cloud
that could be useful for you -
http://www.abristech.net/2011/09/xymon-monitoring-from-cloud.html  as
well


--
Alex


On Mon, Sep 26, 2011 at 4:02 AM, Yanni
quoted from Pkc Mls
<user-04b379562e0f@xymon.invalid> wrote:
Hi everyone


I am junior sysadmin at a college and after a few failed attempts I
successfully installed Xymon. No errors appeared after running 'make' and
'make install'.


At the moment I am trying to configure my web server(Apache/2.2.3 ) (which
is located on the same machine as xymon) and I am following the instructions
on the "installing Xymon" link
(http://www.xymon.com/xymon/help/install.html) but I can not really
understand what changes I have to make. It says on the link that I have to
make the necessary additions to the apache configuration in
~/server/etc/xymon-apache.conf. What lines do I have to add/change and where
can I find this file?


As you can understand my apache knowledge is limited, I only installed it so
I can run Xymon. Could someone please help me?


Many thanks

Yanni

list Yanni · Tue, 27 Sep 2011 18:13:46 +0200 (CEST) ·
Hi Alex
 
Please allow me to mention what I have done so far.
 
All xymon related directores (cgi-bin, cgi-secure, client, data, server,
webpages, xymon-cgi, xymon-seccgi) are inside
/opt/xymon.
 
After searching about configuring apache online, I found out that in order for
Apache to execute CGI scripts
I need to edit the "access.conf" file by adding a section like this:
 
<Directory /opt/xymon/cgi-bin>
Options ExecCGI
AddHandler cgi-script   .cgi   .pl
</Directory>
 
I did that. Next I read that I should create a special location called alias to
the actual CGI directory and then edit my "httpd.conf" file and add the line
below:


'ScriptAlias /cgi-bin/  /opt/xymon/cgi-bin/'
 
I've done that as well.
 
Next I followed your instructions on the link you send me.
I run:


'htpasswd -c /etc/httpd/xymonpasswd  admin' and entered password.
 
I finally found "xymon-apache.conf" and copied it to /etc/httpd/conf.d/
 
but I am a bit confused about the 'sed' command.
 
Is the directory at the end stops at 'httpd'?
 
Many thanks
Yanni
quoted from Alex Levin
 

On September 27, 2011 at 12:17 AM Alex Levin <user-4da80e0ba39d@xymon.invalid> wrote:
Yanni,

You need to include xymon-apache.conf file in your httpd.conf, it's
location depends on the system you are using and  on how the Apache
server was installed ( from repository or compiled )
   but before  - make sure that  xymonpasswd  ( and probably
xymongroups ) files are created. ( read the config file :) )

Actually -  it is a good idea to understand syntax of Apache config
files (  at least check directives used in xymon config on
http://httpd.apache.org/docs/2.2/ ) ...

Also, I have some notes on installing xymon in AWS ( amazon ) cloud
that could be useful for you -
http://www.abristech.net/2011/09/xymon-monitoring-from-cloud.html  as
well


--
Alex


On Mon, Sep 26, 2011 at 4:02 AM, Yanni
<user-04b379562e0f@xymon.invalid> wrote:
Hi everyone


I am junior sysadmin at a college and after a few failed attempts I
successfully installed Xymon. No errors appeared after running 'make' and
'make install'.


At the moment I am trying to configure my web server(Apache/2.2.3 ) (which
is located on the same machine as xymon) and I am following the instructions
on the "installing Xymon" link
(http://www.xymon.com/xymon/help/install.html) but I can not really
understand what changes I have to make. It says on the link that I have to
make the necessary additions to the apache configuration in
~/server/etc/xymon-apache.conf. What lines do I have to add/change and where
can I find this file?


As you can understand my apache knowledge is limited, I only installed it so
I can run Xymon. Could someone please help me?


Many thanks

Yanni

list Alex Levin · Tue, 27 Sep 2011 19:50:46 -0700 ·
Yanni,

All directives for xymon related apache directories ( including cgi-*
) are already included in xymon-apache.conf, so you need just to make
sure that the file itself is included into main apache config (
httpd.conf )

if you placed xymonpasswd into /etc/httpd/ folder - you need to edit
xymon-apache.conf file and modify location of the file.
Also - if not using groups for apache authentication - remove or
comment corresponding lines from xymon-apache.conf.

When done - check  syntax of the config ( apachectl -t ) and restart
apache ( apachectl restart )  using root account.
Under user xymon - start server ( in your case
"/opt/xymon/server/xymon.sh start"  )

if everything is OK - you should be able to see something at
http://YOURWEBHOST/xymon/


If something is not working - check log files ( apache or xymon )

---
Alex

On Tue, Sep 27, 2011 at 9:13 AM, Yanni
quoted from Yanni
<user-04b379562e0f@xymon.invalid> wrote:
Hi Alex


Please allow me to mention what I have done so far.


All xymon related directores (cgi-bin, cgi-secure, client, data, server,
webpages, xymon-cgi, xymon-seccgi) are inside

/opt/xymon.


After searching about configuring apache online, I found out that in order
for Apache to execute CGI scripts

I need to edit the "access.conf" file by adding a section like this:


<Directory /opt/xymon/cgi-bin>
Options ExecCGI
AddHandler cgi-script   .cgi   .pl
</Directory>


I did that. Next I read that I should create a special location called alias
to the actual CGI directory and then edit my "httpd.conf" file and add the
line below:

'ScriptAlias /cgi-bin/  /opt/xymon/cgi-bin/'


I've done that as well.


Next I followed your instructions on the link you send me.

I run:

'htpasswd -c /etc/httpd/xymonpasswd  admin' and entered password.


I finally found "xymon-apache.conf" and copied it to /etc/httpd/conf.d/


but I am a bit confused about the 'sed' command.


Is the directory at the end stops at 'httpd'?


Many thanks

Yanni


On September 27, 2011 at 12:17 AM Alex Levin <user-4da80e0ba39d@xymon.invalid> wrote:
Yanni,

You need to include xymon-apache.conf file in your httpd.conf, it's
location depends on the system you are using and  on how the Apache
server was installed ( from repository or compiled )
   but before  - make sure that  xymonpasswd  ( and probably
xymongroups ) files are created. ( read the config file :) )

Actually -  it is a good idea to understand syntax of Apache config
files (  at least check directives used in xymon config on
http://httpd.apache.org/docs/2.2/ ) ...

Also, I have some notes on installing xymon in AWS ( amazon ) cloud
that could be useful for you -
http://www.abristech.net/2011/09/xymon-monitoring-from-cloud.html  as
well


--
Alex


On Mon, Sep 26, 2011 at 4:02 AM, Yanni
<user-04b379562e0f@xymon.invalid> wrote:
Hi everyone


I am junior sysadmin at a college and after a few failed attempts I
successfully installed Xymon. No errors appeared after running 'make'
and
'make install'.


At the moment I am trying to configure my web server(Apache/2.2.3 )
(which
is located on the same machine as xymon) and I am following the
instructions
on the "installing Xymon" link
(http://www.xymon.com/xymon/help/install.html) but I can not really
understand what changes I have to make. It says on the link that I have
to
make the necessary additions to the apache configuration in
~/server/etc/xymon-apache.conf. What lines do I have to add/change and
where
can I find this file?


As you can understand my apache knowledge is limited, I only installed
it so
I can run Xymon. Could someone please help me?


Many thanks

Yanni

list Yanni · Wed, 5 Oct 2011 13:00:00 +0200 (CEST) ·
Hello
 
I got busy the last few days and didn't have the chance to look
at your suggestions. If I still can't make it work I will re-install.
 
Thanks a lot for your time Alex.
quoted from Alex Levin


 

On September 28, 2011 at 4:50 AM Alex Levin <user-4da80e0ba39d@xymon.invalid> wrote:
Yanni,

All directives for xymon related apache directories ( including cgi-*
) are already included in xymon-apache.conf, so you need just to make
sure that the file itself is included into main apache config (
httpd.conf )

if you placed xymonpasswd into /etc/httpd/ folder - you need to edit
xymon-apache.conf file and modify location of the file.
Also - if not using groups for apache authentication - remove or
comment corresponding lines from xymon-apache.conf.

When done - check  syntax of the config ( apachectl -t ) and restart
apache ( apachectl restart )  using root account.
Under user xymon - start server ( in your case
"/opt/xymon/server/xymon.sh start"  )

if everything is OK - you should be able to see something at
http://YOURWEBHOST/xymon/


If something is not working - check log files ( apache or xymon )

---
Alex

On Tue, Sep 27, 2011 at 9:13 AM, Yanni
<user-04b379562e0f@xymon.invalid> wrote:
Hi Alex


Please allow me to mention what I have done so far.


All xymon related directores (cgi-bin, cgi-secure, client, data, server,
webpages, xymon-cgi, xymon-seccgi) are inside

/opt/xymon.


After searching about configuring apache online, I found out that in order
for Apache to execute CGI scripts

I need to edit the "access.conf" file by adding a section like this:


<Directory /opt/xymon/cgi-bin>
Options ExecCGI
AddHandler cgi-script   .cgi   .pl
</Directory>


I did that. Next I read that I should create a special location called alias
to the actual CGI directory and then edit my "httpd.conf" file and add the
line below:

'ScriptAlias /cgi-bin/  /opt/xymon/cgi-bin/'


I've done that as well.


Next I followed your instructions on the link you send me.

I run:

'htpasswd -c /etc/httpd/xymonpasswd  admin' and entered password.


I finally found "xymon-apache.conf" and copied it to /etc/httpd/conf.d/


but I am a bit confused about the 'sed' command.


Is the directory at the end stops at 'httpd'?


Many thanks

Yanni


On September 27, 2011 at 12:17 AM Alex Levin <user-4da80e0ba39d@xymon.invalid> wrote:
Yanni,

You need to include xymon-apache.conf file in your httpd.conf, it's
location depends on the system you are using and  on how the Apache
server was installed ( from repository or compiled )
   but before  - make sure that  xymonpasswd  ( and probably
xymongroups ) files are created. ( read the config file :) )

Actually -  it is a good idea to understand syntax of Apache config
files (  at least check directives used in xymon config on
http://httpd.apache.org/docs/2.2/ ) ...

Also, I have some notes on installing xymon in AWS ( amazon ) cloud
that could be useful for you -
http://www.abristech.net/2011/09/xymon-monitoring-from-cloud.html  as
well


--
Alex


On Mon, Sep 26, 2011 at 4:02 AM, Yanni
<user-04b379562e0f@xymon.invalid> wrote:
Hi everyone


I am junior sysadmin at a college and after a few failed attempts I
successfully installed Xymon. No errors appeared after running 'make'
and
'make install'.


At the moment I am trying to configure my web server(Apache/2.2.3 )
(which
is located on the same machine as xymon) and I am following the
instructions
on the "installing Xymon" link
(http://www.xymon.com/xymon/help/install.html) but I can not really
understand what changes I have to make. It says on the link that I have
to
make the necessary additions to the apache configuration in
~/server/etc/xymon-apache.conf. What lines do I have to add/change and
where
can I find this file?


As you can understand my apache knowledge is limited, I only installed
it so
I can run Xymon. Could someone please help me?


Many thanks

Yanni

list Yanni · Thu, 6 Oct 2011 13:12:43 +0200 (CEST) ·
Hi
 
 I re-installed Xymon but I still can't get anything on the web browser.

I get "Not Found. The requested URL /xymon was not found on this server"

Run 'Make & make install' again with no errors.

1) Added the content of file 'xymon-apache.conf' in 'httpd.conf'.
2) Created 'xymonpasswd' using '.htaccess' and placed it in /etc/httpd
directory.
3) Edited 'xymon-apache.conf' file and modify location of xymonpasswd.
4) Commented out '#AuthGroupFile /opt/xymon/server/etc/xymongroups' in
httpd.conf because I am not going to use it.
   In fact I haven't figured out how to use it at the moment, so I will leave
for another time.

When I checked the apache syntax (apachectl -t), I got the following warnings:
 
*)[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.

*)[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.

*)[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.

*)Syntax OK
 

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
2011-10-06 11:09:38 Loading hostnames
2011-10-06 11:09:38 Loading saved state
2011-10-06 11:09:38 Setting up network listener on 0.0.0.0:1984
2011-10-06 11:09:38 Setting up signal handlers
2011-10-06 11:09:38 Setting up xymond channels
2011-10-06 11:09:38 Setting up logfiles

I can not see why it can't open 'tasks.cfg'.
The file is there and its owner is 'xymon' (created when asked during
installation)
 
 
My 'alert.log' looks like this:
 
Cannot open configuration file /opt/xymon/server/etc/alerts.cfg: No such file or
directory
2011-10-05 12:11:46 Cannot open configuration file
/opt/xymon/server/etc/holidays.cfg
2011-10-05 12:12:46 Cannot open configuration file
/opt/xymon/server/etc/alerts.cfg: No such file or directory
2011-10-05 12:12:46 Cannot open configuration file
/opt/xymon/server/etc/holidays.cfg
2011-10-05 12:13:46 Cannot open configuration file
/opt/xymon/server/etc/alerts.cfg: No such file or directory
2011-10-05 12:13:46 Cannot open configuration file
/opt/xymon/server/etc/holidays.cfg
2011-10-05 12:14:46 Cannot open configuration file
/opt/xymon/server/etc/alerts.cfg: No such file or directory
2011-10-05 12:14:46 Cannot open configuration file
/opt/xymon/server/etc/holidays.cfg
2011-10-05 12:15:46 Cannot open configuration file
/opt/xymon/server/etc/alerts.cfg: No such file or directory
2011-10-05 12:15:46 Cannot open configuration file
/opt/xymon/server/etc/holidays.cfg
2011-10-05 12:16:46 Cannot open configuration file
/opt/xymon/server/etc/alerts.cfg: No such file or directory
2011-10-05 12:16:46 Cannot open configuration file
/opt/xymon/server/etc/holidays.cfg
2011-10-05 12:17:46 Cannot open configuration file
/opt/xymon/server/etc/alerts.cfg: No such file or directory
2011-10-05 12:17:46 Cannot open configuration file
/opt/xymon/server/etc/holidays.cfg
2011-10-05 12:18:46 Cannot open configuration file
/opt/xymon/server/etc/alerts.cfg: No such file or directory
2011-10-05 12:18:46 Cannot open configuration file
/opt/xymon/server/etc/holidays.cfg
2011-10-05 12:19:46 Cannot open configuration file
/opt/xymon/server/etc/alerts.cfg: No such file or directory
2011-10-05 12:19:46 Cannot open configuration file
/opt/xymon/server/etc/holidays.cfg
2011-10-05 12:20:46 Cannot open configuration file
/opt/xymon/server/etc/alerts.cfg: No such file or directory
2011-10-05 12:20:46 Cannot open configuration file
/opt/xymon/server/etc/holidays.cfg
2011-10-05 12:20:56 Cannot open configuration file
/opt/xymon/server/etc/alerts.cfg: No such file or directory
2011-10-05 12:20:56 Cannot open configuration file
/opt/xymon/server/etc/holidays.cfg
2011-10-05 12:21:56 Cannot open configuration file
/opt/xymon/server/etc/alerts.cfg: No such file or directory
2011-10-05 12:21:56 Cannot open configuration file
/opt/xymon/server/etc/holidays.cfg
2011-10-05 12:22:56 Cannot open configuration file
/opt/xymon/server/etc/alerts.cfg: No such file or directory
2011-10-05 12:22:56 Cannot open configuration file
/opt/xymon/server/etc/holidays.cfg

I can confirm that all the above files are located in /opt/xymon/server/etc
directory.
The owner is 'apache' and they belong to the group 'xymon', except
'critical.cfg' which also owned by 'apache'.
 

My 'xymond.log' looks like this:

2011-09-26 11:25:31 Setup complete
2011-09-26 15:15:23 Setup complete
2011-09-29 12:13:41 Setup complete
2011-10-05 12:15:56 Config file hosts.cfg not found
2011-10-05 12:21:02 Cannot open checkpoint file
/opt/xymon/server/tmp/xymond.chk.1317813662 : No such file or directory
2011-10-05 12:21:04 Cannot load host data
2011-10-05 12:23:34 Setup complete
2011-10-05 12:24:26 Setup complete
2011-10-06 10:52:43 Setup complete
2011-10-06 11:09:38 Setup complete
 

My 'xymongen.log' looks like this:

2011-09-26 11:25:36 xymond status-board not available, code 0
2011-09-26 11:25:36 Failed to load current Xymon status, aborting page-update
 
 
Sorry for the long message but if you have any more suggestions, please let me
know.

Many thanks
Yanni
quoted from Alex Levin

 

On September 28, 2011 at 4:50 AM Alex Levin <user-4da80e0ba39d@xymon.invalid> wrote:
Yanni,

All directives for xymon related apache directories ( including cgi-*
) are already included in xymon-apache.conf, so you need just to make
sure that the file itself is included into main apache config (
httpd.conf )

if you placed xymonpasswd into /etc/httpd/ folder - you need to edit
xymon-apache.conf file and modify location of the file.
Also - if not using groups for apache authentication - remove or
comment corresponding lines from xymon-apache.conf.

When done - check  syntax of the config ( apachectl -t ) and restart
apache ( apachectl restart )  using root account.
Under user xymon - start server ( in your case
"/opt/xymon/server/xymon.sh start"  )

if everything is OK - you should be able to see something at
http://YOURWEBHOST/xymon/


If something is not working - check log files ( apache or xymon )

---
Alex

On Tue, Sep 27, 2011 at 9:13 AM, Yanni
<user-04b379562e0f@xymon.invalid> wrote:
Hi Alex


Please allow me to mention what I have done so far.


All xymon related directores (cgi-bin, cgi-secure, client, data, server,
webpages, xymon-cgi, xymon-seccgi) are inside

/opt/xymon.


After searching about configuring apache online, I found out that in order
for Apache to execute CGI scripts

I need to edit the "access.conf" file by adding a section like this:


<Directory /opt/xymon/cgi-bin>
Options ExecCGI
AddHandler cgi-script   .cgi   .pl
</Directory>


I did that. Next I read that I should create a special location called alias
to the actual CGI directory and then edit my "httpd.conf" file and add the
line below:

'ScriptAlias /cgi-bin/  /opt/xymon/cgi-bin/'


I've done that as well.


Next I followed your instructions on the link you send me.

I run:

'htpasswd -c /etc/httpd/xymonpasswd  admin' and entered password.


I finally found "xymon-apache.conf" and copied it to /etc/httpd/conf.d/


but I am a bit confused about the 'sed' command.


Is the directory at the end stops at 'httpd'?


Many thanks

Yanni


On September 27, 2011 at 12:17 AM Alex Levin <user-4da80e0ba39d@xymon.invalid> wrote:
Yanni,

You need to include xymon-apache.conf file in your httpd.conf, it's
location depends on the system you are using and  on how the Apache
server was installed ( from repository or compiled )
   but before  - make sure that  xymonpasswd  ( and probably
xymongroups ) files are created. ( read the config file :) )

Actually -  it is a good idea to understand syntax of Apache config
files (  at least check directives used in xymon config on
http://httpd.apache.org/docs/2.2/ ) ...

Also, I have some notes on installing xymon in AWS ( amazon ) cloud
that could be useful for you -
http://www.abristech.net/2011/09/xymon-monitoring-from-cloud.html  as
well


--
Alex


On Mon, Sep 26, 2011 at 4:02 AM, Yanni
<user-04b379562e0f@xymon.invalid> wrote:
Hi everyone


I am junior sysadmin at a college and after a few failed attempts I
successfully installed Xymon. No errors appeared after running 'make'
and
'make install'.


At the moment I am trying to configure my web server(Apache/2.2.3 )
(which
is located on the same machine as xymon) and I am following the
instructions
on the "installing Xymon" link
(http://www.xymon.com/xymon/help/install.html) but I can not really
understand what changes I have to make. It says on the link that I have
to
make the necessary additions to the apache configuration in
~/server/etc/xymon-apache.conf. What lines do I have to add/change and
where
can I find this file?


As you can understand my apache knowledge is limited, I only installed
it so
I can run Xymon. Could someone please help me?


Many thanks

Yanni

list Carl Melgaard · Thu, 6 Oct 2011 14:00:43 +0200 ·
Hi,

Usually you'll need to append a slash to the URL - ie. http://server/xymon/ - otherwise you try to hit a file named xymon, which doesn't exist.

/melgaard
quoted from Yanni

Fra: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] På vegne af Yanni
Sendt: 6. oktober 2011 13:13
Til: Alex Levin; Yanni
Cc: xymon at xymon.com
Emne: Re: [Xymon] Xymon Digest, Vol 8, Issue 20


Hi


  I re-installed Xymon but I still can't get anything on the web browser.

I get "Not Found. The requested URL /xymon was not found on this server"

Run 'Make & make install' again with no errors.

1) Added the content of file 'xymon-apache.conf' in 'httpd.conf'.
2) Created 'xymonpasswd' using '.htaccess' and placed it in /etc/httpd directory.
3) Edited 'xymon-apache.conf' file and modify location of xymonpasswd.
4) Commented out '#AuthGroupFile /opt/xymon/server/etc/xymongroups' in httpd.conf because I am not going to use it.

   In fact I haven't figured out how to use it at the moment, so I will leave for another time.

When I checked the apache syntax (apachectl -t), I got the following warnings:

*)[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.

*)[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.

*)[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.

*)Syntax OK


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
2011-10-06 11:09:38 Loading hostnames
2011-10-06 11:09:38 Loading saved state
2011-10-06 11:09:38 Setting up network listener on 0.0.0.0:1984
2011-10-06 11:09:38 Setting up signal handlers
2011-10-06 11:09:38 Setting up xymond channels
2011-10-06 11:09:38 Setting up logfiles

I can not see why it can't open 'tasks.cfg'.

The file is there and its owner is 'xymon' (created when asked during installation)


My 'alert.log' looks like this:


Cannot open configuration file /opt/xymon/server/etc/alerts.cfg: No such file or directory
2011-10-05 12:11:46 Cannot open configuration file /opt/xymon/server/etc/holidays.cfg
2011-10-05 12:12:46 Cannot open configuration file /opt/xymon/server/etc/alerts.cfg: No such file or directory
2011-10-05 12:12:46 Cannot open configuration file /opt/xymon/server/etc/holidays.cfg
2011-10-05 12:13:46 Cannot open configuration file /opt/xymon/server/etc/alerts.cfg: No such file or directory
2011-10-05 12:13:46 Cannot open configuration file /opt/xymon/server/etc/holidays.cfg
2011-10-05 12:14:46 Cannot open configuration file /opt/xymon/server/etc/alerts.cfg: No such file or directory
2011-10-05 12:14:46 Cannot open configuration file /opt/xymon/server/etc/holidays.cfg
2011-10-05 12:15:46 Cannot open configuration file /opt/xymon/server/etc/alerts.cfg: No such file or directory
2011-10-05 12:15:46 Cannot open configuration file /opt/xymon/server/etc/holidays.cfg
2011-10-05 12:16:46 Cannot open configuration file /opt/xymon/server/etc/alerts.cfg: No such file or directory
2011-10-05 12:16:46 Cannot open configuration file /opt/xymon/server/etc/holidays.cfg
2011-10-05 12:17:46 Cannot open configuration file /opt/xymon/server/etc/alerts.cfg: No such file or directory
2011-10-05 12:17:46 Cannot open configuration file /opt/xymon/server/etc/holidays.cfg
2011-10-05 12:18:46 Cannot open configuration file /opt/xymon/server/etc/alerts.cfg: No such file or directory
2011-10-05 12:18:46 Cannot open configuration file /opt/xymon/server/etc/holidays.cfg
2011-10-05 12:19:46 Cannot open configuration file /opt/xymon/server/etc/alerts.cfg: No such file or directory
2011-10-05 12:19:46 Cannot open configuration file /opt/xymon/server/etc/holidays.cfg
2011-10-05 12:20:46 Cannot open configuration file /opt/xymon/server/etc/alerts.cfg: No such file or directory
2011-10-05 12:20:46 Cannot open configuration file /opt/xymon/server/etc/holidays.cfg
2011-10-05 12:20:56 Cannot open configuration file /opt/xymon/server/etc/alerts.cfg: No such file or directory
2011-10-05 12:20:56 Cannot open configuration file /opt/xymon/server/etc/holidays.cfg
2011-10-05 12:21:56 Cannot open configuration file /opt/xymon/server/etc/alerts.cfg: No such file or directory
2011-10-05 12:21:56 Cannot open configuration file /opt/xymon/server/etc/holidays.cfg
2011-10-05 12:22:56 Cannot open configuration file /opt/xymon/server/etc/alerts.cfg: No such file or directory
2011-10-05 12:22:56 Cannot open configuration file /opt/xymon/server/etc/holidays.cfg

I can confirm that all the above files are located in /opt/xymon/server/etc directory.
The owner is 'apache' and they belong to the group 'xymon', except 'critical.cfg' which also owned by 'apache'.


My 'xymond.log' looks like this:

2011-09-26 11:25:31 Setup complete
2011-09-26 15:15:23 Setup complete
2011-09-29 12:13:41 Setup complete
2011-10-05 12:15:56 Config file hosts.cfg not found
2011-10-05 12:21:02 Cannot open checkpoint file /opt/xymon/server/tmp/xymond.chk.1317813662 : No such file or directory
2011-10-05 12:21:04 Cannot load host data
2011-10-05 12:23:34 Setup complete
2011-10-05 12:24:26 Setup complete
2011-10-06 10:52:43 Setup complete
2011-10-06 11:09:38 Setup complete


My 'xymongen.log' looks like this:

2011-09-26 11:25:36 xymond status-board not available, code 0
2011-09-26 11:25:36 Failed to load current Xymon status, aborting page-update


Sorry for the long message but if you have any more suggestions, please let me know.

Many thanks
Yanni


On September 28, 2011 at 4:50 AM Alex Levin <user-4da80e0ba39d@xymon.invalid> wrote:
Yanni,

All directives for xymon related apache directories ( including cgi-*
) are already included in xymon-apache.conf, so you need just to make
sure that the file itself is included into main apache config (
httpd.conf )

if you placed xymonpasswd into /etc/httpd/ folder - you need to edit
xymon-apache.conf file and modify location of the file.
Also - if not using groups for apache authentication - remove or
comment corresponding lines from xymon-apache.conf.

When done - check  syntax of the config ( apachectl -t ) and restart
apache ( apachectl restart )  using root account.
Under user xymon - start server ( in your case
"/opt/xymon/server/xymon.sh start"  )

if everything is OK - you should be able to see something at
http://YOURWEBHOST/xymon/


If something is not working - check log files ( apache or xymon )

---
Alex

On Tue, Sep 27, 2011 at 9:13 AM, Yanni
<user-04b379562e0f@xymon.invalid> wrote:
Hi Alex


Please allow me to mention what I have done so far.


All xymon related directores (cgi-bin, cgi-secure, client, data, server,
webpages, xymon-cgi, xymon-seccgi) are inside

/opt/xymon.


After searching about configuring apache online, I found out that in order
for Apache to execute CGI scripts

I need to edit the "access.conf" file by adding a section like this:


<Directory /opt/xymon/cgi-bin>
Options ExecCGI
AddHandler cgi-script   .cgi   .pl
</Directory>


I did that. Next I read that I should create a special location called alias
to the actual CGI directory and then edit my "httpd.conf" file and add the
line below:

'ScriptAlias /cgi-bin/  /opt/xymon/cgi-bin/'


I've done that as well.


Next I followed your instructions on the link you send me.

I run:

'htpasswd -c /etc/httpd/xymonpasswd  admin' and entered password.


I finally found "xymon-apache.conf" and copied it to /etc/httpd/conf.d/


but I am a bit confused about the 'sed' command.


Is the directory at the end stops at 'httpd'?


Many thanks

Yanni


On September 27, 2011 at 12:17 AM Alex Levin <user-4da80e0ba39d@xymon.invalid> wrote:
Yanni,

You need to include xymon-apache.conf file in your httpd.conf, it's
location depends on the system you are using and  on how the Apache
server was installed ( from repository or compiled )
  but before  - make sure that  xymonpasswd  ( and probably
xymongroups ) files are created. ( read the config file :) )

Actually -  it is a good idea to understand syntax of Apache config
files (  at least check directives used in xymon config on
http://httpd.apache.org/docs/2.2/ ) ...

Also, I have some notes on installing xymon in AWS ( amazon ) cloud
that could be useful for you -
http://www.abristech.net/2011/09/xymon-monitoring-from-cloud.html  as
well


--
Alex


On Mon, Sep 26, 2011 at 4:02 AM, Yanni
<user-04b379562e0f@xymon.invalid> wrote:
Hi everyone


I am junior sysadmin at a college and after a few failed attempts I
successfully installed Xymon. No errors appeared after running 'make'
and
'make install'.


At the moment I am trying to configure my web server(Apache/2.2.3 )
(which
is located on the same machine as xymon) and I am following the
instructions
on the "installing Xymon" link
(http://www.xymon.com/xymon/help/install.html) but I can not really
understand what changes I have to make. It says on the link that I have
to
make the necessary additions to the apache configuration in
~/server/etc/xymon-apache.conf. What lines do I have to add/change and
where
can I find this file?


As you can understand my apache knowledge is limited, I only installed
it so
I can run Xymon. Could someone please help me?


Many thanks

Yanni

list Jeremy Laidman · Tue, 11 Oct 2011 17:00:32 +1100 ·
On Thu, Oct 6, 2011 at 10:12 PM, Yanni
quoted from Carl Melgaard
<user-04b379562e0f@xymon.invalid>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
list Yanni · Tue, 11 Oct 2011 11:55:19 +0200 (CEST) ·
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
quoted from Jeremy Laidman
 

On October 11, 2011 at 8:00 AM Jeremy Laidman <user-71895fb2e44c@xymon.invalid> wrote:
On Thu, Oct 6, 2011 at 10:12 PM, Yanni
<user-04b379562e0f@xymon.invalid>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
list Alex Levin · Wed, 12 Oct 2011 22:16:47 -0700 ·
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
quoted from Yanni
<user-04b379562e0f@xymon.invalid> 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 <user-71895fb2e44c@xymon.invalid>
wrote:
On Thu, Oct 6, 2011 at 10:12 PM, Yanni
<user-04b379562e0f@xymon.invalid>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
list Jeremy Laidman · Fri, 14 Oct 2011 11:58:09 +1100 ·
On Tue, Oct 11, 2011 at 8:55 PM, Yanni
quoted from Alex Levin
<user-04b379562e0f@xymon.invalid> wrote:
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.
Yes, this looks like an Apache "Alias" problem.  What does this show:

 egrep -i '^[^#].*(include|alias)' /etc/httpd/*.conf /etc/httpd/*/*.conf

Cheers
Jeremy
list Yanni · Fri, 14 Oct 2011 11:42:01 +0200 (CEST) ·
It shows:


egrep: /etc/httpd/*.conf: No such file or directory
/etc/httpd/conf.d/squid.conf:ScriptAlias /Squid/cgi-bin/cachemgr.cgi
/usr/lib/squid/cachemgr.cgi
/etc/httpd/conf.d/xymon-apache.conf:    Options Indexes FollowSymLinks Includes
MultiViews
/etc/httpd/conf.d/xymon-apache.conf:ScriptAlias /opt/xymon/xymon-cgi/
"/opt/xymon/cgi-bin/"
/etc/httpd/conf.d/xymon-apache.conf:    Options ExecCGI Includes
/etc/httpd/conf.d/xymon-apache.conf:ScriptAlias /opt/xymon/xymon-seccgi/
"/opt/xymon/cgi-secure/"
/etc/httpd/conf.d/xymon-apache.conf:    Options ExecCGI Includes
/etc/httpd/conf/httpd.conf:LoadModule authn_alias_module
modules/mod_authn_alias.so
/etc/httpd/conf/httpd.conf:LoadModule include_module modules/mod_include.so
/etc/httpd/conf/httpd.conf:LoadModule vhost_alias_module
modules/mod_vhost_alias.so
/etc/httpd/conf/httpd.conf:LoadModule alias_module modules/mod_alias.so
/etc/httpd/conf/httpd.conf:ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
/etc/httpd/conf/httpd.conf:AddOutputFilter INCLUDES .shtml
/etc/httpd/conf/httpd.conf:<IfModule mod_include.c>
/etc/httpd/conf/httpd.conf:        Options IncludesNoExec
/etc/httpd/conf/httpd.conf:        AddOutputFilter Includes html
/etc/httpd/conf/httpd.conf:    Options Indexes FollowSymLinks Includes
MultiViews
/etc/httpd/conf/httpd.conf:ScriptAlias /opt/xymon/xymon-cgi/
"/opt/xymon/cgi-bin/"
/etc/httpd/conf/httpd.conf:    Options ExecCGI Includes
/etc/httpd/conf/httpd.conf:ScriptAlias /opt/xymon/xymon-seccgi/
"/opt/xymon/cgi-secure/"
/etc/httpd/conf/httpd.conf:    Options ExecCGI Includes
quoted from Jeremy Laidman


 

On October 14, 2011 at 2:58 AM Jeremy Laidman <user-71895fb2e44c@xymon.invalid> wrote:
On Tue, Oct 11, 2011 at 8:55 PM, Yanni
<user-04b379562e0f@xymon.invalid> wrote:
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.
Yes, this looks like an Apache "Alias" problem.  What does this show:

  egrep -i '^[^#].*(include|alias)' /etc/httpd/*.conf /etc/httpd/*/*.conf

Cheers
Jeremy
list Jeremy Laidman · Tue, 18 Oct 2011 11:35:03 +1100 ·
Yanni

Your egrep output doesn't show the "Alias" line 1011 of httpd.conf.
This is because my egrep was trying to be too clever and won't match
"Alias" at the start of a line.  The same would be true for "include"
directives.  Can you send what this shows:

  grep -i "alias" /etc/httpd/conf/*.conf
  grep -i "include" /etc/httpd/conf/*.conf

Is there a reason why you're using "/opt/xymon" in your URL path
instead of say "/xymon"?  My Alias command looks like this:

  Alias /xymon/ "/var/lib/xymon/www/"

I can't think why this would be a problem.  Just a curiosity.

From what you have shown, it seems you have defined ScriptAlias twice:
once in httpd.conf and once in xymon-apache.conf.  You should remove
all Xymon configuration from httpd.conf and instead let the settings
in xymon-apache.conf be taken by Apache when it includes the file.
You will have either "include *.conf" or "include xymon-apache.conf",
and so you don't need to add anything into httpd.conf.

Cheers
Jeremy