TS - Trying to setup Xymon 4.3.10 on CentOS 6.3
I have tried to follow what instructions I can find for a new Xymon installation.
I have installed the latest 4.3.10 of Xymon on a Dell R-710 with CentOS 6.3 (install option - web server) installed.
When I try to start apache I get:
[root at monitord ~]# service httpd restart
Stopping httpd:
[FAILED]
Starting httpd: httpd: Syntax error on line 222 of
/etc/httpd/conf/httpd.conf: Could not open configuration file /etc/httpd/conf.d/xymon-apache.conf: Permission denied
[FAILED]
LINE 222 is the Include line:
#
# Load config files from the config directory
"/etc/httpd/conf.d"
#
Include conf.d/*.conf
#
If I comment out the 'Include' statement, Apache comes right up.
The files in /etc/httpd/conf.d are:
manual.conf
perl.conf
php.conf
README
ssl.conf
webalizer.conf
welcome.conf
wsgi.conf
xymon-apache.conf ->
/home/xymon/server/etc/xymon-apache.conf ( Permissions: lrwxrwxrwx. )
[root at monitord conf.d]# cat xymon-apache.conf
This file is for Apache 1.3.x and Apache 2.0.x
Add this to your Apache configuration, it makes
the Xymon webpages and cgi-scripts available in the
"/xymon" and "/xymon-cgi" URLs.
NB: The "Alias" line below must NOT be used if you have
the Xymon webfiles as the root URL. In that case,
you should instead set this:
DocumentRoot /home/xymon/server/www
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
# Password file where users with access to these scripts are kept.
# Create it with "htpasswd -c /home/xymon/server/etc/xymonpasswd
USERNAME"
# Add more users / change passwords with "htpasswd
/home/xymon/server/etc/xymonpasswd USERNAME"
#
# You can also use a group file to restrict admin access to members
of a
# group, instead of anyone who is logged in. In that case you must
setup
# the "xymongroups" file, and change the "Require" settings to
require
# a specific group membership. See the Apache docs for more details.
AuthUserFile /home/xymon/server/etc/xymonpasswd
AuthGroupFile /home/xymon/server/etc/xymongroups
AuthType Basic
AuthName "Xymon Administration"
# "valid-user" restricts access to anyone who is logged in.
Require valid-user
# "group admins" restricts access to users who have logged in, AND
# are members of the "admins" group in xymongroups.
# Require group admins
</Directory>
Rewrite-rules for migrating from the URL's used in Hobbit
RewriteEngine On
RewriteRule ^/xymon/bb.html /xymon/xymon.html [R=permanent,L]
RewriteRule ^/xymon/bb2.html /xymon/nongreen.html [R=permanent,L]
RewriteRule ^/xymon/bbnk.html /xymon/critical.html [R=permanent,L]
RewriteRule ^/xymon-cgi/bb-hist.sh /xymon-cgi/history.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/bb-eventlog.sh /xymon-cgi/eventlog.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/bb-rep.sh /xymon-cgi/report.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/bb-replog.sh /xymon-cgi/reportlog.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/bb-snapshot.sh /xymon-cgi/snapshot.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/bb-findhost.sh /xymon-cgi/findhost.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/bb-csvinfo.sh /xymon-cgi/csvinfo.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/hobbitcolumn.sh /xymon-cgi/columndoc.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/bb-datepage.sh /xymon-cgi/datepage.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/hobbitgraph.sh /xymon-cgi/showgraph.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/bb-hostsvc.sh /xymon-cgi/svcstatus.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/bb-histlog.sh /xymon-cgi/historylog.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/hobbit-confreport.sh /xymon-cgi/confreport.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/hobbit-confreport-critical.sh /xymon-cgi/confreport-critical.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/hobbit-nkview.sh /xymon-cgi/criticalview.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/hobbit-certreport.sh /xymon-cgi/certreport.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/hobbit-nongreen.sh /xymon-cgi/nongreen.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/hobbit-hostgraphs.sh /xymon-cgi/hostgraphs.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/hobbit-ghosts.sh /xymon-cgi/ghostlist.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/hobbit-notifylog.sh /xymon-cgi/notifications.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/hobbit-hostlist.sh /xymon-cgi/hostlist.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/hobbit-perfdata.sh /xymon-cgi/perfdata.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/hobbit-topchanges.sh /xymon-cgi/topchanges.sh [R=permanent,L]
RewriteRule ^/xymon-seccgi/bb-ack.sh /xymon-seccgi/acknowledge.sh [R=permanent,L]
RewriteRule ^/xymon-seccgi/hobbit-enadis.sh /xymon-seccgi/enadis.sh [R=permanent,L]
RewriteRule ^/xymon-seccgi/hobbit-nkedit.sh /xymon-seccgi/criticaleditor.sh [R=permanent,L]
RewriteRule ^/xymon-seccgi/hobbit-ackinfo.sh /xymon-seccgi/ackinfo.sh [R=permanent,L]
RewriteRule ^/xymon-seccgi/hobbit-useradm.sh /xymon-seccgi/useradm.sh [R=permanent,L]
[root at monitord conf.d]#
Thanks,
Tom Schmitt
Senior IT Staff - R&D
L-3 Communication Systems West
640 North 2200 West P.O. Box 16850
Salt Lake City, UT 84116
Phone (801) 594-3030
Cell (801) 231-7230
eFax (470) 201-6644
\\\\||////
\ ~ ~ /
| @ @ |
--oOo---(_)---oOo--
Have A Nice Day !
It is not necessary to change.
Survival is not mandatory.
-- W. Edwards Deming
It seems like your http user doesn't have access to the file /home/xymon/server/etc/xymon-apache.conf. Either the file or one of the directory leading to the file is not readable.
Florent Deschamps
De : xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] De la part de d.tom.schmitt at L-3com.com Envoyé : mercredi 23 janvier 2013 18:15 À : xymon at xymon.com Objet : [Xymon] TS - Trying to setup Xymon 4.3.10 on CentOS 6.3
I have tried to follow what instructions I can find for a new Xymon installation.
I have installed the latest 4.3.10 of Xymon on a Dell R-710 with CentOS 6.3 (install option - web server) installed.
When I try to start apache I get:
[root at monitord ~]# service httpd restart
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 222 of /etc/httpd/conf/httpd.conf: Could not open configuration file /etc/httpd/conf.d/xymon-apache.conf: Permission denied
[FAILED]
LINE 222 is the Include line:
#
# Load config files from the config directory "/etc/httpd/conf.d"
#
Include conf.d/*.conf
#
If I comment out the 'Include' statement, Apache comes right up.
The files in /etc/httpd/conf.d are:
manual.conf
perl.conf
php.conf
README
ssl.conf
webalizer.conf
welcome.conf
wsgi.conf
xymon-apache.conf -> /home/xymon/server/etc/xymon-apache.conf ( Permissions: lrwxrwxrwx. )
[root at monitord conf.d]# cat xymon-apache.conf
This file is for Apache 1.3.x and Apache 2.0.x
Add this to your Apache configuration, it makes
the Xymon webpages and cgi-scripts available in the
"/xymon" and "/xymon-cgi" URLs.
NB: The "Alias" line below must NOT be used if you have
the Xymon webfiles as the root URL. In that case,
you should instead set this:
DocumentRoot /home/xymon/server/www
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
# Password file where users with access to these scripts are kept.
# Create it with "htpasswd -c /home/xymon/server/etc/xymonpasswd USERNAME"
# Add more users / change passwords with "htpasswd /home/xymon/server/etc/xymonpasswd USERNAME"
#
# You can also use a group file to restrict admin access to members of a
# group, instead of anyone who is logged in. In that case you must setup
# the "xymongroups" file, and change the "Require" settings to require
# a specific group membership. See the Apache docs for more details.
AuthUserFile /home/xymon/server/etc/xymonpasswd
AuthGroupFile /home/xymon/server/etc/xymongroups
AuthType Basic
AuthName "Xymon Administration"
# "valid-user" restricts access to anyone who is logged in.
Require valid-user
# "group admins" restricts access to users who have logged in, AND
# are members of the "admins" group in xymongroups.
# Require group admins
</Directory>
Rewrite-rules for migrating from the URL's used in Hobbit
RewriteEngine On
RewriteRule ^/xymon/bb.html /xymon/xymon.html [R=permanent,L] RewriteRule ^/xymon/bb2.html /xymon/nongreen.html [R=permanent,L] RewriteRule ^/xymon/bbnk.html /xymon/critical.html [R=permanent,L]
RewriteRule ^/xymon-cgi/bb-hist.sh /xymon-cgi/history.sh [R=permanent,L] RewriteRule ^/xymon-cgi/bb-eventlog.sh /xymon-cgi/eventlog.sh [R=permanent,L] RewriteRule ^/xymon-cgi/bb-rep.sh /xymon-cgi/report.sh [R=permanent,L] RewriteRule ^/xymon-cgi/bb-replog.sh /xymon-cgi/reportlog.sh [R=permanent,L] RewriteRule ^/xymon-cgi/bb-snapshot.sh /xymon-cgi/snapshot.sh [R=permanent,L] RewriteRule ^/xymon-cgi/bb-findhost.sh /xymon-cgi/findhost.sh [R=permanent,L] RewriteRule ^/xymon-cgi/bb-csvinfo.sh /xymon-cgi/csvinfo.sh [R=permanent,L] RewriteRule ^/xymon-cgi/hobbitcolumn.sh /xymon-cgi/columndoc.sh [R=permanent,L] RewriteRule ^/xymon-cgi/bb-datepage.sh /xymon-cgi/datepage.sh [R=permanent,L] RewriteRule ^/xymon-cgi/hobbitgraph.sh /xymon-cgi/showgraph.sh [R=permanent,L] RewriteRule ^/xymon-cgi/bb-hostsvc.sh /xymon-cgi/svcstatus.sh [R=permanent,L] RewriteRule ^/xymon-cgi/bb-histlog.sh /xymon-cgi/historylog.sh [R=permanent,L] RewriteRule ^/xymon-cgi/hobbit-confreport.sh /xymon-cgi/confreport.sh [R=permanent,L] RewriteRule ^/xymon-cgi/hobbit-confreport-critical.sh /xymon-cgi/confreport-critical.sh [R=permanent,L] RewriteRule ^/xymon-cgi/hobbit-nkview.sh /xymon-cgi/criticalview.sh [R=permanent,L] RewriteRule ^/xymon-cgi/hobbit-certreport.sh /xymon-cgi/certreport.sh [R=permanent,L] RewriteRule ^/xymon-cgi/hobbit-nongreen.sh /xymon-cgi/nongreen.sh [R=permanent,L] RewriteRule ^/xymon-cgi/hobbit-hostgraphs.sh /xymon-cgi/hostgraphs.sh [R=permanent,L] RewriteRule ^/xymon-cgi/hobbit-ghosts.sh /xymon-cgi/ghostlist.sh [R=permanent,L] RewriteRule ^/xymon-cgi/hobbit-notifylog.sh /xymon-cgi/notifications.sh [R=permanent,L] RewriteRule ^/xymon-cgi/hobbit-hostlist.sh /xymon-cgi/hostlist.sh [R=permanent,L] RewriteRule ^/xymon-cgi/hobbit-perfdata.sh /xymon-cgi/perfdata.sh [R=permanent,L] RewriteRule ^/xymon-cgi/hobbit-topchanges.sh /xymon-cgi/topchanges.sh [R=permanent,L]
RewriteRule ^/xymon-seccgi/bb-ack.sh /xymon-seccgi/acknowledge.sh [R=permanent,L] RewriteRule ^/xymon-seccgi/hobbit-enadis.sh /xymon-seccgi/enadis.sh [R=permanent,L] RewriteRule ^/xymon-seccgi/hobbit-nkedit.sh /xymon-seccgi/criticaleditor.sh [R=permanent,L] RewriteRule ^/xymon-seccgi/hobbit-ackinfo.sh /xymon-seccgi/ackinfo.sh [R=permanent,L] RewriteRule ^/xymon-seccgi/hobbit-useradm.sh /xymon-seccgi/useradm.sh [R=permanent,L]
[root at monitord conf.d]#
Thanks,
Tom Schmitt Senior IT Staff - R&D L-3 Communication Systems West 640 North 2200 West P.O. Box 16850 Salt Lake City, UT 84116 Phone (801) 594-3030 Cell (801) 231-7230 eFax (470) 201-6644 \\\\||//// \ ~ ~ / | @ @ | --oOo---(_)---oOo-- Have A Nice Day !
It is not necessary to change. Survival is not mandatory. -- W. Edwards Deming
Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration, France Telecom - Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.
This message and its attachments may contain confidential or privileged information that may be protected by law; they should not be distributed, used or copied without authorisation. If you have received this email in error, please notify the sender and delete this message and its attachments. As emails may be altered, France Telecom - Orange is not liable for messages that have been modified, changed or falsified. Thank you.
Apache can't read /etc/httpd/conf.d/xymon-apache.conf, which appears to be a link to /home/xymon/server/etc/xymon-apache.conf
Either: chown apache.apache /home/xymon/server/etc/xymon-apache.conf
Or: chmod 644 /home/xymon/server/etc/xymon-apache.conf
should fix it. You may also need to open up permissions for Apache to get into /home/xymon/server/etc.
Ralph Mitchell
On Wed, Jan 23, 2013 at 12:15 PM, <d.tom.schmitt at l-3com.com> wrote:
I have tried to follow what instructions I can find for a new Xymon installation.****
I have installed the latest 4.3.10 of Xymon on a Dell R-710 with CentOS 6.3 (install option - web server) installed.****
*When I try to start apache I get:*
[root at monitord ~]# service httpd restart**** Stopping httpd:[FAILED]****
Starting httpd: httpd: Syntax error on line 222 of/etc/httpd/conf/httpd.conf: Could not open configuration file /etc/httpd/conf.d/xymon-apache.conf: Permission denied****
[FAILED]****
**LINE 222 is the Include line:*
#*# Load config files from the config directory“/etc/httpd/conf.d”*
#*Include conf.d/*.conf*
#*
*If I comment out the ‘Include’ statement, Apache comes right up.*
*The files in /etc/httpd/conf.d are:*
*manual.conf*perl.conf*php.conf*README*ssl.conf*webalizer.conf*welcome.conf*wsgi.conf*xymon-apache.conf ->/home/xymon/server/etc/xymon-apache.conf ( Permissions: lrwxrwxrwx. )*
*
[root at monitord conf.d]# *cat xymon-apache.conf* ****
This file is for Apache 1.3.x and Apache 2.0.x****
#****
Add this to your Apache configuration, it makes****
the Xymon webpages and cgi-scripts available in the****
"/xymon" and "/xymon-cgi" URLs.****
NB: The "Alias" line below must NOT be used if you have****
the Xymon webfiles as the root URL. In that case,****
you should instead set this:****
#****
DocumentRoot /home/xymon/server/www****
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****
# Password file where users with access to these scripts are kept.**** # Create it with "htpasswd -c /home/xymon/server/etc/xymonpasswdUSERNAME"****
# Add more users / change passwords with "htpasswd/home/xymon/server/etc/xymonpasswd USERNAME"****
#**** # You can also use a group file to restrict admin access to members ofa****
# group, instead of anyone who is logged in. In that case you mustsetup****
# the "xymongroups" file, and change the "Require" settings to require
# a specific group membership. See the Apache docs for more details.****
AuthUserFile /home/xymon/server/etc/xymonpasswd**** AuthGroupFile /home/xymon/server/etc/xymongroups**** AuthType Basic**** AuthName "Xymon Administration"****
# "valid-user" restricts access to anyone who is logged in.**** Require valid-user****
# "group admins" restricts access to users who have logged in, AND**** # are members of the "admins" group in xymongroups.**** # Require group admins****
</Directory>****
Rewrite-rules for migrating from the URL's used in Hobbit****
RewriteEngine On****
RewriteRule ^/xymon/bb.html /xymon/xymon.html [R=permanent,L]****
RewriteRule ^/xymon/bb2.html /xymon/nongreen.html [R=permanent,L]****
RewriteRule ^/xymon/bbnk.html /xymon/critical.html [R=permanent,L]****
RewriteRule ^/xymon-cgi/bb-hist.sh /xymon-cgi/history.sh [R=permanent,L]** **
RewriteRule ^/xymon-cgi/bb-eventlog.sh /xymon-cgi/eventlog.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/bb-rep.sh /xymon-cgi/report.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/bb-replog.sh /xymon-cgi/reportlog.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/bb-snapshot.sh /xymon-cgi/snapshot.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/bb-findhost.sh /xymon-cgi/findhost.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/bb-csvinfo.sh /xymon-cgi/csvinfo.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/hobbitcolumn.sh /xymon-cgi/columndoc.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/bb-datepage.sh /xymon-cgi/datepage.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/hobbitgraph.sh /xymon-cgi/showgraph.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/bb-hostsvc.sh /xymon-cgi/svcstatus.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/bb-histlog.sh /xymon-cgi/historylog.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/hobbit-confreport.sh /xymon-cgi/confreport.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/hobbit-confreport-critical.sh /xymon-cgi/confreport-critical.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/hobbit-nkview.sh /xymon-cgi/criticalview.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/hobbit-certreport.sh /xymon-cgi/certreport.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/hobbit-nongreen.sh /xymon-cgi/nongreen.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/hobbit-hostgraphs.sh /xymon-cgi/hostgraphs.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/hobbit-ghosts.sh /xymon-cgi/ghostlist.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/hobbit-notifylog.sh /xymon-cgi/notifications.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/hobbit-hostlist.sh /xymon-cgi/hostlist.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/hobbit-perfdata.sh /xymon-cgi/perfdata.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/hobbit-topchanges.sh /xymon-cgi/topchanges.sh [R=permanent,L]****
RewriteRule ^/xymon-seccgi/bb-ack.sh /xymon-seccgi/acknowledge.sh [R=permanent,L]****
RewriteRule ^/xymon-seccgi/hobbit-enadis.sh /xymon-seccgi/enadis.sh [R=permanent,L]****
RewriteRule ^/xymon-seccgi/hobbit-nkedit.sh /xymon-seccgi/criticaleditor.sh [R=permanent,L]****
RewriteRule ^/xymon-seccgi/hobbit-ackinfo.sh /xymon-seccgi/ackinfo.sh [R=permanent,L]****
RewriteRule ^/xymon-seccgi/hobbit-useradm.sh /xymon-seccgi/useradm.sh [R=permanent,L]****
[root at monitord conf.d]#****
Thanks,*
*Tom Schmitt*
*Senior IT Staff - R&D*****
L-3 Communication Systems West****
640 North 2200 West P.O. Box 16850****
Salt Lake City, UT 84116****
Phone (801) *594-3030*****
Cell (801) 231-7230****
eFax (470) 201-6644****
**\\\\||////*****\ ~ ~ / *****| @ @ |**--oOo---(_)---oOo--*
- Have A Nice Day !*
*It is not necessary to change.*
*Survival is not mandatory.*
-- W. Edwards Deming*
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
I removed the linked file and copied the original to the directory and it starts up - THANKS!
I can now access a web page in the /var/www/html directory but I cannot access the xymon web pages.
index.html is 'helo' per the instructions and it and any other web page I place in /var/www/html works.
How do I access the Xymon system?
Is it the same as before? http://monitord.csw.l-3com.com/xymon
Or am I looking at the wrong URL?
Thanks,
Tom Schmitt
Senior IT Staff - R&D
L-3 Communication Systems West
640 North 2200 West P.O. Box 16850
Salt Lake City, UT 84116
Phone (801) 594-3030
Cell (801) 231-7230
eFax (470) 201-6644
\\\\||////
\ ~ ~ /
| @ @ |
--oOo---(_)---oOo--
Have A Nice Day !
It is not necessary to change.
Survival is not mandatory.
-- W. Edwards Deming
From: Ralph Mitchell [mailto:ralphmitchell at gmail.com] Sent: Wednesday, January 23, 2013 10:55 AM To: Schmitt, D Tom @ CSG - CSW Cc: xymon at xymon.com Subject: Re: [Xymon] TS - Trying to setup Xymon 4.3.10 on CentOS 6.3
Apache can't read /etc/httpd/conf.d/xymon-apache.conf, which appears to be a link to /home/xymon/server/etc/xymon-apache.conf
Either: chown apache.apache /home/xymon/server/etc/xymon-apache.conf
Or: chmod 644 /home/xymon/server/etc/xymon-apache.conf
should fix it. You may also need to open up permissions for Apache to get into /home/xymon/server/etc.
Ralph Mitchell
On Wed, Jan 23, 2013 at 12:15 PM, <d.tom.schmitt at l-3com.com> wrote:
I have tried to follow what instructions I can find for a new Xymon installation.
I have installed the latest 4.3.10 of Xymon on a Dell R-710 with CentOS 6.3 (install option - web server) installed.
When I try to start apache I get:
[root at monitord ~]# service httpd restart
Stopping httpd:
[FAILED]
Starting httpd: httpd: Syntax error on line 222 of
/etc/httpd/conf/httpd.conf: Could not open configuration file /etc/httpd/conf.d/xymon-apache.conf: Permission denied
[FAILED]
LINE 222 is the Include line:
#
# Load config files from the config directory
"/etc/httpd/conf.d"
#
Include conf.d/*.conf
#
If I comment out the 'Include' statement, Apache comes right up.
The files in /etc/httpd/conf.d are:
manual.conf
perl.conf
php.conf
README
ssl.conf
webalizer.conf
welcome.conf
wsgi.conf
xymon-apache.conf ->
/home/xymon/server/etc/xymon-apache.conf ( Permissions: lrwxrwxrwx. )
[root at monitord conf.d]# cat xymon-apache.conf
This file is for Apache 1.3.x and Apache 2.0.x
Add this to your Apache configuration, it makes
the Xymon webpages and cgi-scripts available in the
"/xymon" and "/xymon-cgi" URLs.
NB: The "Alias" line below must NOT be used if you have
the Xymon webfiles as the root URL. In that case,
you should instead set this:
DocumentRoot /home/xymon/server/www
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
# Password file where users with access to these scripts are kept.
# Create it with "htpasswd -c /home/xymon/server/etc/xymonpasswd
USERNAME"
# Add more users / change passwords with "htpasswd
/home/xymon/server/etc/xymonpasswd USERNAME"
#
# You can also use a group file to restrict admin access to members
of a
# group, instead of anyone who is logged in. In that case you must
setup
# the "xymongroups" file, and change the "Require" settings to
require
# a specific group membership. See the Apache docs for more details.
AuthUserFile /home/xymon/server/etc/xymonpasswd
AuthGroupFile /home/xymon/server/etc/xymongroups
AuthType Basic
AuthName "Xymon Administration"
# "valid-user" restricts access to anyone who is logged in.
Require valid-user
# "group admins" restricts access to users who have logged in, AND
# are members of the "admins" group in xymongroups.
# Require group admins
</Directory>
Rewrite-rules for migrating from the URL's used in Hobbit
RewriteEngine On
RewriteRule ^/xymon/bb.html /xymon/xymon.html [R=permanent,L]
RewriteRule ^/xymon/bb2.html /xymon/nongreen.html [R=permanent,L]
RewriteRule ^/xymon/bbnk.html /xymon/critical.html [R=permanent,L]
RewriteRule ^/xymon-cgi/bb-hist.sh /xymon-cgi/history.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/bb-eventlog.sh /xymon-cgi/eventlog.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/bb-rep.sh /xymon-cgi/report.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/bb-replog.sh /xymon-cgi/reportlog.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/bb-snapshot.sh /xymon-cgi/snapshot.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/bb-findhost.sh /xymon-cgi/findhost.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/bb-csvinfo.sh /xymon-cgi/csvinfo.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/hobbitcolumn.sh /xymon-cgi/columndoc.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/bb-datepage.sh /xymon-cgi/datepage.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/hobbitgraph.sh /xymon-cgi/showgraph.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/bb-hostsvc.sh /xymon-cgi/svcstatus.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/bb-histlog.sh /xymon-cgi/historylog.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/hobbit-confreport.sh /xymon-cgi/confreport.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/hobbit-confreport-critical.sh /xymon-cgi/confreport-critical.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/hobbit-nkview.sh /xymon-cgi/criticalview.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/hobbit-certreport.sh /xymon-cgi/certreport.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/hobbit-nongreen.sh /xymon-cgi/nongreen.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/hobbit-hostgraphs.sh /xymon-cgi/hostgraphs.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/hobbit-ghosts.sh /xymon-cgi/ghostlist.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/hobbit-notifylog.sh /xymon-cgi/notifications.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/hobbit-hostlist.sh /xymon-cgi/hostlist.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/hobbit-perfdata.sh /xymon-cgi/perfdata.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/hobbit-topchanges.sh /xymon-cgi/topchanges.sh [R=permanent,L]
RewriteRule ^/xymon-seccgi/bb-ack.sh /xymon-seccgi/acknowledge.sh [R=permanent,L]
RewriteRule ^/xymon-seccgi/hobbit-enadis.sh /xymon-seccgi/enadis.sh [R=permanent,L]
RewriteRule ^/xymon-seccgi/hobbit-nkedit.sh /xymon-seccgi/criticaleditor.sh [R=permanent,L]
RewriteRule ^/xymon-seccgi/hobbit-ackinfo.sh /xymon-seccgi/ackinfo.sh [R=permanent,L]
RewriteRule ^/xymon-seccgi/hobbit-useradm.sh /xymon-seccgi/useradm.sh [R=permanent,L]
[root at monitord conf.d]#
Thanks,
Tom Schmitt
Senior IT Staff - R&D
L-3 Communication Systems West
640 North 2200 West P.O. Box 16850
Salt Lake City, UT 84116
Phone (801) 594-3030
Cell (801) 231-7230 <tel:%28801%29%20231-7230>
eFax (470) 201-6644 <tel:%28470%29%20201-6644>
\\\\||////
\ ~ ~ /
| @ @ |
--oOo---(_)---oOo--
Have A Nice Day !
It is not necessary to change.
Survival is not mandatory.
-- W. Edwards Deming
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
Did you start xymon on the server? You should be able to access it via
http://server.domain.com/xymon/
for whatever server.domain.com you installed it on. i don't know if that trailing slash is still necessary, but it doesn't hurt to use it.
Ralph Mitchell
On Wed, Jan 23, 2013 at 4:03 PM, <d.tom.schmitt at l-3com.com> wrote:
I removed the linked file and copied the original to the directory and it starts up – THANKS!****
I can now access a web page in the /var/www/html directory but I cannot access the xymon web pages.****
index.html is ‘helo’ per the instructions and it and any other web page I place in /var/www/html works.****
How do I access the Xymon system?****
Is it the same as before? http://monitord.csw.l-3com.com/xymon****
Or am I looking at the wrong URL?****
*Thanks,*
*Tom Schmitt*
*Senior IT Staff - R&D*****
L-3 Communication Systems West****
640 North 2200 West P.O. Box 16850****
Salt Lake City, UT 84116****
Phone (801) *594-3030*****
Cell (801) 231-7230****
eFax (470) 201-6644****
**\\\\||////*****\ ~ ~ / *****| @ @ |**--oOo---(_)---oOo--*
- Have A Nice Day !*
*It is not necessary to change.*
*Survival is not mandatory.*
-- W. Edwards Deming*
*From:* Ralph Mitchell [mailto:ralphmitchell at gmail.com] *Sent:* Wednesday, January 23, 2013 10:55 AM *To:* Schmitt, D Tom @ CSG - CSW *Cc:* xymon at xymon.com *Subject:* Re: [Xymon] TS - Trying to setup Xymon 4.3.10 on CentOS 6.3****
Apache can't read /etc/httpd/conf.d/xymon-apache.conf, which appears to be a link to /home/xymon/server/etc/xymon-apache.conf****
Either: chown apache.apache /home/xymon/server/etc/xymon-apache.conf
Or: chmod 644 /home/xymon/server/etc/xymon-apache.conf****
should fix it. You may also need to open up permissions for Apache to get into /home/xymon/server/etc.****
Ralph Mitchell****
On Wed, Jan 23, 2013 at 12:15 PM, <d.tom.schmitt at l-3com.com> wrote:****
I have tried to follow what instructions I can find for a new Xymon installation.****
I have installed the latest 4.3.10 of Xymon on a Dell R-710 with CentOS 6.3 (install option - web server) installed.****
*When I try to start apache I get:*****
[root at monitord ~]# service httpd restart**** Stopping httpd:[FAILED]****
Starting httpd: httpd: Syntax error on line 222 of/etc/httpd/conf/httpd.conf: Could not open configuration file /etc/httpd/conf.d/xymon-apache.conf: Permission denied****
[FAILED]****
*LINE 222 is the Include line:*****
#*****# Load config files from the config directory“/etc/httpd/conf.d”*****
#*****Include conf.d/*.conf*****
#*****
*If I comment out the ‘Include’ statement, Apache comes right up.*****
*The files in /etc/httpd/conf.d are:*****
manual.conf*****perl.conf*****php.conf*****README*****ssl.conf*****webalizer.conf*****welcome.conf*****wsgi.conf*****xymon-apache.conf ->/home/xymon/server/etc/xymon-apache.conf ( Permissions: lrwxrwxrwx. )**
[root at monitord conf.d]# *cat xymon-apache.conf* ****
This file is for Apache 1.3.x and Apache 2.0.x****
#****
Add this to your Apache configuration, it makes****
the Xymon webpages and cgi-scripts available in the****
"/xymon" and "/xymon-cgi" URLs.****
NB: The "Alias" line below must NOT be used if you have****
the Xymon webfiles as the root URL. In that case,****
you should instead set this:****
#****
DocumentRoot /home/xymon/server/www****
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********
# Password file where users with access to these scripts are kept.**** # Create it with "htpasswd -c /home/xymon/server/etc/xymonpasswdUSERNAME"****
# Add more users / change passwords with "htpasswd/home/xymon/server/etc/xymonpasswd USERNAME"****
#**** # You can also use a group file to restrict admin access to members ofa****
# group, instead of anyone who is logged in. In that case you mustsetup****
# the "xymongroups" file, and change the "Require" settings to require
# a specific group membership. See the Apache docs for more details.****
AuthUserFile /home/xymon/server/etc/xymonpasswd**** AuthGroupFile /home/xymon/server/etc/xymongroups**** AuthType Basic**** AuthName "Xymon Administration"********
# "valid-user" restricts access to anyone who is logged in.**** Require valid-user********
# "group admins" restricts access to users who have logged in, AND**** # are members of the "admins" group in xymongroups.**** # Require group admins********
</Directory>****
Rewrite-rules for migrating from the URL's used in Hobbit****
RewriteEngine On****
RewriteRule ^/xymon/bb.html /xymon/xymon.html [R=permanent,L]****
RewriteRule ^/xymon/bb2.html /xymon/nongreen.html [R=permanent,L]****
RewriteRule ^/xymon/bbnk.html /xymon/critical.html [R=permanent,L]****
RewriteRule ^/xymon-cgi/bb-hist.sh /xymon-cgi/history.sh [R=permanent,L]** **
RewriteRule ^/xymon-cgi/bb-eventlog.sh /xymon-cgi/eventlog.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/bb-rep.sh /xymon-cgi/report.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/bb-replog.sh /xymon-cgi/reportlog.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/bb-snapshot.sh /xymon-cgi/snapshot.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/bb-findhost.sh /xymon-cgi/findhost.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/bb-csvinfo.sh /xymon-cgi/csvinfo.sh [R=permanent,L]
RewriteRule ^/xymon-cgi/hobbitcolumn.sh /xymon-cgi/columndoc.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/bb-datepage.sh /xymon-cgi/datepage.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/hobbitgraph.sh /xymon-cgi/showgraph.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/bb-hostsvc.sh /xymon-cgi/svcstatus.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/bb-histlog.sh /xymon-cgi/historylog.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/hobbit-confreport.sh /xymon-cgi/confreport.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/hobbit-confreport-critical.sh /xymon-cgi/confreport-critical.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/hobbit-nkview.sh /xymon-cgi/criticalview.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/hobbit-certreport.sh /xymon-cgi/certreport.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/hobbit-nongreen.sh /xymon-cgi/nongreen.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/hobbit-hostgraphs.sh /xymon-cgi/hostgraphs.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/hobbit-ghosts.sh /xymon-cgi/ghostlist.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/hobbit-notifylog.sh /xymon-cgi/notifications.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/hobbit-hostlist.sh /xymon-cgi/hostlist.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/hobbit-perfdata.sh /xymon-cgi/perfdata.sh [R=permanent,L]****
RewriteRule ^/xymon-cgi/hobbit-topchanges.sh /xymon-cgi/topchanges.sh [R=permanent,L]****
RewriteRule ^/xymon-seccgi/bb-ack.sh /xymon-seccgi/acknowledge.sh [R=permanent,L]****
RewriteRule ^/xymon-seccgi/hobbit-enadis.sh /xymon-seccgi/enadis.sh [R=permanent,L]****
RewriteRule ^/xymon-seccgi/hobbit-nkedit.sh /xymon-seccgi/criticaleditor.sh [R=permanent,L]****
RewriteRule ^/xymon-seccgi/hobbit-ackinfo.sh /xymon-seccgi/ackinfo.sh [R=permanent,L]****
RewriteRule ^/xymon-seccgi/hobbit-useradm.sh /xymon-seccgi/useradm.sh [R=permanent,L]****
[root at monitord conf.d]#****
Thanks,*****
*Tom Schmitt*****
*Senior IT Staff - R&D*****
L-3 Communication Systems West****
640 North 2200 West P.O. Box 16850****
Salt Lake City, UT 84116****
Phone (801) *594-3030*****
Cell (801) 231-7230****
eFax (470) 201-6644****
**\\\\||////*******\ ~ ~ / *******| @ @ |******--oOo---(_)---oOo--*****
*Have A Nice Day !*****
*It is not necessary to change.*****
*Survival is not mandatory.*****
-- W. Edwards Deming*****
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon****
Did you start xymon on the server? You should be able to access it via
http://server.domain.com/xymon/
for whatever server.domain.com you installed it on. i don't know if that trailing slash is still necessary, but it doesn't hurt to use it.
Ralph Mitchell
Yeah, the trailing slash is still required in the default config.
HTH, -jc
participants (4)
-
cleaver@terabithia.org
-
d.tom.schmitt@L-3com.com
-
fdeschamps.ext@orange.com
-
ralphmitchell@gmail.com