Xymon Mailing List Archive search

404 Not Found URL/xymon was not found on this server

18 messages in this thread

list David Diep · Wed, 11 Dec 2013 13:48:11 -0500 ·
Hi Everyone,

I'm very very new to XYMON, as a matter of fact, I just installed it 15 minutes ago. I thought I was cruising along quite nicely until I tested it. This is what I received:
Not Found
The requested URL /xymon was not found on this server.
Apache/2.2.15 (Red Hat) Server at 10.82.10.54 Port 80

Xymon is running, that I can confirm:

[xymon at lsypf01a ~]$ ./server/xymon.sh status
Xymon (xymonlaunch) running with PID 4826
[xymon at lsypf01a ~]$

Here is my xymon-apache.conf, I made changes from what I've read in the older subscription messages:

Alias /xymon/  "/home/xymon/server/www/"
<Directory "/home/xymon/server/www">
    Options Indexes FollowSymLinks Includes MultiViews
    Require all granted
</Directory>

ScriptAlias /xymon-cgi/ "/home/xymon/cgi-bin/"
<Directory "/home/xymon/cgi-bin">
    AllowOverride None
    Options ExecCGI Includes
    Require all granted
</Directory>

ScriptAlias /xymon-seccgi/ "/home/xymon/cgi-secure/"
<Directory "/home/xymon/cgi-secure">
    AllowOverride None
    Options ExecCGI Includes
    Require all granted

Various logs in /var/log/xymon:

Xymonlaunch.log:
2013-12-11 13:24:00 xymonlaunch starting
2013-12-11 13:24:00 Loading tasklist configuration from /home/xymon/server/etc/tasks.cfg
2013-12-11 13:24:00 Cannot open directory /home/xymon/server/etc/tasks.d
2013-12-11 13:24:00 Loading hostnames
2013-12-11 13:24:00 Loading saved state
2013-12-11 13:24:00 Setting up network listener on 0.0.0.0:1984
2013-12-11 13:24:00 Setting up signal handlers
2013-12-11 13:24:00 Setting up xymond channels
2013-12-11 13:24:00 Setting up logfiles

Rrd-data.log:
2013-12-11 13:34:13 Peer at 0.0.0.0:0 failed: Broken pipe
2013-12-11 13:34:13 Peer not up, flushing message queue
2013-12-11 13:34:13 exec() failed for child command xymond_rrd: No such file or directory
2013-12-11 13:34:13 Child process 5357 died: Exit status 1

David Diep


Look out for those in need this winter. When the temperature or wind chill is 32?F or below, the District issues a Hypothermia Alert. For assistance during an Alert, call the Shelter Hotline<http://dhs.dc.gov/page/hypothermia-alert-plan>; at X-XXX-XXX-XXXX or 311.
list Paul Root · Wed, 11 Dec 2013 19:03:51 +0000 ·
We just had this one.

You see that xymon is listening on 0.0.0.0:1984. You need to change you XYMONSERVERIP environment in xymonserver.cfg to the IP address of the server.  Also set XYMONSERVERHOSTNAME to the hostname and XZYMSRV to the ip address as well. Then restart xymon.

I'm assuming you did restart apache after you put the xymon-apache.conf into /etc/httpd/conf.d, right?
quoted from David Diep

From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Diep, David (OCTO-Contractor)
Sent: Wednesday, December 11, 2013 12:48 PM
To: xymon at xymon.com
Subject: [Xymon] 404 Not Found URL/xymon was not found on this server

Hi Everyone,

I'm very very new to XYMON, as a matter of fact, I just installed it 15 minutes ago. I thought I was cruising along quite nicely until I tested it. This is what I received:
Not Found
The requested URL /xymon was not found on this server.
Apache/2.2.15 (Red Hat) Server at 10.82.10.54 Port 80

Xymon is running, that I can confirm:

[xymon at lsypf01a ~]$ ./server/xymon.sh status
Xymon (xymonlaunch) running with PID 4826
[xymon at lsypf01a ~]$

Here is my xymon-apache.conf, I made changes from what I've read in the older subscription messages:

Alias /xymon/  "/home/xymon/server/www/"
<Directory "/home/xymon/server/www">
    Options Indexes FollowSymLinks Includes MultiViews
    Require all granted
</Directory>

ScriptAlias /xymon-cgi/ "/home/xymon/cgi-bin/"
<Directory "/home/xymon/cgi-bin">
    AllowOverride None
    Options ExecCGI Includes
    Require all granted
</Directory>

ScriptAlias /xymon-seccgi/ "/home/xymon/cgi-secure/"
<Directory "/home/xymon/cgi-secure">
    AllowOverride None
    Options ExecCGI Includes
    Require all granted

Various logs in /var/log/xymon:

Xymonlaunch.log:
2013-12-11 13:24:00 xymonlaunch starting
2013-12-11 13:24:00 Loading tasklist configuration from /home/xymon/server/etc/tasks.cfg
2013-12-11 13:24:00 Cannot open directory /home/xymon/server/etc/tasks.d
2013-12-11 13:24:00 Loading hostnames
2013-12-11 13:24:00 Loading saved state
2013-12-11 13:24:00 Setting up network listener on 0.0.0.0:1984
2013-12-11 13:24:00 Setting up signal handlers
2013-12-11 13:24:00 Setting up xymond channels
2013-12-11 13:24:00 Setting up logfiles

Rrd-data.log:
2013-12-11 13:34:13 Peer at 0.0.0.0:0 failed: Broken pipe
2013-12-11 13:34:13 Peer not up, flushing message queue
2013-12-11 13:34:13 exec() failed for child command xymond_rrd: No such file or directory
2013-12-11 13:34:13 Child process 5357 died: Exit status 1

David Diep


Look out for those in need this winter. When the temperature or wind chill is 32°F or below, the District issues a Hypothermia Alert. For assistance during an Alert, call the Shelter Hotline<http://dhs.dc.gov/page/hypothermia-alert-plan>; at X-XXX-XXX-XXXX or 311.
list Josh Luthman · Wed, 11 Dec 2013 14:04:15 -0500 ·
Did you restart httpd?

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
On Dec 11, 2013 1:59 PM, "Diep, David (OCTO-Contractor)" <user-ca44d68fd6e2@xymon.invalid>
quoted from Paul Root
wrote:
Hi Everyone,


I’m very very new to XYMON, as a matter of fact, I just installed it 15
minutes ago. I thought I was cruising along quite nicely until I tested it.
This is what I received:

*Not Found*

The requested URL /xymon was not found on this server.

*Apache/2.2.15 (Red Hat) Server at 10.82.10.54 Port 80*


Xymon is running, that I can confirm:


[xymon at lsypf01a ~]$ ./server/xymon.sh status

Xymon (xymonlaunch) running with PID 4826

[xymon at lsypf01a ~]$


Here is my xymon-apache.conf, I made changes from what I’ve read in the
older subscription messages:


Alias /xymon/  "/home/xymon/server/www/"

<Directory "/home/xymon/server/www">

    Options Indexes FollowSymLinks Includes MultiViews

    Require all granted

</Directory>


ScriptAlias /xymon-cgi/ "/home/xymon/cgi-bin/"

<Directory "/home/xymon/cgi-bin">

    AllowOverride None

    Options ExecCGI Includes

    Require all granted

</Directory>


ScriptAlias /xymon-seccgi/ "/home/xymon/cgi-secure/"

<Directory "/home/xymon/cgi-secure">

    AllowOverride None

    Options ExecCGI Includes

    Require all granted


Various logs in /var/log/xymon:


Xymonlaunch.log:

2013-12-11 13:24:00 xymonlaunch starting

2013-12-11 13:24:00 Loading tasklist configuration from
/home/xymon/server/etc/tasks.cfg

2013-12-11 13:24:00 Cannot open directory /home/xymon/server/etc/tasks.d

2013-12-11 13:24:00 Loading hostnames

2013-12-11 13:24:00 Loading saved state

2013-12-11 13:24:00 Setting up network listener on 0.0.0.0:1984

2013-12-11 13:24:00 Setting up signal handlers

2013-12-11 13:24:00 Setting up xymond channels

2013-12-11 13:24:00 Setting up logfiles


Rrd-data.log:

2013-12-11 13:34:13 Peer at 0.0.0.0:0 failed: Broken pipe

2013-12-11 13:34:13 Peer not up, flushing message queue

2013-12-11 13:34:13 exec() failed for child command xymond_rrd: No such
file or directory

2013-12-11 13:34:13 Child process 5357 died: Exit status 1


*David Diep*


Look out for those in need this winter. When the temperature or wind chill
is 32°F or below, the District issues a Hypothermia Alert. For assistance

during an Alert, call the Shelter Hotline<http://dhs.dc.gov/page/hypothermia-alert-plan>at *X-XXX-XXX-XXXX
<X-XXX-XXX-XXXX>* or *311*.

list Galen Johnson · Wed, 11 Dec 2013 14:06:52 -0500 ·
Is there actually any content under the /home/xymon/server/www directory?

=G=

On 12/11/2013 02:07 PM, Diep, David (OCTO-Contractor) wrote:
Josh,

 
Yep... I sure did. Right after I restarted xymon.

 
*From:*Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid]
*Sent:* Wednesday, December 11, 2013 2:04 PM
*To:* Diep, David (OCTO-Contractor)
*Cc:* xymon at xymon.com
*Subject:* Re: [Xymon] 404 Not Found URL/xymon was not found on this
quoted from Josh Luthman
server

 
Did you restart httpd?

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

On Dec 11, 2013 1:59 PM, "Diep, David (OCTO-Contractor)"
<user-ca44d68fd6e2@xymon.invalid <mailto:user-ca44d68fd6e2@xymon.invalid>> wrote:

Hi Everyone,

 
I'm very very new to XYMON, as a matter of fact, I just installed it
15 minutes ago. I thought I was cruising along quite nicely until I
tested it. This is what I received:

*Not Found*

The requested URL /xymon was not found on this server.


/Apache/2.2.15 (Red Hat) Server at 10.82.10.54 Port 80/

 
Xymon is running, that I can confirm:

 
[xymon at lsypf01a ~]$ ./server/xymon.sh status

Xymon (xymonlaunch) running with PID 4826

[xymon at lsypf01a ~]$

 
Here is my xymon-apache.conf, I made changes from what I've read in
the older subscription messages:

 
Alias /xymon/  "/home/xymon/server/www/"

<Directory "/home/xymon/server/www">

    Options Indexes FollowSymLinks Includes MultiViews

    Require all granted

</Directory>

 
ScriptAlias /xymon-cgi/ "/home/xymon/cgi-bin/"

<Directory "/home/xymon/cgi-bin">

    AllowOverride None

    Options ExecCGI Includes

    Require all granted

</Directory>

 
ScriptAlias /xymon-seccgi/ "/home/xymon/cgi-secure/"

<Directory "/home/xymon/cgi-secure">

    AllowOverride None

    Options ExecCGI Includes

    Require all granted

 
Various logs in /var/log/xymon:

 
Xymonlaunch.log:

2013-12-11 13:24:00 xymonlaunch starting

2013-12-11 13:24:00 Loading tasklist configuration from
/home/xymon/server/etc/tasks.cfg

2013-12-11 13:24:00 Cannot open directory /home/xymon/server/etc/tasks.d

2013-12-11 13:24:00 Loading hostnames

2013-12-11 13:24:00 Loading saved state

2013-12-11 13:24:00 Setting up network listener on 0.0.0.0:1984

<http://0.0.0.0:1984>;
quoted from Josh Luthman

2013-12-11 13:24:00 Setting up signal handlers

2013-12-11 13:24:00 Setting up xymond channels

2013-12-11 13:24:00 Setting up logfiles

 
Rrd-data.log:

2013-12-11 13:34:13 Peer at 0.0.0.0:0 <http://0.0.0.0:0>; failed:
quoted from Josh Luthman
Broken pipe

2013-12-11 13:34:13 Peer not up, flushing message queue

2013-12-11 13:34:13 exec() failed for child command xymond_rrd: No
such file or directory

2013-12-11 13:34:13 Child process 5357 died: Exit status 1

 
*David Diep*

 
* *

Look out for those in need this winter. When the temperature or wind
chill is 32°F or below, the District issues a Hypothermia Alert. For

assistance during an Alert, call the Shelter Hotline
<http://dhs.dc.gov/page/hypothermia-alert-plan>at *X-XXX-XXX-XXXX
<tel:X-XXX-XXX-XXXX>* or *311*.

 
list David Diep · Wed, 11 Dec 2013 14:07:24 -0500 ·
quoted from Galen Johnson
Josh,

Yep... I sure did. Right after I restarted xymon.


From: Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid]
Sent: Wednesday, December 11, 2013 2:04 PM
To: Diep, David (OCTO-Contractor)
Cc: xymon at xymon.com
Subject: Re: [Xymon] 404 Not Found URL/xymon was not found on this server


Did you restart httpd?

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
On Dec 11, 2013 1:59 PM, "Diep, David (OCTO-Contractor)" <user-ca44d68fd6e2@xymon.invalid<mailto:user-ca44d68fd6e2@xymon.invalid>> wrote:
Hi Everyone,

I'm very very new to XYMON, as a matter of fact, I just installed it 15 minutes ago. I thought I was cruising along quite nicely until I tested it. This is what I received:
Not Found
The requested URL /xymon was not found on this server.
Apache/2.2.15 (Red Hat) Server at 10.82.10.54 Port 80

Xymon is running, that I can confirm:

[xymon at lsypf01a ~]$ ./server/xymon.sh status
Xymon (xymonlaunch) running with PID 4826
[xymon at lsypf01a ~]$

Here is my xymon-apache.conf, I made changes from what I've read in the older subscription messages:

Alias /xymon/  "/home/xymon/server/www/"
<Directory "/home/xymon/server/www">
    Options Indexes FollowSymLinks Includes MultiViews
    Require all granted
</Directory>

ScriptAlias /xymon-cgi/ "/home/xymon/cgi-bin/"
<Directory "/home/xymon/cgi-bin">
    AllowOverride None
    Options ExecCGI Includes
    Require all granted
</Directory>

ScriptAlias /xymon-seccgi/ "/home/xymon/cgi-secure/"
<Directory "/home/xymon/cgi-secure">
    AllowOverride None
    Options ExecCGI Includes
    Require all granted

Various logs in /var/log/xymon:

Xymonlaunch.log:
2013-12-11 13:24:00 xymonlaunch starting
2013-12-11 13:24:00 Loading tasklist configuration from /home/xymon/server/etc/tasks.cfg
2013-12-11 13:24:00 Cannot open directory /home/xymon/server/etc/tasks.d
2013-12-11 13:24:00 Loading hostnames
2013-12-11 13:24:00 Loading saved state

2013-12-11 13:24:00 Setting up network listener on 0.0.0.0:1984<http://0.0.0.0:1984>;
quoted from Galen Johnson
2013-12-11 13:24:00 Setting up signal handlers
2013-12-11 13:24:00 Setting up xymond channels
2013-12-11 13:24:00 Setting up logfiles

Rrd-data.log:

2013-12-11 13:34:13 Peer at 0.0.0.0:0<http://0.0.0.0:0>; failed: Broken pipe
quoted from Galen Johnson
2013-12-11 13:34:13 Peer not up, flushing message queue
2013-12-11 13:34:13 exec() failed for child command xymond_rrd: No such file or directory
2013-12-11 13:34:13 Child process 5357 died: Exit status 1

David Diep


Look out for those in need this winter. When the temperature or wind chill is 32°F or below, the District issues a Hypothermia Alert. For assistance during an Alert, call the Shelter Hotline<http://dhs.dc.gov/page/hypothermia-alert-plan>; at X-XXX-XXX-XXXX<tel:X-XXX-XXX-XXXX> or 311.
list Josh Luthman · Wed, 11 Dec 2013 14:18:41 -0500 ·
Your issue is that you requested /xymon and the Alias is for /xymon/ (note
the trailing slash).

Request the next URL and try again.
signature


Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


quoted from Galen Johnson
On Wed, Dec 11, 2013 at 2:06 PM, Galen Johnson <user-87f955643e3d@xymon.invalid>wrote:
 Is there actually any content under the /home/xymon/server/www directory?

=G=


On 12/11/2013 02:07 PM, Diep, David (OCTO-Contractor) wrote:

 Josh,


Yep… I sure did. Right after I restarted xymon.


*From:* Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid<user-4c45a83f15cb@xymon.invalid>]
quoted from David Diep

*Sent:* Wednesday, December 11, 2013 2:04 PM
*To:* Diep, David (OCTO-Contractor)
*Cc:* xymon at xymon.com
*Subject:* Re: [Xymon] 404 Not Found URL/xymon was not found on this
server


Did you restart httpd?

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

On Dec 11, 2013 1:59 PM, "Diep, David (OCTO-Contractor)" <
user-ca44d68fd6e2@xymon.invalid> wrote:

Hi Everyone,


I’m very very new to XYMON, as a matter of fact, I just installed it 15
minutes ago. I thought I was cruising along quite nicely until I tested it.
This is what I received:

*Not Found*

The requested URL /xymon was not found on this server.

*Apache/2.2.15 (Red Hat) Server at 10.82.10.54 Port 80*


Xymon is running, that I can confirm:


[xymon at lsypf01a ~]$ ./server/xymon.sh status

Xymon (xymonlaunch) running with PID 4826

[xymon at lsypf01a ~]$


Here is my xymon-apache.conf, I made changes from what I’ve read in the
older subscription messages:


Alias /xymon/  "/home/xymon/server/www/"

<Directory "/home/xymon/server/www">

    Options Indexes FollowSymLinks Includes MultiViews

    Require all granted

</Directory>


ScriptAlias /xymon-cgi/ "/home/xymon/cgi-bin/"

<Directory "/home/xymon/cgi-bin">

    AllowOverride None

    Options ExecCGI Includes

    Require all granted

</Directory>


ScriptAlias /xymon-seccgi/ "/home/xymon/cgi-secure/"

<Directory "/home/xymon/cgi-secure">

    AllowOverride None

    Options ExecCGI Includes

    Require all granted


Various logs in /var/log/xymon:


Xymonlaunch.log:

2013-12-11 13:24:00 xymonlaunch starting

2013-12-11 13:24:00 Loading tasklist configuration from
/home/xymon/server/etc/tasks.cfg

2013-12-11 13:24:00 Cannot open directory /home/xymon/server/etc/tasks.d

2013-12-11 13:24:00 Loading hostnames

2013-12-11 13:24:00 Loading saved state

2013-12-11 13:24:00 Setting up network listener on 0.0.0.0:1984

2013-12-11 13:24:00 Setting up signal handlers

2013-12-11 13:24:00 Setting up xymond channels

2013-12-11 13:24:00 Setting up logfiles


Rrd-data.log:

2013-12-11 13:34:13 Peer at 0.0.0.0:0 failed: Broken pipe

2013-12-11 13:34:13 Peer not up, flushing message queue

2013-12-11 13:34:13 exec() failed for child command xymond_rrd: No such
file or directory

2013-12-11 13:34:13 Child process 5357 died: Exit status 1


*David Diep*


Look out for those in need this winter. When the temperature or wind chill
is 32°F or below, the District issues a Hypothermia Alert. For assistance
during an Alert, call the Shelter Hotline<http://dhs.dc.gov/page/hypothermia-alert-plan>at *X-XXX-XXX-XXXX
<X-XXX-XXX-XXXX>* or *311*.


Xymon mailing user-d459c9d661b6@xymon.invalid

list David Diep · Wed, 11 Dec 2013 14:18:54 -0500 ·
Hi Paul,

I saw that thread and I did go to the config file to make sure...

XYMONSERVERROOT="/home/xymon"                   # Where Xymon is installed
XYMONSERVERLOGS="/var/log/xymon"                        # Directory for server logs. The xymon user must have write-access here.
XYMONCLIENTHOME="/home/xymon/client"            # XYMONHOME directory for the client

XYMONSERVERHOSTNAME="lsypf01a.in.domain"        # The hostname of your server
XYMONSERVERIP="10.82.10.54"                     # The IP-address of your server. Use the real one, not 127.0.0.1 .
XYMONSERVEROS="linux"                   # The operating system of your server. linux,freebsd,solaris,hpux,aix,osf

XYMONSERVERWWWNAME="lsypf01a.in.domain"         # The name used for this hosts' webserver
XYMONSERVERWWWURL="/xymon"              # The top URL for the Xymon webpages
XYMONSERVERCGIURL="/xymon-cgi"          # The URL for the Xymon CGI scripts.
XYMONSERVERSECURECGIURL="/xymon-seccgi" # The URL for the secured Xymon CGI scripts.

# XYMONNETWORK="foo"                            # The network location, makes xymonnet test only hosts with NET:foo
                                                # You only need to set this if you have multiple network test servers with
                                                # a shared hosts.cfg file.

# Make sure the path includes the directories where you have fping, mail and (optionally) ntpdate installed,
# as well as the XYMONHOME/bin directory where all of the Xymon programs reside.
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/home/xymon/server/bin"
SHELL="/bin/sh"                                 # Shell to use when forking programs

# Some systems need extra settings e.g. to locate run-time libraries.
# You can add these extra settings here:


# Default settings for "delayred" and "delayyellow" parameters in hosts.cfg
DELAYRED=""                     # Format: status:delay[,status:delay - e.g. "cpu:15,disk:30"
DELAYYELLOW=""                  # Format: status:delay[,status:delay - e.g. "cpu:15,disk:30"


##### Normally you do not need to modify anything below this point #####

# General settings
XYMONDPORT="1984"               # Portnumber where xymond listens
XYMSRV="10.82.10.54"            # IP of a single Xymon server
XYMSERVERS=""                   # IP of multiple Xymon servers. If used, XYMSRV must be 0.0.0.0
FQDN="TRUE"                     # Use fully-qualified hostnames internally. Keep it TRUE unless you know better.


I restarted xymon first and then apache... still no luck.

[xymon at lsypf01a ~]$ ./server/xymon.sh restart
Xymon stopped
Xymon started
[root at lsypf01a etc]# service httpd restart
Stopping httpd: [  OK  ]
Starting httpd: [  OK  ]

http://10.82.10.54 is served, but not http://10.82.10.54/xymon

D'oh.

David Diep | IBM Z Series Network Architect | Office of the Chief Technology Officer
Integrated Platform Services | 200 I Steet SE | Washington DC, 20003
Phone: XXX.XXX.XXXX | Mobile Phone: XXX.XXX.XXXX | Email:user-ca44d68fd6e2@xymon.invalid<mailto:user-ca44d68fd6e2@xymon.invalid>
Website: www.octo.dc.gov<http://www.octo.dc.gov/>; | Telework day: Thursday
quoted from Josh Luthman

From: Root, Paul T [mailto:user-76fdb6883669@xymon.invalid]
Sent: Wednesday, December 11, 2013 2:04 PM
To: Diep, David (OCTO-Contractor); 'xymon at xymon.com'
Subject: RE: 404 Not Found URL/xymon was not found on this server

We just had this one.

You see that xymon is listening on 0.0.0.0:1984. You need to change you XYMONSERVERIP environment in xymonserver.cfg to the IP address of the server.  Also set XYMONSERVERHOSTNAME to the hostname and XZYMSRV to the ip address as well. Then restart xymon.

I'm assuming you did restart apache after you put the xymon-apache.conf into /etc/httpd/conf.d, right?

From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Diep, David (OCTO-Contractor)
Sent: Wednesday, December 11, 2013 12:48 PM
To: xymon at xymon.com
Subject: [Xymon] 404 Not Found URL/xymon was not found on this server

Hi Everyone,

I'm very very new to XYMON, as a matter of fact, I just installed it 15 minutes ago. I thought I was cruising along quite nicely until I tested it. This is what I received:
Not Found
The requested URL /xymon was not found on this server.
Apache/2.2.15 (Red Hat) Server at 10.82.10.54 Port 80

Xymon is running, that I can confirm:

[xymon at lsypf01a ~]$ ./server/xymon.sh status
Xymon (xymonlaunch) running with PID 4826
[xymon at lsypf01a ~]$

Here is my xymon-apache.conf, I made changes from what I've read in the older subscription messages:

Alias /xymon/  "/home/xymon/server/www/"
<Directory "/home/xymon/server/www">
    Options Indexes FollowSymLinks Includes MultiViews
    Require all granted
</Directory>

ScriptAlias /xymon-cgi/ "/home/xymon/cgi-bin/"
<Directory "/home/xymon/cgi-bin">
    AllowOverride None
    Options ExecCGI Includes
    Require all granted
</Directory>

ScriptAlias /xymon-seccgi/ "/home/xymon/cgi-secure/"
<Directory "/home/xymon/cgi-secure">
    AllowOverride None
    Options ExecCGI Includes
    Require all granted

Various logs in /var/log/xymon:

Xymonlaunch.log:
2013-12-11 13:24:00 xymonlaunch starting
2013-12-11 13:24:00 Loading tasklist configuration from /home/xymon/server/etc/tasks.cfg
2013-12-11 13:24:00 Cannot open directory /home/xymon/server/etc/tasks.d
2013-12-11 13:24:00 Loading hostnames
2013-12-11 13:24:00 Loading saved state
2013-12-11 13:24:00 Setting up network listener on 0.0.0.0:1984
2013-12-11 13:24:00 Setting up signal handlers
2013-12-11 13:24:00 Setting up xymond channels
2013-12-11 13:24:00 Setting up logfiles

Rrd-data.log:
2013-12-11 13:34:13 Peer at 0.0.0.0:0 failed: Broken pipe
2013-12-11 13:34:13 Peer not up, flushing message queue
2013-12-11 13:34:13 exec() failed for child command xymond_rrd: No such file or directory
2013-12-11 13:34:13 Child process 5357 died: Exit status 1

David Diep


Look out for those in need this winter. When the temperature or wind chill is 32°F or below, the District issues a Hypothermia Alert. For assistance during an Alert, call the Shelter Hotline<http://dhs.dc.gov/page/hypothermia-alert-plan>; at X-XXX-XXX-XXXX or 311.
list Paul Root · Wed, 11 Dec 2013 19:37:19 +0000 ·
Any error messages in apache log files?
quoted from David Diep

From: Diep, David (OCTO-Contractor) [mailto:user-ca44d68fd6e2@xymon.invalid]
Sent: Wednesday, December 11, 2013 1:19 PM
To: Root, Paul T; 'xymon at xymon.com'
Subject: RE: 404 Not Found URL/xymon was not found on this server

Hi Paul,

I saw that thread and I did go to the config file to make sure...

XYMONSERVERROOT="/home/xymon"                   # Where Xymon is installed
XYMONSERVERLOGS="/var/log/xymon"                        # Directory for server logs. The xymon user must have write-access here.
XYMONCLIENTHOME="/home/xymon/client"            # XYMONHOME directory for the client

XYMONSERVERHOSTNAME="lsypf01a.in.domain"        # The hostname of your server
XYMONSERVERIP="10.82.10.54"                     # The IP-address of your server. Use the real one, not 127.0.0.1 .
XYMONSERVEROS="linux"                   # The operating system of your server. linux,freebsd,solaris,hpux,aix,osf

XYMONSERVERWWWNAME="lsypf01a.in.domain"         # The name used for this hosts' webserver
XYMONSERVERWWWURL="/xymon"              # The top URL for the Xymon webpages
XYMONSERVERCGIURL="/xymon-cgi"          # The URL for the Xymon CGI scripts.
XYMONSERVERSECURECGIURL="/xymon-seccgi" # The URL for the secured Xymon CGI scripts.

# XYMONNETWORK="foo"                            # The network location, makes xymonnet test only hosts with NET:foo
                                                # You only need to set this if you have multiple network test servers with
                                                # a shared hosts.cfg file.

# Make sure the path includes the directories where you have fping, mail and (optionally) ntpdate installed,
# as well as the XYMONHOME/bin directory where all of the Xymon programs reside.
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/home/xymon/server/bin"
SHELL="/bin/sh"                                 # Shell to use when forking programs

# Some systems need extra settings e.g. to locate run-time libraries.
# You can add these extra settings here:


# Default settings for "delayred" and "delayyellow" parameters in hosts.cfg
DELAYRED=""                     # Format: status:delay[,status:delay - e.g. "cpu:15,disk:30"
DELAYYELLOW=""                  # Format: status:delay[,status:delay - e.g. "cpu:15,disk:30"


##### Normally you do not need to modify anything below this point #####

# General settings
XYMONDPORT="1984"               # Portnumber where xymond listens
XYMSRV="10.82.10.54"            # IP of a single Xymon server
XYMSERVERS=""                   # IP of multiple Xymon servers. If used, XYMSRV must be 0.0.0.0
FQDN="TRUE"                     # Use fully-qualified hostnames internally. Keep it TRUE unless you know better.


I restarted xymon first and then apache... still no luck.

[xymon at lsypf01a ~]$ ./server/xymon.sh restart
Xymon stopped
Xymon started
[root at lsypf01a etc]# service httpd restart
Stopping httpd: [  OK  ]
Starting httpd: [  OK  ]

http://10.82.10.54 is served, but not http://10.82.10.54/xymon

D'oh.

David Diep | IBM Z Series Network Architect | Office of the Chief Technology Officer
Integrated Platform Services | 200 I Steet SE | Washington DC, 20003
Phone: XXX.XXX.XXXX | Mobile Phone: XXX.XXX.XXXX | Email:user-ca44d68fd6e2@xymon.invalid<mailto:user-ca44d68fd6e2@xymon.invalid>
Website: www.octo.dc.gov<http://www.octo.dc.gov/>; | Telework day: Thursday

From: Root, Paul T [mailto:user-76fdb6883669@xymon.invalid]
Sent: Wednesday, December 11, 2013 2:04 PM
To: Diep, David (OCTO-Contractor); 'xymon at xymon.com'
Subject: RE: 404 Not Found URL/xymon was not found on this server

We just had this one.

You see that xymon is listening on 0.0.0.0:1984. You need to change you XYMONSERVERIP environment in xymonserver.cfg to the IP address of the server.  Also set XYMONSERVERHOSTNAME to the hostname and XZYMSRV to the ip address as well. Then restart xymon.

I'm assuming you did restart apache after you put the xymon-apache.conf into /etc/httpd/conf.d, right?

From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Diep, David (OCTO-Contractor)
Sent: Wednesday, December 11, 2013 12:48 PM
To: xymon at xymon.com<mailto:xymon at xymon.com>
Subject: [Xymon] 404 Not Found URL/xymon was not found on this server

Hi Everyone,

I'm very very new to XYMON, as a matter of fact, I just installed it 15 minutes ago. I thought I was cruising along quite nicely until I tested it. This is what I received:
Not Found
The requested URL /xymon was not found on this server.
Apache/2.2.15 (Red Hat) Server at 10.82.10.54 Port 80

Xymon is running, that I can confirm:

[xymon at lsypf01a ~]$ ./server/xymon.sh status
Xymon (xymonlaunch) running with PID 4826
[xymon at lsypf01a ~]$

Here is my xymon-apache.conf, I made changes from what I've read in the older subscription messages:

Alias /xymon/  "/home/xymon/server/www/"
<Directory "/home/xymon/server/www">
    Options Indexes FollowSymLinks Includes MultiViews
    Require all granted
</Directory>

ScriptAlias /xymon-cgi/ "/home/xymon/cgi-bin/"
<Directory "/home/xymon/cgi-bin">
    AllowOverride None
    Options ExecCGI Includes
    Require all granted
</Directory>

ScriptAlias /xymon-seccgi/ "/home/xymon/cgi-secure/"
<Directory "/home/xymon/cgi-secure">
    AllowOverride None
    Options ExecCGI Includes
    Require all granted

Various logs in /var/log/xymon:

Xymonlaunch.log:
2013-12-11 13:24:00 xymonlaunch starting
2013-12-11 13:24:00 Loading tasklist configuration from /home/xymon/server/etc/tasks.cfg
2013-12-11 13:24:00 Cannot open directory /home/xymon/server/etc/tasks.d
2013-12-11 13:24:00 Loading hostnames
2013-12-11 13:24:00 Loading saved state
2013-12-11 13:24:00 Setting up network listener on 0.0.0.0:1984
2013-12-11 13:24:00 Setting up signal handlers
2013-12-11 13:24:00 Setting up xymond channels
2013-12-11 13:24:00 Setting up logfiles

Rrd-data.log:
2013-12-11 13:34:13 Peer at 0.0.0.0:0 failed: Broken pipe
2013-12-11 13:34:13 Peer not up, flushing message queue
2013-12-11 13:34:13 exec() failed for child command xymond_rrd: No such file or directory
2013-12-11 13:34:13 Child process 5357 died: Exit status 1

David Diep


Look out for those in need this winter. When the temperature or wind chill is 32°F or below, the District issues a Hypothermia Alert. For assistance during an Alert, call the Shelter Hotline<http://dhs.dc.gov/page/hypothermia-alert-plan>; at X-XXX-XXX-XXXX or 311.
list Josh Luthman · Wed, 11 Dec 2013 14:38:47 -0500 ·
Did you see my answer about requesting the wrong directory?
signature


Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


quoted from Paul Root
On Wed, Dec 11, 2013 at 2:37 PM, Root, Paul T <user-76fdb6883669@xymon.invalid>wrote:
 Any error messages in apache log files?


*From:* Diep, David (OCTO-Contractor) [mailto:user-ca44d68fd6e2@xymon.invalid]
*Sent:* Wednesday, December 11, 2013 1:19 PM
*To:* Root, Paul T; 'xymon at xymon.com'

*Subject:* RE: 404 Not Found URL/xymon was not found on this server


Hi Paul,


I saw that thread and I did go to the config file to make sure…


XYMONSERVERROOT="/home/xymon"                   # Where Xymon is installed

XYMONSERVERLOGS="/var/log/xymon"                        # Directory for
server logs. The xymon user must have write-access here.

XYMONCLIENTHOME="/home/xymon/client"            # XYMONHOME directory for
the client


XYMONSERVERHOSTNAME="lsypf01a.in.domain"        # The hostname of your
server

XYMONSERVERIP="10.82.10.54"                     # The IP-address of your
server. Use the real one, not 127.0.0.1 .

XYMONSERVEROS="linux"                   # The operating system of your
server. linux,freebsd,solaris,hpux,aix,osf


XYMONSERVERWWWNAME="lsypf01a.in.domain"         # The name used for this
hosts' webserver

XYMONSERVERWWWURL="/xymon"              # The top URL for the Xymon
webpages

XYMONSERVERCGIURL="/xymon-cgi"          # The URL for the Xymon CGI
scripts.

XYMONSERVERSECURECGIURL="/xymon-seccgi" # The URL for the secured Xymon
CGI scripts.


# XYMONNETWORK="foo"                            # The network location,
makes xymonnet test only hosts with NET:foo

                                                # You only need to set
this if you have multiple network test servers with

                                                # a shared hosts.cfg file.


# Make sure the path includes the directories where you have fping, mail
and (optionally) ntpdate installed,

# as well as the XYMONHOME/bin directory where all of the Xymon programs
reside.


PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/home/xymon/server/bin"

SHELL="/bin/sh"                                 # Shell to use when
forking programs


# Some systems need extra settings e.g. to locate run-time libraries.

# You can add these extra settings here:


# Default settings for "delayred" and "delayyellow" parameters in hosts.cfg

DELAYRED=""                     # Format: status:delay[,status:delay -
e.g. "cpu:15,disk:30"

DELAYYELLOW=""                  # Format: status:delay[,status:delay -
e.g. "cpu:15,disk:30"


##### Normally you do not need to modify anything below this point #####


# General settings

XYMONDPORT="1984"               # Portnumber where xymond listens

XYMSRV="10.82.10.54"            # IP of a single Xymon server

XYMSERVERS=""                   # IP of multiple Xymon servers. If used,
XYMSRV must be 0.0.0.0

FQDN="TRUE"                     # Use fully-qualified hostnames
internally. Keep it TRUE unless you know better.


I restarted xymon first and then apache… still no luck.


[xymon at lsypf01a ~]$ ./server/xymon.sh restart

Xymon stopped

Xymon started

[root at lsypf01a etc]# service httpd restart

Stopping httpd: [  OK  ]

Starting httpd: [  OK  ]


http://10.82.10.54 is served, but not http://10.82.10.54/xymon


D’oh.


*David Diep* *|* IBM Z Series Network Architect | Office of the Chief
Technology Officer

Integrated Platform Services | 200 I Steet SE | Washington DC, 20003

Phone: XXX.XXX.XXXX *| *Mobile Phone: XXX.XXX.XXXX *| *Email:*user-ca44d68fd6e2@xymon.invalid
<user-ca44d68fd6e2@xymon.invalid>*

Website: www.octo.dc.gov *| **Telework day: Thursday*


*From:* Root, Paul T [mailto:user-76fdb6883669@xymon.invalid<user-76fdb6883669@xymon.invalid>]
quoted from Paul Root

*Sent:* Wednesday, December 11, 2013 2:04 PM
*To:* Diep, David (OCTO-Contractor); 'xymon at xymon.com'
*Subject:* RE: 404 Not Found URL/xymon was not found on this server


We just had this one.


You see that xymon is listening on 0.0.0.0:1984. You need to change you
XYMONSERVERIP environment in xymonserver.cfg to the IP address of the
server.  Also set XYMONSERVERHOSTNAME to the hostname and XZYMSRV to the ip
address as well. Then restart xymon.


I’m assuming you did restart apache after you put the xymon-apache.conf
into /etc/httpd/conf.d, right?


*From:* Xymon [mailto:xymon-bounces at xymon.com <xymon-bounces at xymon.com>] *On
quoted from Paul Root
Behalf Of *Diep, David (OCTO-Contractor)
*Sent:* Wednesday, December 11, 2013 12:48 PM
*To:* xymon at xymon.com
*Subject:* [Xymon] 404 Not Found URL/xymon was not found on this server


Hi Everyone,


I’m very very new to XYMON, as a matter of fact, I just installed it 15
minutes ago. I thought I was cruising along quite nicely until I tested it.
This is what I received:

*Not Found*

The requested URL /xymon was not found on this server.

*Apache/2.2.15 (Red Hat) Server at 10.82.10.54 Port 80*


Xymon is running, that I can confirm:


[xymon at lsypf01a ~]$ ./server/xymon.sh status

Xymon (xymonlaunch) running with PID 4826

[xymon at lsypf01a ~]$


Here is my xymon-apache.conf, I made changes from what I’ve read in the
older subscription messages:


Alias /xymon/  "/home/xymon/server/www/"

<Directory "/home/xymon/server/www">

    Options Indexes FollowSymLinks Includes MultiViews

    Require all granted

</Directory>


ScriptAlias /xymon-cgi/ "/home/xymon/cgi-bin/"

<Directory "/home/xymon/cgi-bin">

    AllowOverride None

    Options ExecCGI Includes

    Require all granted

</Directory>


ScriptAlias /xymon-seccgi/ "/home/xymon/cgi-secure/"

<Directory "/home/xymon/cgi-secure">

    AllowOverride None

    Options ExecCGI Includes

    Require all granted


Various logs in /var/log/xymon:


Xymonlaunch.log:

2013-12-11 13:24:00 xymonlaunch starting

2013-12-11 13:24:00 Loading tasklist configuration from
/home/xymon/server/etc/tasks.cfg

2013-12-11 13:24:00 Cannot open directory /home/xymon/server/etc/tasks.d

2013-12-11 13:24:00 Loading hostnames

2013-12-11 13:24:00 Loading saved state

2013-12-11 13:24:00 Setting up network listener on 0.0.0.0:1984

2013-12-11 13:24:00 Setting up signal handlers

2013-12-11 13:24:00 Setting up xymond channels

2013-12-11 13:24:00 Setting up logfiles


Rrd-data.log:

2013-12-11 13:34:13 Peer at 0.0.0.0:0 failed: Broken pipe

2013-12-11 13:34:13 Peer not up, flushing message queue

2013-12-11 13:34:13 exec() failed for child command xymond_rrd: No such
file or directory

2013-12-11 13:34:13 Child process 5357 died: Exit status 1


*David Diep*


Look out for those in need this winter. When the temperature or wind chill
is 32°F or below, the District issues a Hypothermia Alert. For assistance
during an Alert, call the Shelter Hotline<http://dhs.dc.gov/page/hypothermia-alert-plan>at *X-XXX-XXX-XXXX
<X-XXX-XXX-XXXX>* or *311*.

list Galen Johnson · Wed, 11 Dec 2013 14:46:29 -0500 ·
To Josh's point, it requires the trailing slash.  If you want to ensure
that it always redirects to /xymon/, just add a rewrite rule to apache's
httpd.conf...it may even work in the xymon.conf file:


RewriteEngine on
RewriteRule  ^/xymon$           /xymon/  [R,L]

=G=
quoted from Josh Luthman

On 12/11/2013 02:38 PM, Josh Luthman wrote:
Did you see my answer about requesting the wrong directory?


Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Dec 11, 2013 at 2:37 PM, Root, Paul T
<user-76fdb6883669@xymon.invalid <mailto:user-76fdb6883669@xymon.invalid>> wrote:

    Any error messages in apache log files?

     

    *From:*Diep, David (OCTO-Contractor) [mailto:user-ca44d68fd6e2@xymon.invalid
    <mailto:user-ca44d68fd6e2@xymon.invalid>]
    *Sent:* Wednesday, December 11, 2013 1:19 PM
    *To:* Root, Paul T; 'xymon at xymon.com <mailto:xymon at xymon.com>'
quoted from Josh Luthman


    *Subject:* RE: 404 Not Found URL/xymon was not found on this server

     
    Hi Paul,

     
    I saw that thread and I did go to the config file to make sure...

     
    XYMONSERVERROOT="/home/xymon"                   # Where Xymon is
    installed

    XYMONSERVERLOGS="/var/log/xymon"                        #
    Directory for server logs. The xymon user must have write-access here.

    XYMONCLIENTHOME="/home/xymon/client"            # XYMONHOME
    directory for the client

     
    XYMONSERVERHOSTNAME="lsypf01a.in.domain"        # The hostname of
    your server

    XYMONSERVERIP="10.82.10.54"                     # The IP-address
    of your server. Use the real one, not 127.0.0.1 .

    XYMONSERVEROS="linux"                   # The operating system of
    your server. linux,freebsd,solaris,hpux,aix,osf

     
    XYMONSERVERWWWNAME="lsypf01a.in.domain"         # The name used
    for this hosts' webserver

    XYMONSERVERWWWURL="/xymon"              # The top URL for the
    Xymon webpages

    XYMONSERVERCGIURL="/xymon-cgi"          # The URL for the Xymon
    CGI scripts.

    XYMONSERVERSECURECGIURL="/xymon-seccgi" # The URL for the secured
    Xymon CGI scripts.

     
    # XYMONNETWORK="foo"                            # The network
    location, makes xymonnet test only hosts with NET:foo

                                                    # You only need to
    set this if you have multiple network test servers with

                                                    # a shared
    hosts.cfg file.

     
    # Make sure the path includes the directories where you have
    fping, mail and (optionally) ntpdate installed,

    # as well as the XYMONHOME/bin directory where all of the Xymon
    programs reside.

    PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/home/xymon/server/bin"

    SHELL="/bin/sh"                                 # Shell to use
    when forking programs

     
    # Some systems need extra settings e.g. to locate run-time libraries.

    # You can add these extra settings here:

     
    # Default settings for "delayred" and "delayyellow" parameters in
    hosts.cfg

    DELAYRED=""                     # Format:
    status:delay[,status:delay - e.g. "cpu:15,disk:30"

    DELAYYELLOW=""                  # Format:
    status:delay[,status:delay - e.g. "cpu:15,disk:30"

     
    ##### Normally you do not need to modify anything below this point
    #####

     
    # General settings

    XYMONDPORT="1984"               # Portnumber where xymond listens

    XYMSRV="10.82.10.54"            # IP of a single Xymon server

    XYMSERVERS=""                   # IP of multiple Xymon servers. If
    used, XYMSRV must be 0.0.0.0

    FQDN="TRUE"                     # Use fully-qualified hostnames
    internally. Keep it TRUE unless you know better.

     
    I restarted xymon first and then apache... still no luck.

     
    [xymon at lsypf01a ~]$ ./server/xymon.sh restart

    Xymon stopped

    Xymon started

    [root at lsypf01a etc]# service httpd restart

    Stopping httpd: [  OK  ]

    Starting httpd: [  OK  ]

     
    http://10.82.10.54 is served, but not http://10.82.10.54/xymon

     
    D'oh.

     
    *David Diep**|* IBM Z Series Network Architect | Office of the
    Chief Technology Officer

    Integrated Platform Services | 200 I Steet SE | Washington DC, 20003**

    Phone: XXX.XXX.XXXX <tel:XXX.XXX.XXXX> *| *Mobile Phone:
    XXX.XXX.XXXX <tel:XXX.XXX.XXXX> *| *Email:user-7c2f16abb331@xymon.invalid
    <mailto:user-ca44d68fd6e2@xymon.invalid>_

    Website:www.octo.dc.gov <http://www.octo.dc.gov/>; *| **Telework
    day: Thursday*

     
    *From:*Root, Paul T [mailto:user-76fdb6883669@xymon.invalid]
quoted from Josh Luthman
    *Sent:* Wednesday, December 11, 2013 2:04 PM
    *To:* Diep, David (OCTO-Contractor); 'xymon at xymon.com

    <mailto:xymon at xymon.com>'
quoted from Josh Luthman
    *Subject:* RE: 404 Not Found URL/xymon was not found on this server

     
    We just had this one.

     
    You see that xymon is listening on 0.0.0.0:1984

    <http://0.0.0.0:1984>;. You need to change you XYMONSERVERIP
quoted from Josh Luthman
    environment in xymonserver.cfg to the IP address of the server. 
    Also set XYMONSERVERHOSTNAME to the hostname and XZYMSRV to the ip
    address as well. Then restart xymon.

     
    I'm assuming you did restart apache after you put the
    xymon-apache.conf into /etc/httpd/conf.d, right?

     

    *From:*Xymon [mailto:xymon-bounces at xymon.com] *On Behalf Of *Diep,
    David (OCTO-Contractor)
    *Sent:* Wednesday, December 11, 2013 12:48 PM
    *To:* xymon at xymon.com <mailto:xymon at xymon.com>
quoted from Josh Luthman
    *Subject:* [Xymon] 404 Not Found URL/xymon was not found on this
    server

     
    Hi Everyone,

     
    I'm very very new to XYMON, as a matter of fact, I just installed
    it 15 minutes ago. I thought I was cruising along quite nicely
    until I tested it. This is what I received:

    *Not Found*

    The requested URL /xymon was not found on this server.


    /Apache/2.2.15 (Red Hat) Server at 10.82.10.54 Port 80/

     
    Xymon is running, that I can confirm:

     
    [xymon at lsypf01a ~]$ ./server/xymon.sh status

    Xymon (xymonlaunch) running with PID 4826

    [xymon at lsypf01a ~]$

     
    Here is my xymon-apache.conf, I made changes from what I've read
    in the older subscription messages:

     
    Alias /xymon/  "/home/xymon/server/www/"

    <Directory "/home/xymon/server/www">

        Options Indexes FollowSymLinks Includes MultiViews

        Require all granted

    </Directory>

     
    ScriptAlias /xymon-cgi/ "/home/xymon/cgi-bin/"

    <Directory "/home/xymon/cgi-bin">

        AllowOverride None

        Options ExecCGI Includes

        Require all granted

    </Directory>

     
    ScriptAlias /xymon-seccgi/ "/home/xymon/cgi-secure/"

    <Directory "/home/xymon/cgi-secure">

        AllowOverride None

        Options ExecCGI Includes

        Require all granted

     
    Various logs in /var/log/xymon:

     
    Xymonlaunch.log:

    2013-12-11 13:24:00 xymonlaunch starting

    2013-12-11 13:24:00 Loading tasklist configuration from
    /home/xymon/server/etc/tasks.cfg

    2013-12-11 13:24:00 Cannot open directory
    /home/xymon/server/etc/tasks.d

    2013-12-11 13:24:00 Loading hostnames

    2013-12-11 13:24:00 Loading saved state

    2013-12-11 13:24:00 Setting up network listener on 0.0.0.0:1984
    <http://0.0.0.0:1984>;

    2013-12-11 13:24:00 Setting up signal handlers

    2013-12-11 13:24:00 Setting up xymond channels

    2013-12-11 13:24:00 Setting up logfiles

     
    Rrd-data.log:

    2013-12-11 13:34:13 Peer at 0.0.0.0:0 <http://0.0.0.0:0>; failed:
    Broken pipe

    2013-12-11 13:34:13 Peer not up, flushing message queue

    2013-12-11 13:34:13 exec() failed for child command xymond_rrd: No
    such file or directory

    2013-12-11 13:34:13 Child process 5357 died: Exit status 1

     
    *David Diep*

     
    * *

    Look out for those in need this winter. When the temperature or
    wind chill is 32°F or below, the District issues a Hypothermia
    Alert. For assistance during an Alert, call the Shelter Hotline
    <http://dhs.dc.gov/page/hypothermia-alert-plan>at *X-XXX-XXX-XXXX
    <tel:X-XXX-XXX-XXXX>* or *311*.

     
list Japheth Cleaver · Wed, 11 Dec 2013 12:22:58 -0800 ·
You can also rewrite the existing Alias line to drop the final slash too. eg:
-Alias @XYMONHOSTURL@/  "@INSTALLWWWDIR@/"
+Alias @XYMONHOSTURL@  "@INSTALLWWWDIR@"

For me, that's:
Alias /xymon  "/var/www/xymon"

The RPMs have done that for a while... haven't heard of any issues so far.

-jc
quoted from Galen Johnson


On Wed, December 11, 2013 11:46 am, Galen Johnson wrote:
To Josh's point, it requires the trailing slash.  If you want to ensure
that it always redirects to /xymon/, just add a rewrite rule to apache's
httpd.conf...it may even work in the xymon.conf file:


RewriteEngine on
RewriteRule  ^/xymon$           /xymon/  [R,L]

=G=

On 12/11/2013 02:38 PM, Josh Luthman wrote:
Did you see my answer about requesting the wrong directory?


Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Dec 11, 2013 at 2:37 PM, Root, Paul T
<user-76fdb6883669@xymon.invalid <mailto:user-76fdb6883669@xymon.invalid>> wrote:

    Any error messages in apache log files?


    *From:*Diep, David (OCTO-Contractor) [mailto:user-ca44d68fd6e2@xymon.invalid
    <mailto:user-ca44d68fd6e2@xymon.invalid>]
    *Sent:* Wednesday, December 11, 2013 1:19 PM
    *To:* Root, Paul T; 'xymon at xymon.com <mailto:xymon at xymon.com>'


    *Subject:* RE: 404 Not Found URL/xymon was not found on this server


    Hi Paul,


    I saw that thread and I did go to the config file to make sure...


    XYMONSERVERROOT="/home/xymon"                   # Where Xymon is
    installed

    XYMONSERVERLOGS="/var/log/xymon"                        #
    Directory for server logs. The xymon user must have write-access
here.

    XYMONCLIENTHOME="/home/xymon/client"            # XYMONHOME
    directory for the client


    XYMONSERVERHOSTNAME="lsypf01a.in.domain"        # The hostname of
    your server

    XYMONSERVERIP="10.82.10.54"                     # The IP-address
    of your server. Use the real one, not 127.0.0.1 .

    XYMONSERVEROS="linux"                   # The operating system of
    your server. linux,freebsd,solaris,hpux,aix,osf


    XYMONSERVERWWWNAME="lsypf01a.in.domain"         # The name used
    for this hosts' webserver

    XYMONSERVERWWWURL="/xymon"              # The top URL for the
    Xymon webpages

    XYMONSERVERCGIURL="/xymon-cgi"          # The URL for the Xymon
    CGI scripts.

    XYMONSERVERSECURECGIURL="/xymon-seccgi" # The URL for the secured
    Xymon CGI scripts.


    # XYMONNETWORK="foo"                            # The network
    location, makes xymonnet test only hosts with NET:foo

                                                    # You only need to
    set this if you have multiple network test servers with

                                                    # a shared
    hosts.cfg file.


    # Make sure the path includes the directories where you have
    fping, mail and (optionally) ntpdate installed,

    # as well as the XYMONHOME/bin directory where all of the Xymon
    programs reside.

    PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/home/xymon/server/bin"

    SHELL="/bin/sh"                                 # Shell to use
    when forking programs


    # Some systems need extra settings e.g. to locate run-time
libraries.

    # You can add these extra settings here:


    # Default settings for "delayred" and "delayyellow" parameters in
    hosts.cfg

    DELAYRED=""                     # Format:
    status:delay[,status:delay - e.g. "cpu:15,disk:30"

    DELAYYELLOW=""                  # Format:
    status:delay[,status:delay - e.g. "cpu:15,disk:30"


    ##### Normally you do not need to modify anything below this point
    #####


    # General settings

    XYMONDPORT="1984"               # Portnumber where xymond listens

    XYMSRV="10.82.10.54"            # IP of a single Xymon server

    XYMSERVERS=""                   # IP of multiple Xymon servers. If
    used, XYMSRV must be 0.0.0.0

    FQDN="TRUE"                     # Use fully-qualified hostnames
    internally. Keep it TRUE unless you know better.


    I restarted xymon first and then apache... still no luck.


    [xymon at lsypf01a ~]$ ./server/xymon.sh restart

    Xymon stopped

    Xymon started

    [root at lsypf01a etc]# service httpd restart

    Stopping httpd: [  OK  ]

    Starting httpd: [  OK  ]


    http://10.82.10.54 is served, but not http://10.82.10.54/xymon


    D'oh.


    *David Diep**|* IBM Z Series Network Architect | Office of the
    Chief Technology Officer

    Integrated Platform Services | 200 I Steet SE | Washington DC,
20003**

    Phone: XXX.XXX.XXXX <tel:XXX.XXX.XXXX> *| *Mobile Phone:
    XXX.XXX.XXXX <tel:XXX.XXX.XXXX> *| *Email:user-7c2f16abb331@xymon.invalid
    <mailto:user-ca44d68fd6e2@xymon.invalid>_

    Website:www.octo.dc.gov <http://www.octo.dc.gov/>; *| **Telework
    day: Thursday*


    *From:*Root, Paul T [mailto:user-76fdb6883669@xymon.invalid]
    *Sent:* Wednesday, December 11, 2013 2:04 PM
    *To:* Diep, David (OCTO-Contractor); 'xymon at xymon.com
    <mailto:xymon at xymon.com>'
    *Subject:* RE: 404 Not Found URL/xymon was not found on this server


    We just had this one.


    You see that xymon is listening on 0.0.0.0:1984
    <http://0.0.0.0:1984>;. You need to change you XYMONSERVERIP
    environment in xymonserver.cfg to the IP address of the server.
    Also set XYMONSERVERHOSTNAME to the hostname and XZYMSRV to the ip
    address as well. Then restart xymon.


    I'm assuming you did restart apache after you put the
    xymon-apache.conf into /etc/httpd/conf.d, right?


    *From:*Xymon [mailto:xymon-bounces at xymon.com] *On Behalf Of *Diep,
    David (OCTO-Contractor)
    *Sent:* Wednesday, December 11, 2013 12:48 PM
    *To:* xymon at xymon.com <mailto:xymon at xymon.com>
    *Subject:* [Xymon] 404 Not Found URL/xymon was not found on this
    server


    Hi Everyone,


    I'm very very new to XYMON, as a matter of fact, I just installed
    it 15 minutes ago. I thought I was cruising along quite nicely
    until I tested it. This is what I received:

    *Not Found*

    The requested URL /xymon was not found on this server.


    /Apache/2.2.15 (Red Hat) Server at 10.82.10.54 Port 80/


    Xymon is running, that I can confirm:


    [xymon at lsypf01a ~]$ ./server/xymon.sh status

    Xymon (xymonlaunch) running with PID 4826

    [xymon at lsypf01a ~]$


    Here is my xymon-apache.conf, I made changes from what I've read
    in the older subscription messages:


    Alias /xymon/  "/home/xymon/server/www/"

    <Directory "/home/xymon/server/www">

        Options Indexes FollowSymLinks Includes MultiViews

        Require all granted

    </Directory>


    ScriptAlias /xymon-cgi/ "/home/xymon/cgi-bin/"

    <Directory "/home/xymon/cgi-bin">

        AllowOverride None

        Options ExecCGI Includes

        Require all granted

    </Directory>


    ScriptAlias /xymon-seccgi/ "/home/xymon/cgi-secure/"

    <Directory "/home/xymon/cgi-secure">

        AllowOverride None

        Options ExecCGI Includes

        Require all granted


    Various logs in /var/log/xymon:


    Xymonlaunch.log:

    2013-12-11 13:24:00 xymonlaunch starting

    2013-12-11 13:24:00 Loading tasklist configuration from
    /home/xymon/server/etc/tasks.cfg

    2013-12-11 13:24:00 Cannot open directory
    /home/xymon/server/etc/tasks.d

    2013-12-11 13:24:00 Loading hostnames

    2013-12-11 13:24:00 Loading saved state

    2013-12-11 13:24:00 Setting up network listener on 0.0.0.0:1984
    <http://0.0.0.0:1984>;

    2013-12-11 13:24:00 Setting up signal handlers

    2013-12-11 13:24:00 Setting up xymond channels

    2013-12-11 13:24:00 Setting up logfiles


    Rrd-data.log:

    2013-12-11 13:34:13 Peer at 0.0.0.0:0 <http://0.0.0.0:0>; failed:
    Broken pipe

    2013-12-11 13:34:13 Peer not up, flushing message queue

    2013-12-11 13:34:13 exec() failed for child command xymond_rrd: No
    such file or directory

    2013-12-11 13:34:13 Child process 5357 died: Exit status 1


    *David Diep*


    * *

    Look out for those in need this winter. When the temperature or
    wind chill is 32°F or below, the District issues a Hypothermia
    Alert. For assistance during an Alert, call the Shelter Hotline
    <http://dhs.dc.gov/page/hypothermia-alert-plan>at *X-XXX-XXX-XXXX
    <tel:X-XXX-XXX-XXXX>* or *311*.

list David Diep · Wed, 11 Dec 2013 17:29:36 -0500 ·
Great idea, everyone... Thanks for all your help.

I'll give it a try tomorrow and send out an update. It'll be just my luck that one "/" would've messed up my install.

Thanks,

David

Look out for those in need this winter. When the temperature or wind chill is 32°F or below, the District issues a Hypothermia Alert. For assistance during an Alert, call the Shelter Hotline <http://dhs.dc.gov/page/hypothermia-alert-plan>; at X-XXX-XXX-XXXX or 311.
quoted from Japheth Cleaver


From: Japheth Cleaver [user-87556346d4af@xymon.invalid]
Sent: Wednesday, December 11, 2013 3:22 PM
To: Galen Johnson
Cc: Josh Luthman; Root, Paul T; xymon at xymon.com; Diep, David (OCTO-Contractor)
Subject: Re: [Xymon] 404 Not Found URL/xymon was not found on this server

You can also rewrite the existing Alias line to drop the final slash too. eg:
-Alias @XYMONHOSTURL@/  "@INSTALLWWWDIR@/"
+Alias @XYMONHOSTURL@  "@INSTALLWWWDIR@"

For me, that's:
Alias /xymon  "/var/www/xymon"

The RPMs have done that for a while... haven't heard of any issues so far.

-jc


On Wed, December 11, 2013 11:46 am, Galen Johnson wrote:
To Josh's point, it requires the trailing slash.  If you want to ensure
that it always redirects to /xymon/, just add a rewrite rule to apache's
httpd.conf...it may even work in the xymon.conf file:


RewriteEngine on
RewriteRule  ^/xymon$           /xymon/  [R,L]

=G=

On 12/11/2013 02:38 PM, Josh Luthman wrote:
Did you see my answer about requesting the wrong directory?


Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX


On Wed, Dec 11, 2013 at 2:37 PM, Root, Paul T
<user-76fdb6883669@xymon.invalid <mailto:user-76fdb6883669@xymon.invalid>> wrote:

    Any error messages in apache log files?


    *From:*Diep, David (OCTO-Contractor) [mailto:user-ca44d68fd6e2@xymon.invalid
    <mailto:user-ca44d68fd6e2@xymon.invalid>]
    *Sent:* Wednesday, December 11, 2013 1:19 PM
    *To:* Root, Paul T; 'xymon at xymon.com <mailto:xymon at xymon.com>'


    *Subject:* RE: 404 Not Found URL/xymon was not found on this server


    Hi Paul,


    I saw that thread and I did go to the config file to make sure...


    XYMONSERVERROOT="/home/xymon"                   # Where Xymon is
    installed

    XYMONSERVERLOGS="/var/log/xymon"                        #
    Directory for server logs. The xymon user must have write-access
here.

    XYMONCLIENTHOME="/home/xymon/client"            # XYMONHOME
    directory for the client


    XYMONSERVERHOSTNAME="lsypf01a.in.domain"        # The hostname of
    your server

    XYMONSERVERIP="10.82.10.54"                     # The IP-address
    of your server. Use the real one, not 127.0.0.1 .

    XYMONSERVEROS="linux"                   # The operating system of
    your server. linux,freebsd,solaris,hpux,aix,osf


    XYMONSERVERWWWNAME="lsypf01a.in.domain"         # The name used
    for this hosts' webserver

    XYMONSERVERWWWURL="/xymon"              # The top URL for the
    Xymon webpages

    XYMONSERVERCGIURL="/xymon-cgi"          # The URL for the Xymon
    CGI scripts.

    XYMONSERVERSECURECGIURL="/xymon-seccgi" # The URL for the secured
    Xymon CGI scripts.


    # XYMONNETWORK="foo"                            # The network
    location, makes xymonnet test only hosts with NET:foo

                                                    # You only need to
    set this if you have multiple network test servers with

                                                    # a shared
    hosts.cfg file.


    # Make sure the path includes the directories where you have
    fping, mail and (optionally) ntpdate installed,

    # as well as the XYMONHOME/bin directory where all of the Xymon
    programs reside.

    PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/home/xymon/server/bin"

    SHELL="/bin/sh"                                 # Shell to use
    when forking programs


    # Some systems need extra settings e.g. to locate run-time
libraries.

    # You can add these extra settings here:


    # Default settings for "delayred" and "delayyellow" parameters in
    hosts.cfg

    DELAYRED=""                     # Format:
    status:delay[,status:delay - e.g. "cpu:15,disk:30"

    DELAYYELLOW=""                  # Format:
    status:delay[,status:delay - e.g. "cpu:15,disk:30"


    ##### Normally you do not need to modify anything below this point
    #####


    # General settings

    XYMONDPORT="1984"               # Portnumber where xymond listens

    XYMSRV="10.82.10.54"            # IP of a single Xymon server

    XYMSERVERS=""                   # IP of multiple Xymon servers. If
    used, XYMSRV must be 0.0.0.0

    FQDN="TRUE"                     # Use fully-qualified hostnames
    internally. Keep it TRUE unless you know better.


    I restarted xymon first and then apache... still no luck.


    [xymon at lsypf01a ~]$ ./server/xymon.sh restart

    Xymon stopped

    Xymon started

    [root at lsypf01a etc]# service httpd restart

    Stopping httpd: [  OK  ]

    Starting httpd: [  OK  ]


    http://10.82.10.54 is served, but not http://10.82.10.54/xymon


    D'oh.


    *David Diep**|* IBM Z Series Network Architect | Office of the
    Chief Technology Officer

    Integrated Platform Services | 200 I Steet SE | Washington DC,
20003**

    Phone: XXX.XXX.XXXX <tel:XXX.XXX.XXXX> *| *Mobile Phone:
    XXX.XXX.XXXX <tel:XXX.XXX.XXXX> *| *Email:user-7c2f16abb331@xymon.invalid
    <mailto:user-ca44d68fd6e2@xymon.invalid>_

    Website:www.octo.dc.gov <http://www.octo.dc.gov/>; *| **Telework
    day: Thursday*


    *From:*Root, Paul T [mailto:user-76fdb6883669@xymon.invalid]
    *Sent:* Wednesday, December 11, 2013 2:04 PM
    *To:* Diep, David (OCTO-Contractor); 'xymon at xymon.com
    <mailto:xymon at xymon.com>'
    *Subject:* RE: 404 Not Found URL/xymon was not found on this server


    We just had this one.


    You see that xymon is listening on 0.0.0.0:1984
    <http://0.0.0.0:1984>;. You need to change you XYMONSERVERIP
    environment in xymonserver.cfg to the IP address of the server.
    Also set XYMONSERVERHOSTNAME to the hostname and XZYMSRV to the ip
    address as well. Then restart xymon.


    I'm assuming you did restart apache after you put the
    xymon-apache.conf into /etc/httpd/conf.d, right?


    *From:*Xymon [mailto:xymon-bounces at xymon.com] *On Behalf Of *Diep,
    David (OCTO-Contractor)
    *Sent:* Wednesday, December 11, 2013 12:48 PM
    *To:* xymon at xymon.com <mailto:xymon at xymon.com>
    *Subject:* [Xymon] 404 Not Found URL/xymon was not found on this
    server


    Hi Everyone,


    I'm very very new to XYMON, as a matter of fact, I just installed
    it 15 minutes ago. I thought I was cruising along quite nicely
    until I tested it. This is what I received:

    *Not Found*

    The requested URL /xymon was not found on this server.


    /Apache/2.2.15 (Red Hat) Server at 10.82.10.54 Port 80/


    Xymon is running, that I can confirm:


    [xymon at lsypf01a ~]$ ./server/xymon.sh status

    Xymon (xymonlaunch) running with PID 4826

    [xymon at lsypf01a ~]$


    Here is my xymon-apache.conf, I made changes from what I've read
    in the older subscription messages:


    Alias /xymon/  "/home/xymon/server/www/"

    <Directory "/home/xymon/server/www">

        Options Indexes FollowSymLinks Includes MultiViews

        Require all granted

    </Directory>


    ScriptAlias /xymon-cgi/ "/home/xymon/cgi-bin/"

    <Directory "/home/xymon/cgi-bin">

        AllowOverride None

        Options ExecCGI Includes

        Require all granted

    </Directory>


    ScriptAlias /xymon-seccgi/ "/home/xymon/cgi-secure/"

    <Directory "/home/xymon/cgi-secure">

        AllowOverride None

        Options ExecCGI Includes

        Require all granted


    Various logs in /var/log/xymon:


    Xymonlaunch.log:

    2013-12-11 13:24:00 xymonlaunch starting

    2013-12-11 13:24:00 Loading tasklist configuration from
    /home/xymon/server/etc/tasks.cfg

    2013-12-11 13:24:00 Cannot open directory
    /home/xymon/server/etc/tasks.d

    2013-12-11 13:24:00 Loading hostnames

    2013-12-11 13:24:00 Loading saved state

    2013-12-11 13:24:00 Setting up network listener on 0.0.0.0:1984
    <http://0.0.0.0:1984>;

    2013-12-11 13:24:00 Setting up signal handlers

    2013-12-11 13:24:00 Setting up xymond channels

    2013-12-11 13:24:00 Setting up logfiles


    Rrd-data.log:

    2013-12-11 13:34:13 Peer at 0.0.0.0:0 <http://0.0.0.0:0>; failed:
    Broken pipe

    2013-12-11 13:34:13 Peer not up, flushing message queue

    2013-12-11 13:34:13 exec() failed for child command xymond_rrd: No
    such file or directory

    2013-12-11 13:34:13 Child process 5357 died: Exit status 1


    *David Diep*


    * *

    Look out for those in need this winter. When the temperature or
    wind chill is 32°F or below, the District issues a Hypothermia
    Alert. For assistance during an Alert, call the Shelter Hotline
    <http://dhs.dc.gov/page/hypothermia-alert-plan>at *X-XXX-XXX-XXXX
    <tel:X-XXX-XXX-XXXX>* or *311*.

list David Diep · Thu, 12 Dec 2013 08:15:10 -0500 ·
Good morning guys,


I made a change to xymon-apache.conf, all I did was remove the trailing "/":


From:
quoted from David Diep


Alias /xymon/  "/home/xymon/server/www/"

<Directory "/home/xymon/server/www">

    Options Indexes FollowSymLinks Includes MultiViews

    Require all granted

</Directory>


To:
quoted from David Diep


Alias /xymon  "/home/xymon/server/www"

<Directory "/home/xymon/server/www">

    Options Indexes FollowSymLinks Includes MultiViews

    Require all granted

</Directory>


After the restart, I do see something different:


At the http://ipaddress/xymon


Forbidden
You don't have permission to access /xymon on this server.
Apache/2.2.15 (Red Hat) Server at 10.82.10.54 Port 80


In the error_log in /var/httpd:


[Thu Dec 12 07:54:26 2013] [error] [client 10.44.35.35] (13)Permission denied: access to /xymon denied


I went back to xymon_apache.conf and re-added the original allow parameter. This did it!


Alias /xymon  "/home/xymon/server/www"

<Directory "/home/xymon/server/www">

    Options Indexes FollowSymLinks Includes MultiViews

    Order allow,deny

    Allow from all

</Directory>


ScriptAlias /xymon-cgi/ "/home/xymon/cgi-bin/"

<Directory "/home/xymon/cgi-bin">

    AllowOverride None

    Options ExecCGI Includes

    Order allow,deny

    Allow from all

</Directory>


ScriptAlias /xymon-seccgi/ "/home/xymon/cgi-secure/"

<Directory "/home/xymon/cgi-secure">

    AllowOverride None

    Options ExecCGI Includes

    Order allow,deny

    Allow from all


I now can bring up the page... hooray!  Time to continue playing.


Thanks everyone!
signature


Look out for those in need this winter. When the temperature or wind chill is 32°F or below, the District issues a Hypothermia Alert. For assistance during an Alert, call the Shelter Hotline<http://dhs.dc.gov/page/hypothermia-alert-plan>; at X-XXX-XXX-XXXX or 311.


-----Original Message-----

quoted from Japheth Cleaver
From: Japheth Cleaver [mailto:user-87556346d4af@xymon.invalid]
Sent: Wednesday, December 11, 2013 3:23 PM
To: Galen Johnson
Cc: Josh Luthman; Root, Paul T; xymon at xymon.com; Diep, David (OCTO-Contractor)
Subject: Re: [Xymon] 404 Not Found URL/xymon was not found on this server


You can also rewrite the existing Alias line to drop the final slash too. eg:

-Alias @XYMONHOSTURL@/  "@INSTALLWWWDIR@/"

+Alias @XYMONHOSTURL@  "@INSTALLWWWDIR@"


For me, that's:

Alias /xymon  "/var/www/xymon"


The RPMs have done that for a while... haven't heard of any issues so far.


-jc


On Wed, December 11, 2013 11:46 am, Galen Johnson wrote:
To Josh's point, it requires the trailing slash.  If you want to
ensure that it always redirects to /xymon/, just add a rewrite rule to
apache's httpd.conf...it may even work in the xymon.conf file:
RewriteEngine on
RewriteRule  ^/xymon$           /xymon/  [R,L]
=G=
On 12/11/2013 02:38 PM, Josh Luthman wrote:
Did you see my answer about requesting the wrong directory?
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
On Wed, Dec 11, 2013 at 2:37 PM, Root, Paul T
<user-76fdb6883669@xymon.invalid <mailto:user-76fdb6883669@xymon.invalid<mailto:user-76fdb6883669@xymon.invalid%20%3cmailto:user-76fdb6883669@xymon.invalid>>> wrote:
    Any error messages in apache log files?
    *From:*Diep, David (OCTO-Contractor) [mailto:user-ca44d68fd6e2@xymon.invalid
    <mailto:user-ca44d68fd6e2@xymon.invalid>]
    *Sent:* Wednesday, December 11, 2013 1:19 PM
    *To:* Root, Paul T; 'xymon at xymon.com <mailto:xymon at xymon.com>'
    *Subject:* RE: 404 Not Found URL/xymon was not found on this
server
    Hi Paul,
    I saw that thread and I did go to the config file to make sure...
    XYMONSERVERROOT="/home/xymon"                   # Where Xymon is
    installed
    XYMONSERVERLOGS="/var/log/xymon"                        #
    Directory for server logs. The xymon user must have write-access
here.
    XYMONCLIENTHOME="/home/xymon/client"            # XYMONHOME
    directory for the client
    XYMONSERVERHOSTNAME="lsypf01a.in.domain"        # The hostname of
    your server
    XYMONSERVERIP="10.82.10.54"                     # The IP-address
    of your server. Use the real one, not 127.0.0.1 .
    XYMONSERVEROS="linux"                   # The operating system of
    your server. linux,freebsd,solaris,hpux,aix,osf
    XYMONSERVERWWWNAME="lsypf01a.in.domain"         # The name used
    for this hosts' webserver
    XYMONSERVERWWWURL="/xymon"              # The top URL for the
    Xymon webpages
    XYMONSERVERCGIURL="/xymon-cgi"          # The URL for the Xymon
    CGI scripts.
    XYMONSERVERSECURECGIURL="/xymon-seccgi" # The URL for the secured
    Xymon CGI scripts.
    # XYMONNETWORK="foo"                            # The network
    location, makes xymonnet test only hosts with NET:foo
                                                    # You only need to
    set this if you have multiple network test servers with
                                                    # a shared
    hosts.cfg file.
    # Make sure the path includes the directories where you have
    fping, mail and (optionally) ntpdate installed,
    # as well as the XYMONHOME/bin directory where all of the Xymon
    programs reside.
    PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/home/xymon/server/bin"
    SHELL="/bin/sh"                                 # Shell to use
    when forking programs
    # Some systems need extra settings e.g. to locate run-time
libraries.
    # You can add these extra settings here:
    # Default settings for "delayred" and "delayyellow" parameters in
    hosts.cfg
    DELAYRED=""                     # Format:
    status:delay[,status:delay - e.g. "cpu:15,disk:30"
    DELAYYELLOW=""                  # Format:
    status:delay[,status:delay - e.g. "cpu:15,disk:30"
    ##### Normally you do not need to modify anything below this point
    #####
    # General settings
    XYMONDPORT="1984"               # Portnumber where xymond listens
    XYMSRV="10.82.10.54"            # IP of a single Xymon server
    XYMSERVERS=""                   # IP of multiple Xymon servers. If
    used, XYMSRV must be 0.0.0.0
    FQDN="TRUE"                     # Use fully-qualified hostnames
    internally. Keep it TRUE unless you know better.
    I restarted xymon first and then apache... still no luck.
    [xymon at lsypf01a ~]$ ./server/xymon.sh restart
    Xymon stopped
    Xymon started
    [root at lsypf01a etc]# service httpd restart
    Stopping httpd: [  OK  ]
    Starting httpd: [  OK  ]
    http://10.82.10.54 is served, but not http://10.82.10.54/xymon
    D'oh.
    *David Diep**|* IBM Z Series Network Architect | Office of the
    Chief Technology Officer
    Integrated Platform Services | 200 I Steet SE | Washington DC,
20003**
    Phone: XXX.XXX.XXXX <tel:XXX.XXX.XXXX> *| *Mobile Phone:
    XXX.XXX.XXXX <tel:XXX.XXX.XXXX> *| *Email:user-7c2f16abb331@xymon.invalid
    <mailto:user-ca44d68fd6e2@xymon.invalid>_
    Website:www.octo.dc.gov <http://www.octo.dc.gov/>; *| **Telework
    day: Thursday*
    *From:*Root, Paul T [mailto:user-76fdb6883669@xymon.invalid]<mailto:[mailto:user-76fdb6883669@xymon.invalid]>
quoted from David Diep
    *Sent:* Wednesday, December 11, 2013 2:04 PM
    *To:* Diep, David (OCTO-Contractor); 'xymon at xymon.com
    <mailto:xymon at xymon.com>'
    *Subject:* RE: 404 Not Found URL/xymon was not found on this
server
    We just had this one.
    You see that xymon is listening on 0.0.0.0:1984
    <http://0.0.0.0:1984>;. You need to change you XYMONSERVERIP
    environment in xymonserver.cfg to the IP address of the server.
    Also set XYMONSERVERHOSTNAME to the hostname and XZYMSRV to the ip
    address as well. Then restart xymon.
    I'm assuming you did restart apache after you put the
    xymon-apache.conf into /etc/httpd/conf.d, right?
    *From:*Xymon [mailto:xymon-bounces at xymon.com]<mailto:[mailto:xymon-bounces at xymon.com]> *On Behalf Of *Diep,
quoted from David Diep
    David (OCTO-Contractor)
    *Sent:* Wednesday, December 11, 2013 12:48 PM
    *To:* xymon at xymon.com<mailto:xymon at xymon.com> <mailto:xymon at xymon.com>
    *Subject:* [Xymon] 404 Not Found URL/xymon was not found on this
    server
    Hi Everyone,
    I'm very very new to XYMON, as a matter of fact, I just installed
    it 15 minutes ago. I thought I was cruising along quite nicely
    until I tested it. This is what I received:
    *Not Found*
    The requested URL /xymon was not found on this server.
---
    /Apache/2.2.15 (Red Hat) Server at 10.82.10.54 Port 80/
    Xymon is running, that I can confirm:
    [xymon at lsypf01a ~]$ ./server/xymon.sh status
    Xymon (xymonlaunch) running with PID 4826
    [xymon at lsypf01a ~]$
    Here is my xymon-apache.conf, I made changes from what I've read
    in the older subscription messages:
    Alias /xymon/  "/home/xymon/server/www/"
    <Directory "/home/xymon/server/www">
        Options Indexes FollowSymLinks Includes MultiViews
        Require all granted
    </Directory>
    ScriptAlias /xymon-cgi/ "/home/xymon/cgi-bin/"
    <Directory "/home/xymon/cgi-bin">
        AllowOverride None
        Options ExecCGI Includes
        Require all granted
    </Directory>
    ScriptAlias /xymon-seccgi/ "/home/xymon/cgi-secure/"
    <Directory "/home/xymon/cgi-secure">
        AllowOverride None
        Options ExecCGI Includes
        Require all granted
    Various logs in /var/log/xymon:
    Xymonlaunch.log:
    2013-12-11 13:24:00 xymonlaunch starting
    2013-12-11 13:24:00 Loading tasklist configuration from
    /home/xymon/server/etc/tasks.cfg
    2013-12-11 13:24:00 Cannot open directory
    /home/xymon/server/etc/tasks.d
    2013-12-11 13:24:00 Loading hostnames
    2013-12-11 13:24:00 Loading saved state
    2013-12-11 13:24:00 Setting up network listener on 0.0.0.0:1984
    <http://0.0.0.0:1984>;
    2013-12-11 13:24:00 Setting up signal handlers
    2013-12-11 13:24:00 Setting up xymond channels
    2013-12-11 13:24:00 Setting up logfiles
    Rrd-data.log:
    2013-12-11 13:34:13 Peer at 0.0.0.0:0 <http://0.0.0.0:0>; failed:
    Broken pipe
    2013-12-11 13:34:13 Peer not up, flushing message queue
    2013-12-11 13:34:13 exec() failed for child command xymond_rrd: No
    such file or directory
    2013-12-11 13:34:13 Child process 5357 died: Exit status 1
    *David Diep*
    * *
    Look out for those in need this winter. When the temperature or
    wind chill is 32°F or below, the District issues a Hypothermia
    Alert. For assistance during an Alert, call the Shelter Hotline
    <http://dhs.dc.gov/page/hypothermia-alert-plan>at *X-XXX-XXX-XXXX
    <tel:X-XXX-XXX-XXXX>* or *311*.
list Josh Luthman · Thu, 12 Dec 2013 08:52:44 -0500 ·
Namei -mx that directory?
quoted from David Diep

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

On Dec 12, 2013 8:15 AM, "Diep, David (OCTO-Contractor)" <user-ca44d68fd6e2@xymon.invalid>
quoted from David Diep
wrote:
Good morning guys,


I made a change to xymon-apache.conf, all I did was remove the trailing
"/":


From:


Alias /xymon/  "/home/xymon/server/www/"

<Directory "/home/xymon/server/www">

    Options Indexes FollowSymLinks Includes MultiViews

    Require all granted

</Directory>


To:


Alias /xymon  "/home/xymon/server/www"

<Directory "/home/xymon/server/www">

    Options Indexes FollowSymLinks Includes MultiViews

    Require all granted

</Directory>


After the restart, I do see something different:


At the http://ipaddress/xymon


*Forbidden*

You don't have permission to access /xymon on this server.

*Apache/2.2.15 (Red Hat) Server at 10.82.10.54 Port 80*


In the error_log in /var/httpd:


[Thu Dec 12 07:54:26 2013] [error] [client 10.44.35.35] (13)Permission
denied: access to /xymon denied


I went back to xymon_apache.conf and re-added the original allow
parameter. This did it!


Alias /xymon  "/home/xymon/server/www"

<Directory "/home/xymon/server/www">

    Options Indexes FollowSymLinks Includes MultiViews

    Order allow,deny

    Allow from all

</Directory>


ScriptAlias /xymon-cgi/ "/home/xymon/cgi-bin/"

<Directory "/home/xymon/cgi-bin">

    AllowOverride None

    Options ExecCGI Includes

    Order allow,deny

    Allow from all

</Directory>


ScriptAlias /xymon-seccgi/ "/home/xymon/cgi-secure/"

<Directory "/home/xymon/cgi-secure">

    AllowOverride None

    Options ExecCGI Includes

    Order allow,deny

    Allow from all


I now can bring up the page… hooray!  Time to continue playing.


Thanks everyone!


Look out for those in need this winter. When the temperature or wind chill
is 32°F or below, the District issues a Hypothermia Alert. For assistance
during an Alert, call the Shelter Hotline<http://dhs.dc.gov/page/hypothermia-alert-plan>at *X-XXX-XXX-XXXX
<X-XXX-XXX-XXXX>* or *311*.

-----Original Message-----
From: Japheth Cleaver [mailto:user-87556346d4af@xymon.invalid]
Sent: Wednesday, December 11, 2013 3:23 PM
To: Galen Johnson
Cc: Josh Luthman; Root, Paul T; xymon at xymon.com; Diep, David
(OCTO-Contractor)
Subject: Re: [Xymon] 404 Not Found URL/xymon was not found on this server


You can also rewrite the existing Alias line to drop the final slash too.
eg:

-Alias @XYMONHOSTURL@/  "@INSTALLWWWDIR@/"

+Alias @XYMONHOSTURL@  "@INSTALLWWWDIR@"


For me, that's:

Alias /xymon  "/var/www/xymon"


The RPMs have done that for a while... haven't heard of any issues so far.


-jc


On Wed, December 11, 2013 11:46 am, Galen Johnson wrote:
To Josh's point, it requires the trailing slash.  If you want to
ensure that it always redirects to /xymon/, just add a rewrite rule to
apache's httpd.conf...it may even work in the xymon.conf file:
RewriteEngine on
RewriteRule  ^/xymon$           /xymon/  [R,L]
=G=
On 12/11/2013 02:38 PM, Josh Luthman wrote:
Did you see my answer about requesting the wrong directory?
Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
On Wed, Dec 11, 2013 at 2:37 PM, Root, Paul T
<user-76fdb6883669@xymon.invalid <mailto:user-76fdb6883669@xymon.invalid>> wrote:
    Any error messages in apache log files?
    *From:*Diep, David (OCTO-Contractor) [mailto:user-ca44d68fd6e2@xymon.invalid
    <mailto:user-ca44d68fd6e2@xymon.invalid <user-ca44d68fd6e2@xymon.invalid>>]
    *Sent:* Wednesday, December 11, 2013 1:19 PM
    *To:* Root, Paul T; 'xymon at xymon.com <mailto:xymon at xymon.com<xymon at xymon.com>
quoted from David Diep
'
    *Subject:* RE: 404 Not Found URL/xymon was not found on this
server
    Hi Paul,
    I saw that thread and I did go to the config file to make sure...
    XYMONSERVERROOT="/home/xymon"                   # Where Xymon is
    installed
    XYMONSERVERLOGS="/var/log/xymon"                        #
    Directory for server logs. The xymon user must have write-access
here.
    XYMONCLIENTHOME="/home/xymon/client"            # XYMONHOME
    directory for the client
    XYMONSERVERHOSTNAME="lsypf01a.in.domain"        # The hostname of
    your server
    XYMONSERVERIP="10.82.10.54"                     # The IP-address
    of your server. Use the real one, not 127.0.0.1 .
    XYMONSERVEROS="linux"                   # The operating system of
    your server. linux,freebsd,solaris,hpux,aix,osf
    XYMONSERVERWWWNAME="lsypf01a.in.domain"         # The name used
    for this hosts' webserver
    XYMONSERVERWWWURL="/xymon"              # The top URL for the
    Xymon webpages
    XYMONSERVERCGIURL="/xymon-cgi"          # The URL for the Xymon
    CGI scripts.
    XYMONSERVERSECURECGIURL="/xymon-seccgi" # The URL for the secured
    Xymon CGI scripts.
    # XYMONNETWORK="foo"                            # The network
    location, makes xymonnet test only hosts with NET:foo
                                                    # You only need to
    set this if you have multiple network test servers with
                                                    # a shared
    hosts.cfg file.
    # Make sure the path includes the directories where you have
    fping, mail and (optionally) ntpdate installed,
    # as well as the XYMONHOME/bin directory where all of the Xymon
    programs reside.
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/home/xymon/server/bin"
    SHELL="/bin/sh"                                 # Shell to use
    when forking programs
    # Some systems need extra settings e.g. to locate run-time
libraries.
    # You can add these extra settings here:
    # Default settings for "delayred" and "delayyellow" parameters in
    hosts.cfg
    DELAYRED=""                     # Format:
    status:delay[,status:delay - e.g. "cpu:15,disk:30"
    DELAYYELLOW=""                  # Format:
    status:delay[,status:delay - e.g. "cpu:15,disk:30"
    ##### Normally you do not need to modify anything below this point
    #####
    # General settings
    XYMONDPORT="1984"               # Portnumber where xymond listens
    XYMSRV="10.82.10.54"            # IP of a single Xymon server
    XYMSERVERS=""                   # IP of multiple Xymon servers. If
    used, XYMSRV must be 0.0.0.0
    FQDN="TRUE"                     # Use fully-qualified hostnames
    internally. Keep it TRUE unless you know better.
    I restarted xymon first and then apache... still no luck.
    [xymon at lsypf01a ~]$ ./server/xymon.sh restart
    Xymon stopped
    Xymon started
    [root at lsypf01a etc]# service httpd restart
    Stopping httpd: [  OK  ]
    Starting httpd: [  OK  ]
    http://10.82.10.54 is served, but not http://10.82.10.54/xymon
    D'oh.
    *David Diep**|* IBM Z Series Network Architect | Office of the
    Chief Technology Officer
    Integrated Platform Services | 200 I Steet SE | Washington DC,
20003**
    Phone: XXX.XXX.XXXX <tel:XXX.XXX.XXXX <XXX.XXX.XXXX>> *| *Mobile
Phone:
    XXX.XXX.XXXX <tel:XXX.XXX.XXXX <XXX.XXX.XXXX>> *| *
Email:user-7c2f16abb331@xymon.invalid
    <mailto:user-ca44d68fd6e2@xymon.invalid <user-ca44d68fd6e2@xymon.invalid>>_
quoted from David Diep
    Website:www.octo.dc.gov <http://www.octo.dc.gov/>; *| **Telework
    day: Thursday*
    *From:*Root, Paul T [mailto:user-76fdb6883669@xymon.invalid]
    *Sent:* Wednesday, December 11, 2013 2:04 PM
    *To:* Diep, David (OCTO-Contractor); 'xymon at xymon.com
    <mailto:xymon at xymon.com <xymon at xymon.com>>'
    *Subject:* RE: 404 Not Found URL/xymon was not found on this
server
    We just had this one.
    You see that xymon is listening on 0.0.0.0:1984
    <http://0.0.0.0:1984>;. You need to change you XYMONSERVERIP
    environment in xymonserver.cfg to the IP address of the server.
    Also set XYMONSERVERHOSTNAME to the hostname and XZYMSRV to the ip
    address as well. Then restart xymon.
    I'm assuming you did restart apache after you put the
    xymon-apache.conf into /etc/httpd/conf.d, right?
    *From:*Xymon [mailto:xymon-bounces at xymon.com] *On Behalf Of *Diep,
    David (OCTO-Contractor)
    *Sent:* Wednesday, December 11, 2013 12:48 PM
    *To:* xymon at xymon.com <mailto:xymon at xymon.com <xymon at xymon.com>>
    *Subject:* [Xymon] 404 Not Found URL/xymon was not found on this
    server
    Hi Everyone,
    I'm very very new to XYMON, as a matter of fact, I just installed
    it 15 minutes ago. I thought I was cruising along quite nicely
    until I tested it. This is what I received:
    *Not Found*
    The requested URL /xymon was not found on this server.
---
    /Apache/2.2.15 (Red Hat) Server at 10.82.10.54 Port 80/
    Xymon is running, that I can confirm:
    [xymon at lsypf01a ~]$ ./server/xymon.sh status
    Xymon (xymonlaunch) running with PID 4826
    [xymon at lsypf01a ~]$
    Here is my xymon-apache.conf, I made changes from what I've read
    in the older subscription messages:
    Alias /xymon/  "/home/xymon/server/www/"
    <Directory "/home/xymon/server/www">
        Options Indexes FollowSymLinks Includes MultiViews
        Require all granted
    </Directory>
    ScriptAlias /xymon-cgi/ "/home/xymon/cgi-bin/"
    <Directory "/home/xymon/cgi-bin">
        AllowOverride None
        Options ExecCGI Includes
        Require all granted
    </Directory>
    ScriptAlias /xymon-seccgi/ "/home/xymon/cgi-secure/"
    <Directory "/home/xymon/cgi-secure">
        AllowOverride None
        Options ExecCGI Includes
        Require all granted
    Various logs in /var/log/xymon:
    Xymonlaunch.log:
    2013-12-11 13:24:00 xymonlaunch starting
    2013-12-11 13:24:00 Loading tasklist configuration from
    /home/xymon/server/etc/tasks.cfg
    2013-12-11 13:24:00 Cannot open directory
    /home/xymon/server/etc/tasks.d
    2013-12-11 13:24:00 Loading hostnames
    2013-12-11 13:24:00 Loading saved state
    2013-12-11 13:24:00 Setting up network listener on 0.0.0.0:1984
    <http://0.0.0.0:1984>;
    2013-12-11 13:24:00 Setting up signal handlers
    2013-12-11 13:24:00 Setting up xymond channels
    2013-12-11 13:24:00 Setting up logfiles
    Rrd-data.log:
    2013-12-11 13:34:13 Peer at 0.0.0.0:0 <http://0.0.0.0:0>; failed:
    Broken pipe
    2013-12-11 13:34:13 Peer not up, flushing message queue
    2013-12-11 13:34:13 exec() failed for child command xymond_rrd: No
    such file or directory
    2013-12-11 13:34:13 Child process 5357 died: Exit status 1
    *David Diep*
    * *
    Look out for those in need this winter. When the temperature or
    wind chill is 32°F or below, the District issues a Hypothermia
    Alert. For assistance during an Alert, call the Shelter Hotline
    <http://dhs.dc.gov/page/hypothermia-alert-plan>at *X-XXX-XXX-XXXX
    <tel:X-XXX-XXX-XXXX <X-XXX-XXX-XXXX>>* or *311*.
list David Diep · Thu, 12 Dec 2013 09:07:07 -0500 ·
Here you go:

[root at lsypf01a cgi-bin]# namei -mx /home/xymon
f: /home/xymon
Dr-xr-xr-x /
drwxr-xr-x home
drwx--x--x xymon
[root at lsypf01a cgi-bin]# namei -mx /home/xymon/cgi-bin
f: /home/xymon/cgi-bin
Dr-xr-xr-x /
drwxr-xr-x home
drwx--x--x xymon
drwxr-xr-x cgi-bin
[root at lsypf01a cgi-bin]# ^C
[root at lsypf01a cgi-bin]# namei -mx /home/xymon/cgi-secure
f: /home/xymon/cgi-secure
Dr-xr-xr-x /
drwxr-xr-x home
drwx--x--x xymon
drwxr-xr-x cgi-secure
[root at lsypf01a cgi-bin]# namei -mx /home/xymon/client
f: /home/xymon/client
Dr-xr-xr-x /
drwxr-xr-x home
drwx--x--x xymon
drwxr-xr-x client
[root at lsypf01a cgi-bin]# namei -mx /home/xymon/data
f: /home/xymon/data
Dr-xr-xr-x /
drwxr-xr-x home
drwx--x--x xymon
drwxr-xr-x data
[root at lsypf01a cgi-bin]# namei -mx /home/xymon/server
f: /home/xymon/server
Dr-xr-xr-x /
drwxr-xr-x home
drwx--x--x xymon
drwxr-xr-x server
signature

David Diep | IBM Z Series Network Architect | Office of the Chief Technology Officer
Integrated Platform Services | 200 I Steet SE | Washington DC, 20003
Phone: XXX.XXX.XXXX | Mobile Phone: XXX.XXX.XXXX | Email:user-ca44d68fd6e2@xymon.invalid<mailto:user-ca44d68fd6e2@xymon.invalid>
Website: www.octo.dc.gov<http://www.octo.dc.gov/>; | Telework day: Thursday

quoted from Josh Luthman
From: Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid]
Sent: Thursday, December 12, 2013 8:53 AM
To: Diep, David (OCTO-Contractor)
Cc: user-87556346d4af@xymon.invalid; Root, Paul T; xymon at xymon.com; Galen Johnson
Subject: RE: [Xymon] 404 Not Found URL/xymon was not found on this server


Namei -mx that directory?

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
On Dec 12, 2013 8:15 AM, "Diep, David (OCTO-Contractor)" <user-ca44d68fd6e2@xymon.invalid<mailto:user-ca44d68fd6e2@xymon.invalid>> wrote:

Good morning guys,


I made a change to xymon-apache.conf, all I did was remove the trailing "/":


From:


Alias /xymon/  "/home/xymon/server/www/"

<Directory "/home/xymon/server/www">

    Options Indexes FollowSymLinks Includes MultiViews

    Require all granted

</Directory>


To:


Alias /xymon  "/home/xymon/server/www"

<Directory "/home/xymon/server/www">

    Options Indexes FollowSymLinks Includes MultiViews

    Require all granted

</Directory>


After the restart, I do see something different:


At the http://ipaddress/xymon


Forbidden
You don't have permission to access /xymon on this server.
Apache/2.2.15 (Red Hat) Server at 10.82.10.54 Port 80


In the error_log in /var/httpd:


[Thu Dec 12 07:54:26 2013] [error] [client 10.44.35.35] (13)Permission denied: access to /xymon denied


I went back to xymon_apache.conf and re-added the original allow parameter. This did it!


Alias /xymon  "/home/xymon/server/www"

<Directory "/home/xymon/server/www">

    Options Indexes FollowSymLinks Includes MultiViews

    Order allow,deny

    Allow from all

</Directory>


ScriptAlias /xymon-cgi/ "/home/xymon/cgi-bin/"

<Directory "/home/xymon/cgi-bin">

    AllowOverride None

    Options ExecCGI Includes

    Order allow,deny

    Allow from all

</Directory>


ScriptAlias /xymon-seccgi/ "/home/xymon/cgi-secure/"

<Directory "/home/xymon/cgi-secure">

    AllowOverride None

    Options ExecCGI Includes

    Order allow,deny

    Allow from all


I now can bring up the page... hooray!  Time to continue playing.


Thanks everyone!


Look out for those in need this winter. When the temperature or wind chill is 32°F or below, the District issues a Hypothermia Alert. For assistance during an Alert, call the Shelter Hotline<http://dhs.dc.gov/page/hypothermia-alert-plan>; at X-XXX-XXX-XXXX<tel:X-XXX-XXX-XXXX> or 311.


-----Original Message-----
From: Japheth Cleaver [mailto:user-87556346d4af@xymon.invalid<mailto:user-87556346d4af@xymon.invalid>]
Sent: Wednesday, December 11, 2013 3:23 PM
To: Galen Johnson
Cc: Josh Luthman; Root, Paul T; xymon at xymon.com<mailto:xymon at xymon.com>; Diep, David (OCTO-Contractor)
Subject: Re: [Xymon] 404 Not Found URL/xymon was not found on this server


You can also rewrite the existing Alias line to drop the final slash too. eg:

-Alias @XYMONHOSTURL@/  "@INSTALLWWWDIR@/"

+Alias @XYMONHOSTURL@  "@INSTALLWWWDIR@"


For me, that's:

Alias /xymon  "/var/www/xymon"


The RPMs have done that for a while... haven't heard of any issues so far.


-jc


On Wed, December 11, 2013 11:46 am, Galen Johnson wrote:
To Josh's point, it requires the trailing slash.  If you want to
ensure that it always redirects to /xymon/, just add a rewrite rule to
apache's httpd.conf...it may even work in the xymon.conf file:
RewriteEngine on
RewriteRule  ^/xymon$           /xymon/  [R,L]
=G=
On 12/11/2013 02:38 PM, Josh Luthman wrote:
Did you see my answer about requesting the wrong directory?
Josh Luthman
Office: XXX-XXX-XXXX<tel:XXX-XXX-XXXX>
Direct: XXX-XXX-XXXX<tel:XXX-XXX-XXXX>
quoted from Josh Luthman
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
On Wed, Dec 11, 2013 at 2:37 PM, Root, Paul T
<user-76fdb6883669@xymon.invalid <mailto:user-76fdb6883669@xymon.invalid<mailto:user-76fdb6883669@xymon.invalid%20%3cmailto:user-76fdb6883669@xymon.invalid>>> wrote:
    Any error messages in apache log files?
    *From:*Diep, David (OCTO-Contractor) [mailto:user-ca44d68fd6e2@xymon.invalid<mailto:user-ca44d68fd6e2@xymon.invalid>
quoted from Josh Luthman
    <mailto:user-ca44d68fd6e2@xymon.invalid>]
    *Sent:* Wednesday, December 11, 2013 1:19 PM
    *To:* Root, Paul T; 'xymon at xymon.com<mailto:xymon at xymon.com> <mailto:xymon at xymon.com>'
    *Subject:* RE: 404 Not Found URL/xymon was not found on this
server
    Hi Paul,
    I saw that thread and I did go to the config file to make sure...
    XYMONSERVERROOT="/home/xymon"                   # Where Xymon is
    installed
    XYMONSERVERLOGS="/var/log/xymon"                        #
    Directory for server logs. The xymon user must have write-access
here.
    XYMONCLIENTHOME="/home/xymon/client"            # XYMONHOME
    directory for the client
    XYMONSERVERHOSTNAME="lsypf01a.in.domain"        # The hostname of
    your server
    XYMONSERVERIP="10.82.10.54"                     # The IP-address
    of your server. Use the real one, not 127.0.0.1 .
    XYMONSERVEROS="linux"                   # The operating system of
    your server. linux,freebsd,solaris,hpux,aix,osf
    XYMONSERVERWWWNAME="lsypf01a.in.domain"         # The name used
    for this hosts' webserver
    XYMONSERVERWWWURL="/xymon"              # The top URL for the
    Xymon webpages
    XYMONSERVERCGIURL="/xymon-cgi"          # The URL for the Xymon
    CGI scripts.
    XYMONSERVERSECURECGIURL="/xymon-seccgi" # The URL for the secured
    Xymon CGI scripts.
    # XYMONNETWORK="foo"                            # The network
    location, makes xymonnet test only hosts with NET:foo
                                                    # You only need to
    set this if you have multiple network test servers with
                                                    # a shared
    hosts.cfg file.
    # Make sure the path includes the directories where you have
    fping, mail and (optionally) ntpdate installed,
    # as well as the XYMONHOME/bin directory where all of the Xymon
    programs reside.
    PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/home/xymon/server/bin"
    SHELL="/bin/sh"                                 # Shell to use
    when forking programs
    # Some systems need extra settings e.g. to locate run-time
libraries.
    # You can add these extra settings here:
    # Default settings for "delayred" and "delayyellow" parameters in
    hosts.cfg
    DELAYRED=""                     # Format:
    status:delay[,status:delay - e.g. "cpu:15,disk:30"
    DELAYYELLOW=""                  # Format:
    status:delay[,status:delay - e.g. "cpu:15,disk:30"
    ##### Normally you do not need to modify anything below this point
    #####
    # General settings
    XYMONDPORT="1984"               # Portnumber where xymond listens
    XYMSRV="10.82.10.54"            # IP of a single Xymon server
    XYMSERVERS=""                   # IP of multiple Xymon servers. If
    used, XYMSRV must be 0.0.0.0
    FQDN="TRUE"                     # Use fully-qualified hostnames
    internally. Keep it TRUE unless you know better.
    I restarted xymon first and then apache... still no luck.
    [xymon at lsypf01a ~]$ ./server/xymon.sh restart
    Xymon stopped
    Xymon started
    [root at lsypf01a etc]# service httpd restart
    Stopping httpd: [  OK  ]
    Starting httpd: [  OK  ]
    http://10.82.10.54 is served, but not http://10.82.10.54/xymon
    D'oh.
    *David Diep**|* IBM Z Series Network Architect | Office of the
    Chief Technology Officer
    Integrated Platform Services | 200 I Steet SE | Washington DC,
20003**
    Phone: XXX.XXX.XXXX<tel:XXX.XXX.XXXX> <tel:XXX.XXX.XXXX> *| *Mobile Phone:
    XXX.XXX.XXXX<tel:XXX.XXX.XXXX> <tel:XXX.XXX.XXXX> *| *Email:user-7c2f16abb331@xymon.invalid<mailto:user-bdb1ed031da9@xymon.invalid>
    <mailto:user-ca44d68fd6e2@xymon.invalid>_
    Website:www.octo.dc.gov<http://www.octo.dc.gov>; <http://www.octo.dc.gov/>; *| **Telework
quoted from Josh Luthman
    day: Thursday*
    *From:*Root, Paul T [mailto:user-76fdb6883669@xymon.invalid]<mailto:[mailto:user-76fdb6883669@xymon.invalid]>
    *Sent:* Wednesday, December 11, 2013 2:04 PM
    *To:* Diep, David (OCTO-Contractor); 'xymon at xymon.com<mailto:xymon at xymon.com>
    <mailto:xymon at xymon.com>'
    *Subject:* RE: 404 Not Found URL/xymon was not found on this
server
    We just had this one.
    You see that xymon is listening on 0.0.0.0:1984<http://0.0.0.0:1984>;
quoted from Josh Luthman
    <http://0.0.0.0:1984>;. You need to change you XYMONSERVERIP
    environment in xymonserver.cfg to the IP address of the server.
    Also set XYMONSERVERHOSTNAME to the hostname and XZYMSRV to the ip
    address as well. Then restart xymon.
    I'm assuming you did restart apache after you put the
    xymon-apache.conf into /etc/httpd/conf.d, right?
    *From:*Xymon [mailto:xymon-bounces at xymon.com]<mailto:[mailto:xymon-bounces at xymon.com]> *On Behalf Of *Diep,
    David (OCTO-Contractor)
    *Sent:* Wednesday, December 11, 2013 12:48 PM
    *To:* xymon at xymon.com<mailto:xymon at xymon.com> <mailto:xymon at xymon.com>
    *Subject:* [Xymon] 404 Not Found URL/xymon was not found on this
    server
    Hi Everyone,
    I'm very very new to XYMON, as a matter of fact, I just installed
    it 15 minutes ago. I thought I was cruising along quite nicely
    until I tested it. This is what I received:
    *Not Found*
    The requested URL /xymon was not found on this server.
---
    /Apache/2.2.15 (Red Hat) Server at 10.82.10.54 Port 80/
    Xymon is running, that I can confirm:
    [xymon at lsypf01a ~]$ ./server/xymon.sh status
    Xymon (xymonlaunch) running with PID 4826
    [xymon at lsypf01a ~]$
    Here is my xymon-apache.conf, I made changes from what I've read
    in the older subscription messages:
    Alias /xymon/  "/home/xymon/server/www/"
    <Directory "/home/xymon/server/www">
        Options Indexes FollowSymLinks Includes MultiViews
        Require all granted
    </Directory>
    ScriptAlias /xymon-cgi/ "/home/xymon/cgi-bin/"
    <Directory "/home/xymon/cgi-bin">
        AllowOverride None
        Options ExecCGI Includes
        Require all granted
    </Directory>
    ScriptAlias /xymon-seccgi/ "/home/xymon/cgi-secure/"
    <Directory "/home/xymon/cgi-secure">
        AllowOverride None
        Options ExecCGI Includes
        Require all granted
    Various logs in /var/log/xymon:
    Xymonlaunch.log:
    2013-12-11 13:24:00 xymonlaunch starting
    2013-12-11 13:24:00 Loading tasklist configuration from
    /home/xymon/server/etc/tasks.cfg
    2013-12-11 13:24:00 Cannot open directory
    /home/xymon/server/etc/tasks.d
    2013-12-11 13:24:00 Loading hostnames
    2013-12-11 13:24:00 Loading saved state
    2013-12-11 13:24:00 Setting up network listener on 0.0.0.0:1984<http://0.0.0.0:1984>;
    <http://0.0.0.0:1984>;
    2013-12-11 13:24:00 Setting up signal handlers
    2013-12-11 13:24:00 Setting up xymond channels
    2013-12-11 13:24:00 Setting up logfiles
    Rrd-data.log:
    2013-12-11 13:34:13 Peer at 0.0.0.0:0<http://0.0.0.0:0>; <http://0.0.0.0:0>; failed:
    Broken pipe
    2013-12-11 13:34:13 Peer not up, flushing message queue
    2013-12-11 13:34:13 exec() failed for child command xymond_rrd: No
    such file or directory
    2013-12-11 13:34:13 Child process 5357 died: Exit status 1
    *David Diep*
    * *
    Look out for those in need this winter. When the temperature or
    wind chill is 32°F or below, the District issues a Hypothermia
    Alert. For assistance during an Alert, call the Shelter Hotline
    <http://dhs.dc.gov/page/hypothermia-alert-plan>at *X-XXX-XXX-XXXX<tel:X-XXX-XXX-XXXX>
    <tel:X-XXX-XXX-XXXX>* or *311*.
list Galen Johnson · Thu, 12 Dec 2013 09:21:34 -0500 ·
Ok this may sound stupid but...it looks like you're using apache 2.2...I
don't think the "Require all granted" works for that version (I believe
that is 2.4+).  Try changing that back to:

   Order allow,deny
   Allow from all

It looks like that was changed based on the thread prior where you had
it working...

=G=
quoted from David Diep

On 12/12/2013 09:07 AM, Diep, David (OCTO-Contractor) wrote:
Here you go:

 
[root at lsypf01a cgi-bin]# namei -mx /home/xymon

f: /home/xymon

Dr-xr-xr-x /

drwxr-xr-x home

drwx--x--x xymon

[root at lsypf01a cgi-bin]# namei -mx /home/xymon/cgi-bin

f: /home/xymon/cgi-bin

Dr-xr-xr-x /

drwxr-xr-x home

drwx--x--x xymon

drwxr-xr-x cgi-bin

[root at lsypf01a cgi-bin]# ^C

[root at lsypf01a cgi-bin]# namei -mx /home/xymon/cgi-secure

f: /home/xymon/cgi-secure

Dr-xr-xr-x /

drwxr-xr-x home

drwx--x--x xymon

drwxr-xr-x cgi-secure

[root at lsypf01a cgi-bin]# namei -mx /home/xymon/client

f: /home/xymon/client

Dr-xr-xr-x /

drwxr-xr-x home

drwx--x--x xymon

drwxr-xr-x client

[root at lsypf01a cgi-bin]# namei -mx /home/xymon/data

f: /home/xymon/data

Dr-xr-xr-x /

drwxr-xr-x home

drwx--x--x xymon

drwxr-xr-x data

[root at lsypf01a cgi-bin]# namei -mx /home/xymon/server

f: /home/xymon/server

Dr-xr-xr-x /

drwxr-xr-x home

drwx--x--x xymon

drwxr-xr-x server

 
*David Diep**|* IBM Z Series Network Architect | Office of the Chief
Technology Officer

Integrated Platform Services | 200 I Steet SE | Washington DC, 20003**

Phone: XXX.XXX.XXXX *| *Mobile Phone: XXX.XXX.XXXX *|
*Email:user-7c2f16abb331@xymon.invalid <mailto:user-ca44d68fd6e2@xymon.invalid>_

Website:www.octo.dc.gov <http://www.octo.dc.gov/>; *| **Telework day:
Thursday*

 

*From:*Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid]
quoted from David Diep
*Sent:* Thursday, December 12, 2013 8:53 AM
*To:* Diep, David (OCTO-Contractor)
*Cc:* user-87556346d4af@xymon.invalid; Root, Paul T; xymon at xymon.com; Galen Johnson
*Subject:* RE: [Xymon] 404 Not Found URL/xymon was not found on this
server

 
Namei -mx that directory?

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX

On Dec 12, 2013 8:15 AM, "Diep, David (OCTO-Contractor)"
<user-ca44d68fd6e2@xymon.invalid <mailto:user-ca44d68fd6e2@xymon.invalid>> wrote:

Good morning guys,

 
I made a change to xymon-apache.conf, all I did was remove the
trailing "/":

 
From:

 
Alias /xymon/  "/home/xymon/server/www/"

<Directory "/home/xymon/server/www">

    Options Indexes FollowSymLinks Includes MultiViews

    Require all granted

</Directory>

 
To:

 
Alias /xymon  "/home/xymon/server/www"

<Directory "/home/xymon/server/www">

    Options Indexes FollowSymLinks Includes MultiViews

    Require all granted

</Directory>

 
After the restart, I do see something different:

 
At the http://ipaddress/xymon

 
*Forbidden*

You don't have permission to access /xymon on this server.


/Apache/2.2.15 (Red Hat) Server at 10.82.10.54 Port 80/

 
In the error_log in /var/httpd:

 
[Thu Dec 12 07:54:26 2013] [error] [client 10.44.35.35] (13)Permission
denied: access to /xymon denied

 
I went back to xymon_apache.conf and re-added the original allow
parameter. This did it!

 
Alias /xymon  "/home/xymon/server/www"

<Directory "/home/xymon/server/www">

    Options Indexes FollowSymLinks Includes MultiViews

    Order allow,deny

    Allow from all

</Directory>

 
ScriptAlias /xymon-cgi/ "/home/xymon/cgi-bin/"

<Directory "/home/xymon/cgi-bin">

    AllowOverride None

    Options ExecCGI Includes

    Order allow,deny

    Allow from all

</Directory>

 
ScriptAlias /xymon-seccgi/ "/home/xymon/cgi-secure/"

<Directory "/home/xymon/cgi-secure">

    AllowOverride None

    Options ExecCGI Includes

    Order allow,deny

    Allow from all

 
I now can bring up the page... hooray!  Time to continue playing.

 
Thanks everyone!

 
* *

Look out for those in need this winter. When the temperature or wind
chill is 32°F or below, the District issues a Hypothermia Alert. For
assistance during an Alert, call the Shelter Hotline
<http://dhs.dc.gov/page/hypothermia-alert-plan>at *X-XXX-XXX-XXXX
<tel:X-XXX-XXX-XXXX>* or *311*.

 
-----Original Message-----
From: Japheth Cleaver [mailto:user-87556346d4af@xymon.invalid
<mailto:user-87556346d4af@xymon.invalid>]
Sent: Wednesday, December 11, 2013 3:23 PM
To: Galen Johnson
Cc: Josh Luthman; Root, Paul T; xymon at xymon.com
<mailto:xymon at xymon.com>; Diep, David (OCTO-Contractor)
Subject: Re: [Xymon] 404 Not Found URL/xymon was not found on this server

 
You can also rewrite the existing Alias line to drop the final slash
too. eg:

-Alias @XYMONHOSTURL@/  "@INSTALLWWWDIR@/"

+Alias @XYMONHOSTURL@  "@INSTALLWWWDIR@"

 
For me, that's:

Alias /xymon  "/var/www/xymon"

 
The RPMs have done that for a while... haven't heard of any issues so far.

 
-jc

 
On Wed, December 11, 2013 11:46 am, Galen Johnson wrote:
To Josh's point, it requires the trailing slash.  If you want to
ensure that it always redirects to /xymon/, just add a rewrite rule to
apache's httpd.conf...it may even work in the xymon.conf file:
RewriteEngine on
RewriteRule  ^/xymon$           /xymon/  [R,L]
=G=
On 12/11/2013 02:38 PM, Josh Luthman wrote:
Did you see my answer about requesting the wrong directory?
Josh Luthman
Office: XXX-XXX-XXXX <tel:XXX-XXX-XXXX>
Direct: XXX-XXX-XXXX <tel:XXX-XXX-XXXX>
quoted from David Diep
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
On Wed, Dec 11, 2013 at 2:37 PM, Root, Paul T
<user-76fdb6883669@xymon.invalid <mailto:user-76fdb6883669@xymon.invalid
wrote:
    Any error messages in apache log files?
    *From:*Diep, David (OCTO-Contractor) [mailto:user-ca44d68fd6e2@xymon.invalid
    <mailto:user-ca44d68fd6e2@xymon.invalid>]
    *Sent:* Wednesday, December 11, 2013 1:19 PM
    *To:* Root, Paul T; 'xymon at xymon.com <mailto:xymon at xymon.com>
<mailto:xymon at xymon.com>'
    *Subject:* RE: 404 Not Found URL/xymon was not found on this
server
    Hi Paul,
    I saw that thread and I did go to the config file to make sure...
    XYMONSERVERROOT="/home/xymon"                   # Where Xymon is
    installed
    XYMONSERVERLOGS="/var/log/xymon"                        #
    Directory for server logs. The xymon user must have write-access
here.
    XYMONCLIENTHOME="/home/xymon/client"            # XYMONHOME
    directory for the client
    XYMONSERVERHOSTNAME="lsypf01a.in.domain"        # The hostname of
    your server
    XYMONSERVERIP="10.82.10.54"                     # The IP-address
    of your server. Use the real one, not 127.0.0.1 .
    XYMONSERVEROS="linux"                   # The operating system of
    your server. linux,freebsd,solaris,hpux,aix,osf
    XYMONSERVERWWWNAME="lsypf01a.in.domain"         # The name used
    for this hosts' webserver
    XYMONSERVERWWWURL="/xymon"              # The top URL for the
    Xymon webpages
    XYMONSERVERCGIURL="/xymon-cgi"          # The URL for the Xymon
    CGI scripts.
    XYMONSERVERSECURECGIURL="/xymon-seccgi" # The URL for the secured
    Xymon CGI scripts.
    # XYMONNETWORK="foo"                            # The network
    location, makes xymonnet test only hosts with NET:foo
                                                    # You only need to
    set this if you have multiple network test servers with
                                                    # a shared
    hosts.cfg file.
    # Make sure the path includes the directories where you have
    fping, mail and (optionally) ntpdate installed,
    # as well as the XYMONHOME/bin directory where all of the Xymon
    programs reside.
PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/home/xymon/server/bin"
    SHELL="/bin/sh"                                 # Shell to use
    when forking programs
    # Some systems need extra settings e.g. to locate run-time
libraries.
    # You can add these extra settings here:
    # Default settings for "delayred" and "delayyellow" parameters in
    hosts.cfg
    DELAYRED=""                     # Format:
    status:delay[,status:delay - e.g. "cpu:15,disk:30"
    DELAYYELLOW=""                  # Format:
    status:delay[,status:delay - e.g. "cpu:15,disk:30"
    ##### Normally you do not need to modify anything below this point
    #####
    # General settings
    XYMONDPORT="1984"               # Portnumber where xymond listens
    XYMSRV="10.82.10.54"            # IP of a single Xymon server
    XYMSERVERS=""                   # IP of multiple Xymon servers. If
    used, XYMSRV must be 0.0.0.0
    FQDN="TRUE"                     # Use fully-qualified hostnames
    internally. Keep it TRUE unless you know better.
    I restarted xymon first and then apache... still no luck.
    [xymon at lsypf01a ~]$ ./server/xymon.sh restart
    Xymon stopped
    Xymon started
    [root at lsypf01a etc]# service httpd restart
    Stopping httpd: [  OK  ]
    Starting httpd: [  OK  ]
    http://10.82.10.54 is served, but not http://10.82.10.54/xymon
    D'oh.
    *David Diep**|* IBM Z Series Network Architect | Office of the
    Chief Technology Officer
    Integrated Platform Services | 200 I Steet SE | Washington DC,
20003**
    Phone: XXX.XXX.XXXX <tel:XXX.XXX.XXXX> <tel:XXX.XXX.XXXX> *|
*Mobile Phone:
    XXX.XXX.XXXX <tel:XXX.XXX.XXXX> <tel:XXX.XXX.XXXX> *|
*Email:user-7c2f16abb331@xymon.invalid <mailto:user-bdb1ed031da9@xymon.invalid>
    <mailto:user-ca44d68fd6e2@xymon.invalid>_
    Website:www.octo.dc.gov <http://www.octo.dc.gov>;
quoted from David Diep
<http://www.octo.dc.gov/>; *| **Telework
    day: Thursday*
    *From:*Root, Paul T [mailto:user-76fdb6883669@xymon.invalid]
    *Sent:* Wednesday, December 11, 2013 2:04 PM
    *To:* Diep, David (OCTO-Contractor); 'xymon at xymon.com
<mailto:xymon at xymon.com>
    <mailto:xymon at xymon.com>'
    *Subject:* RE: 404 Not Found URL/xymon was not found on this
server
    We just had this one.
    You see that xymon is listening on 0.0.0.0:1984
<http://0.0.0.0:1984>;
    <http://0.0.0.0:1984>;. You need to change you XYMONSERVERIP
    environment in xymonserver.cfg to the IP address of the server.
    Also set XYMONSERVERHOSTNAME to the hostname and XZYMSRV to the ip
    address as well. Then restart xymon.
    I'm assuming you did restart apache after you put the
    xymon-apache.conf into /etc/httpd/conf.d, right?
    *From:*Xymon [mailto:xymon-bounces at xymon.com]
<mailto:[mailto:xymon-bounces at xymon.com]> *On Behalf Of *Diep,
quoted from David Diep
    David (OCTO-Contractor)
    *Sent:* Wednesday, December 11, 2013 12:48 PM
    *To:* xymon at xymon.com <mailto:xymon at xymon.com>
<mailto:xymon at xymon.com>
    *Subject:* [Xymon] 404 Not Found URL/xymon was not found on this
    server
    Hi Everyone,
    I'm very very new to XYMON, as a matter of fact, I just installed
    it 15 minutes ago. I thought I was cruising along quite nicely
    until I tested it. This is what I received:
    *Not Found*
    The requested URL /xymon was not found on this server.
---
    /Apache/2.2.15 (Red Hat) Server at 10.82.10.54 Port 80/
    Xymon is running, that I can confirm:
    [xymon at lsypf01a ~]$ ./server/xymon.sh status
    Xymon (xymonlaunch) running with PID 4826
    [xymon at lsypf01a ~]$
    Here is my xymon-apache.conf, I made changes from what I've read
    in the older subscription messages:
    Alias /xymon/  "/home/xymon/server/www/"
    <Directory "/home/xymon/server/www">
        Options Indexes FollowSymLinks Includes MultiViews
        Require all granted
    </Directory>
    ScriptAlias /xymon-cgi/ "/home/xymon/cgi-bin/"
    <Directory "/home/xymon/cgi-bin">
        AllowOverride None
        Options ExecCGI Includes
        Require all granted
    </Directory>
    ScriptAlias /xymon-seccgi/ "/home/xymon/cgi-secure/"
    <Directory "/home/xymon/cgi-secure">
        AllowOverride None
        Options ExecCGI Includes
        Require all granted
    Various logs in /var/log/xymon:
    Xymonlaunch.log:
    2013-12-11 13:24:00 xymonlaunch starting
    2013-12-11 13:24:00 Loading tasklist configuration from
    /home/xymon/server/etc/tasks.cfg
    2013-12-11 13:24:00 Cannot open directory
    /home/xymon/server/etc/tasks.d
    2013-12-11 13:24:00 Loading hostnames
    2013-12-11 13:24:00 Loading saved state
    2013-12-11 13:24:00 Setting up network listener on 0.0.0.0:1984
<http://0.0.0.0:1984>;
    <http://0.0.0.0:1984>;
    2013-12-11 13:24:00 Setting up signal handlers
    2013-12-11 13:24:00 Setting up xymond channels
    2013-12-11 13:24:00 Setting up logfiles
    Rrd-data.log:
    2013-12-11 13:34:13 Peer at 0.0.0.0:0 <http://0.0.0.0:0>;
<http://0.0.0.0:0>; failed:
    Broken pipe
    2013-12-11 13:34:13 Peer not up, flushing message queue
    2013-12-11 13:34:13 exec() failed for child command xymond_rrd: No
    such file or directory
    2013-12-11 13:34:13 Child process 5357 died: Exit status 1
    *David Diep*
    * *
    Look out for those in need this winter. When the temperature or
    wind chill is 32°F or below, the District issues a Hypothermia
    Alert. For assistance during an Alert, call the Shelter Hotline
    <http://dhs.dc.gov/page/hypothermia-alert-plan>at
*X-XXX-XXX-XXXX <tel:X-XXX-XXX-XXXX>
    <tel:X-XXX-XXX-XXXX>* or *311*.
list David Diep · Thu, 12 Dec 2013 09:34:06 -0500 ·
You got it, Galen.

I did change it and it worked.... And I am using Apache/2.2.15 (Red Hat)

I'm happy and its up. I'm now going to configure other hosts... the instructions aren't too clear, do I just do the same install on the other machines? Once installed, I can pick a specific machine to be the main server to monitor the other servers?

Thanks for all your help!

David
quoted from Galen Johnson


From: Galen Johnson [mailto:user-87f955643e3d@xymon.invalid]
Sent: Thursday, December 12, 2013 9:22 AM
To: Diep, David (OCTO-Contractor); Josh Luthman
Cc: user-87556346d4af@xymon.invalid; Root, Paul T; xymon at xymon.com
Subject: Re: [Xymon] 404 Not Found URL/xymon was not found on this server

Ok this may sound stupid but...it looks like you're using apache 2.2...I don't think the "Require all granted" works for that version (I believe that is 2.4+).  Try changing that back to:

   Order allow,deny
   Allow from all
It looks like that was changed based on the thread prior where you had it working...

=G=
On 12/12/2013 09:07 AM, Diep, David (OCTO-Contractor) wrote:
Here you go:

[root at lsypf01a cgi-bin]# namei -mx /home/xymon
f: /home/xymon
Dr-xr-xr-x /
drwxr-xr-x home
drwx--x--x xymon
[root at lsypf01a cgi-bin]# namei -mx /home/xymon/cgi-bin
f: /home/xymon/cgi-bin
Dr-xr-xr-x /
drwxr-xr-x home
drwx--x--x xymon
drwxr-xr-x cgi-bin
[root at lsypf01a cgi-bin]# ^C
[root at lsypf01a cgi-bin]# namei -mx /home/xymon/cgi-secure
f: /home/xymon/cgi-secure
Dr-xr-xr-x /
drwxr-xr-x home
drwx--x--x xymon
drwxr-xr-x cgi-secure
[root at lsypf01a cgi-bin]# namei -mx /home/xymon/client
f: /home/xymon/client
Dr-xr-xr-x /
drwxr-xr-x home
drwx--x--x xymon
drwxr-xr-x client
[root at lsypf01a cgi-bin]# namei -mx /home/xymon/data
f: /home/xymon/data
Dr-xr-xr-x /
drwxr-xr-x home
drwx--x--x xymon
drwxr-xr-x data
[root at lsypf01a cgi-bin]# namei -mx /home/xymon/server
f: /home/xymon/server
Dr-xr-xr-x /
drwxr-xr-x home
drwx--x--x xymon
drwxr-xr-x server

David Diep | IBM Z Series Network Architect | Office of the Chief Technology Officer
Integrated Platform Services | 200 I Steet SE | Washington DC, 20003
Phone: XXX.XXX.XXXX | Mobile Phone: XXX.XXX.XXXX | Email:user-ca44d68fd6e2@xymon.invalid<mailto:user-ca44d68fd6e2@xymon.invalid>
Website: www.octo.dc.gov<http://www.octo.dc.gov/>; | Telework day: Thursday

From: Josh Luthman [mailto:user-4c45a83f15cb@xymon.invalid]
Sent: Thursday, December 12, 2013 8:53 AM
To: Diep, David (OCTO-Contractor)
Cc: user-87556346d4af@xymon.invalid<mailto:user-87556346d4af@xymon.invalid>; Root, Paul T; xymon at xymon.com<mailto:xymon at xymon.com>; Galen Johnson
Subject: RE: [Xymon] 404 Not Found URL/xymon was not found on this server


Namei -mx that directory?

Josh Luthman
Office: XXX-XXX-XXXX
Direct: XXX-XXX-XXXX
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
On Dec 12, 2013 8:15 AM, "Diep, David (OCTO-Contractor)" <user-ca44d68fd6e2@xymon.invalid<mailto:user-ca44d68fd6e2@xymon.invalid>> wrote:

Good morning guys,


I made a change to xymon-apache.conf, all I did was remove the trailing "/":


From:


Alias /xymon/  "/home/xymon/server/www/"

<Directory "/home/xymon/server/www">

    Options Indexes FollowSymLinks Includes MultiViews

    Require all granted

</Directory>


To:


Alias /xymon  "/home/xymon/server/www"

<Directory "/home/xymon/server/www">

    Options Indexes FollowSymLinks Includes MultiViews

    Require all granted

</Directory>


After the restart, I do see something different:


At the http://ipaddress/xymon


Forbidden
You don't have permission to access /xymon on this server.
Apache/2.2.15 (Red Hat) Server at 10.82.10.54 Port 80


In the error_log in /var/httpd:


[Thu Dec 12 07:54:26 2013] [error] [client 10.44.35.35] (13)Permission denied: access to /xymon denied


I went back to xymon_apache.conf and re-added the original allow parameter. This did it!


Alias /xymon  "/home/xymon/server/www"

<Directory "/home/xymon/server/www">

    Options Indexes FollowSymLinks Includes MultiViews

    Order allow,deny

    Allow from all

</Directory>


ScriptAlias /xymon-cgi/ "/home/xymon/cgi-bin/"

<Directory "/home/xymon/cgi-bin">

    AllowOverride None

    Options ExecCGI Includes

    Order allow,deny

    Allow from all

</Directory>


ScriptAlias /xymon-seccgi/ "/home/xymon/cgi-secure/"

<Directory "/home/xymon/cgi-secure">

    AllowOverride None

    Options ExecCGI Includes

    Order allow,deny

    Allow from all


I now can bring up the page... hooray!  Time to continue playing.


Thanks everyone!


Look out for those in need this winter. When the temperature or wind chill is 32°F or below, the District issues a Hypothermia Alert. For assistance during an Alert, call the Shelter Hotline<http://dhs.dc.gov/page/hypothermia-alert-plan>; at X-XXX-XXX-XXXX<tel:X-XXX-XXX-XXXX> or 311.


-----Original Message-----
From: Japheth Cleaver [mailto:user-87556346d4af@xymon.invalid<mailto:user-87556346d4af@xymon.invalid>]
Sent: Wednesday, December 11, 2013 3:23 PM
To: Galen Johnson
Cc: Josh Luthman; Root, Paul T; xymon at xymon.com<mailto:xymon at xymon.com>; Diep, David (OCTO-Contractor)
Subject: Re: [Xymon] 404 Not Found URL/xymon was not found on this server


You can also rewrite the existing Alias line to drop the final slash too. eg:

-Alias @XYMONHOSTURL@/  "@INSTALLWWWDIR@/"

+Alias @XYMONHOSTURL@  "@INSTALLWWWDIR@"


For me, that's:

Alias /xymon  "/var/www/xymon"


The RPMs have done that for a while... haven't heard of any issues so far.


-jc


On Wed, December 11, 2013 11:46 am, Galen Johnson wrote:
To Josh's point, it requires the trailing slash.  If you want to
ensure that it always redirects to /xymon/, just add a rewrite rule to
apache's httpd.conf...it may even work in the xymon.conf file:
RewriteEngine on
RewriteRule  ^/xymon$           /xymon/  [R,L]
=G=
On 12/11/2013 02:38 PM, Josh Luthman wrote:
Did you see my answer about requesting the wrong directory?
Josh Luthman
Office: XXX-XXX-XXXX<tel:XXX-XXX-XXXX>
Direct: XXX-XXX-XXXX<tel:XXX-XXX-XXXX>
XXXX Wayne St
Suite XXXX
Troy, OH XXXXX
On Wed, Dec 11, 2013 at 2:37 PM, Root, Paul T
<user-76fdb6883669@xymon.invalid <mailto:user-76fdb6883669@xymon.invalid<mailto:user-76fdb6883669@xymon.invalid%20%3cmailto:user-76fdb6883669@xymon.invalid>>> wrote:
    Any error messages in apache log files?
    *From:*Diep, David (OCTO-Contractor) [mailto:user-ca44d68fd6e2@xymon.invalid<mailto:user-ca44d68fd6e2@xymon.invalid>
    <mailto:user-ca44d68fd6e2@xymon.invalid>]
    *Sent:* Wednesday, December 11, 2013 1:19 PM
    *To:* Root, Paul T; 'xymon at xymon.com<mailto:xymon at xymon.com> <mailto:xymon at xymon.com>'
    *Subject:* RE: 404 Not Found URL/xymon was not found on this
server
    Hi Paul,
    I saw that thread and I did go to the config file to make sure...
    XYMONSERVERROOT="/home/xymon"                   # Where Xymon is
    installed
    XYMONSERVERLOGS="/var/log/xymon"                        #
    Directory for server logs. The xymon user must have write-access
here.
    XYMONCLIENTHOME="/home/xymon/client"            # XYMONHOME
    directory for the client
    XYMONSERVERHOSTNAME="lsypf01a.in.domain"        # The hostname of
    your server
    XYMONSERVERIP="10.82.10.54"                     # The IP-address
    of your server. Use the real one, not 127.0.0.1 .
    XYMONSERVEROS="linux"                   # The operating system of
    your server. linux,freebsd,solaris,hpux,aix,osf
    XYMONSERVERWWWNAME="lsypf01a.in.domain"         # The name used
    for this hosts' webserver
    XYMONSERVERWWWURL="/xymon"              # The top URL for the
    Xymon webpages
    XYMONSERVERCGIURL="/xymon-cgi"          # The URL for the Xymon
    CGI scripts.
    XYMONSERVERSECURECGIURL="/xymon-seccgi" # The URL for the secured
    Xymon CGI scripts.
    # XYMONNETWORK="foo"                            # The network
    location, makes xymonnet test only hosts with NET:foo
                                                    # You only need to
    set this if you have multiple network test servers with
                                                    # a shared
    hosts.cfg file.
    # Make sure the path includes the directories where you have
    fping, mail and (optionally) ntpdate installed,
    # as well as the XYMONHOME/bin directory where all of the Xymon
    programs reside.
    PATH="/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/home/xymon/server/bin"
    SHELL="/bin/sh"                                 # Shell to use
    when forking programs
    # Some systems need extra settings e.g. to locate run-time
libraries.
    # You can add these extra settings here:
    # Default settings for "delayred" and "delayyellow" parameters in
    hosts.cfg
    DELAYRED=""                     # Format:
    status:delay[,status:delay - e.g. "cpu:15,disk:30"
    DELAYYELLOW=""                  # Format:
    status:delay[,status:delay - e.g. "cpu:15,disk:30"
    ##### Normally you do not need to modify anything below this point
    #####
    # General settings
    XYMONDPORT="1984"               # Portnumber where xymond listens
    XYMSRV="10.82.10.54"            # IP of a single Xymon server
    XYMSERVERS=""                   # IP of multiple Xymon servers. If
    used, XYMSRV must be 0.0.0.0
    FQDN="TRUE"                     # Use fully-qualified hostnames
    internally. Keep it TRUE unless you know better.
    I restarted xymon first and then apache... still no luck.
    [xymon at lsypf01a ~]$ ./server/xymon.sh restart
    Xymon stopped
    Xymon started
    [root at lsypf01a etc]# service httpd restart
    Stopping httpd: [  OK  ]
    Starting httpd: [  OK  ]
    http://10.82.10.54 is served, but not http://10.82.10.54/xymon
    D'oh.
    *David Diep**|* IBM Z Series Network Architect | Office of the
    Chief Technology Officer
    Integrated Platform Services | 200 I Steet SE | Washington DC,
20003**
    Phone: XXX.XXX.XXXX<tel:XXX.XXX.XXXX> <tel:XXX.XXX.XXXX> *| *Mobile Phone:
    XXX.XXX.XXXX<tel:XXX.XXX.XXXX> <tel:XXX.XXX.XXXX> *| *Email:user-7c2f16abb331@xymon.invalid<mailto:user-bdb1ed031da9@xymon.invalid>
    <mailto:user-ca44d68fd6e2@xymon.invalid>_
    Website:www.octo.dc.gov<http://www.octo.dc.gov>; <http://www.octo.dc.gov/>; *| **Telework
    day: Thursday*
    *From:*Root, Paul T [mailto:user-76fdb6883669@xymon.invalid]<mailto:[mailto:user-76fdb6883669@xymon.invalid]>
    *Sent:* Wednesday, December 11, 2013 2:04 PM
    *To:* Diep, David (OCTO-Contractor); 'xymon at xymon.com<mailto:xymon at xymon.com>
    <mailto:xymon at xymon.com>'
    *Subject:* RE: 404 Not Found URL/xymon was not found on this
server
    We just had this one.
    You see that xymon is listening on 0.0.0.0:1984<http://0.0.0.0:1984>;
    <http://0.0.0.0:1984>;. You need to change you XYMONSERVERIP
    environment in xymonserver.cfg to the IP address of the server.
    Also set XYMONSERVERHOSTNAME to the hostname and XZYMSRV to the ip
    address as well. Then restart xymon.
    I'm assuming you did restart apache after you put the
    xymon-apache.conf into /etc/httpd/conf.d, right?
    *From:*Xymon [mailto:xymon-bounces at xymon.com]<mailto:[mailto:xymon-bounces at xymon.com]> *On Behalf Of *Diep,
    David (OCTO-Contractor)
    *Sent:* Wednesday, December 11, 2013 12:48 PM
    *To:* xymon at xymon.com<mailto:xymon at xymon.com> <mailto:xymon at xymon.com>
    *Subject:* [Xymon] 404 Not Found URL/xymon was not found on this
    server
    Hi Everyone,
    I'm very very new to XYMON, as a matter of fact, I just installed
    it 15 minutes ago. I thought I was cruising along quite nicely
    until I tested it. This is what I received:
    *Not Found*
    The requested URL /xymon was not found on this server.
---
    /Apache/2.2.15 (Red Hat) Server at 10.82.10.54 Port 80/
    Xymon is running, that I can confirm:
    [xymon at lsypf01a ~]$ ./server/xymon.sh status
    Xymon (xymonlaunch) running with PID 4826
    [xymon at lsypf01a ~]$
    Here is my xymon-apache.conf, I made changes from what I've read
    in the older subscription messages:
    Alias /xymon/  "/home/xymon/server/www/"
    <Directory "/home/xymon/server/www">
        Options Indexes FollowSymLinks Includes MultiViews
        Require all granted
    </Directory>
    ScriptAlias /xymon-cgi/ "/home/xymon/cgi-bin/"
    <Directory "/home/xymon/cgi-bin">
        AllowOverride None
        Options ExecCGI Includes
        Require all granted
    </Directory>
    ScriptAlias /xymon-seccgi/ "/home/xymon/cgi-secure/"
    <Directory "/home/xymon/cgi-secure">
        AllowOverride None
        Options ExecCGI Includes
        Require all granted
    Various logs in /var/log/xymon:
    Xymonlaunch.log:
    2013-12-11 13:24:00 xymonlaunch starting
    2013-12-11 13:24:00 Loading tasklist configuration from
    /home/xymon/server/etc/tasks.cfg
    2013-12-11 13:24:00 Cannot open directory
    /home/xymon/server/etc/tasks.d
    2013-12-11 13:24:00 Loading hostnames
    2013-12-11 13:24:00 Loading saved state
    2013-12-11 13:24:00 Setting up network listener on 0.0.0.0:1984<http://0.0.0.0:1984>;
    <http://0.0.0.0:1984>;
    2013-12-11 13:24:00 Setting up signal handlers
    2013-12-11 13:24:00 Setting up xymond channels
    2013-12-11 13:24:00 Setting up logfiles
    Rrd-data.log:
    2013-12-11 13:34:13 Peer at 0.0.0.0:0<http://0.0.0.0:0>; <http://0.0.0.0:0>; failed:
    Broken pipe
    2013-12-11 13:34:13 Peer not up, flushing message queue
    2013-12-11 13:34:13 exec() failed for child command xymond_rrd: No
    such file or directory
    2013-12-11 13:34:13 Child process 5357 died: Exit status 1
    *David Diep*
    * *
    Look out for those in need this winter. When the temperature or
    wind chill is 32°F or below, the District issues a Hypothermia
    Alert. For assistance during an Alert, call the Shelter Hotline
    <http://dhs.dc.gov/page/hypothermia-alert-plan>at *X-XXX-XXX-XXXX<tel:X-XXX-XXX-XXXX>
    <tel:X-XXX-XXX-XXXX>* or *311*.
list Jeremy Laidman · Fri, 13 Dec 2013 10:46:10 +1100 ·
On 13 December 2013 01:34, Diep, David (OCTO-Contractor)
quoted from David Diep
<user-ca44d68fd6e2@xymon.invalid>wrote:
I’m happy and its up. I’m now going to configure other hosts… the
instructions aren’t too clear, do I just do the same install on the other
machines?

If you're installing from packages then you wouldn't normally do the same
on all your hosts.  Instead, you install the client (agent) and the server
packages on your Xymon server (that is, where Apache runs), and on the
hosts you want to monitor, you only need the client package.  If installing
from source code, you do the same "make install" on the clients, but you
only run the client process using "~xymon/client/runclient.sh".  A much
quicker way would be to simply copy the ~xymon/client/ directory to the
other clients.
quoted from David Diep

Once installed, I can pick a specific machine to be the main server to
monitor the other servers?

Typically you have only one server with the Xymon "server" component.  You
can have more than one, but it makes things a little more complicated, so
consider that an advanced topic.  Once you've chosen a machine, copy the
client directory over, create the xymon user/group and check that he can
write to ~xymon/tmp and ~xymon/logs.

Then you need to configure each client with that machine's IP address,
defined in xymonclient.cfg in XYMSERVERS.  If you have more than one Xymon
server, you can list the IP addresses in XYMSERVERS, separated by spaces.
Run "man xymonclient.cfg" on your Xymon server for more info on these
configurables.

Note that the client processes on your server are not (usually) run in the
same way as on a client-only installation.  The Xymon server already has an
instance of xymonlaunch (the task scheduler) running and so a second one is
not required.  So the Xymon server has [xymonclient] section in tasks.cfg
that is used to run the xymonclient.sh process, using the configuration in
the xymonclient.cfg file.  This applies to all client-type processes - that
is, they are all run from the configuration in the Xymon server tasks.cfg
file, instead of the clientlaunch.cfg file that is used on Xymon clients.

HTH

Cheers
Jeremy