Xymon Mailing List Archive search

TS - Trying to setup Xymon 4.3.10 on CentOS 6.3

list Ralph Mitchell
Wed, 23 Jan 2013 12:55:06 -0500
Message-Id: <CAAEjoCX7NHxj-mE+A5JghOwr8WKBGHhaMk=user-cf72a482ec94@xymon.invalid>

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, <user-9c1ae820b621@xymon.invalid> 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  XXXXX****

Phone (801) *594-3030*****

Cell      (XXX) XXX-XXXX****

eFax    (XXX) XXX-XXXX****

*            **\\\\||////***

*               **\ ~  ~ /  ***

*               **| @  @ |*

*--oOo---(_)---oOo--*

* Have A Nice Day !*

** **

*It is not necessary to change.*

*Survival is not mandatory.*

*        -- W. Edwards Deming*

** **