Dear all,

thanks for the replies. To be clear about everything. Icingaweb2 is
installed also on this machine. This works, no Issue.. The issues I'm
facing is with icinga-web1 on the same vm.

This is the apache config:
####
# Icinga Web Apache configuration
#
# this file includes all RewriteRules required
#
# No .htaccess file is needed under
# the application paths.
#
# (c) 2012 Icinga Development Team
# Markus Frosch <mar...@lazyfrosch.de>
###

# Matching for module stylesheet and images
AliasMatch
"^/icinga-web/modules/([A-Za-z0-9]+)/resources/styles/([A-Za-z0-9]+\.css)$"
"/usr/share/icinga-web/app/modules/$1/pub/styles/$2"
AliasMatch
"^/icinga-web/modules/([A-Za-z0-9]+)/resources/images/([A-Za-z_\-0-9]+\.(?:png|gif|jpg))$"
"/usr/share/icinga-web/app/modules/$1/pub/images/$2"

# Matching for Icinga Web and the ext3 framework
Alias /icinga-web/js/ext3/ /usr/share/icinga-web/lib/ext3/
Alias /icinga-web/ /usr/share/icinga-web/pub/
RedirectMatch "^/icinga-web$" /icinga-web/

# Access to where the styles are located
<DirectoryMatch "^/usr/share/icinga-web/app/modules/\w+/pub/styles/">
    Options -Indexes -MultiViews
</DirectoryMatch>

# Access to where the images are located
<DirectoryMatch "^/usr/share/icinga-web/app/modules/\w+/pub/images/">
    Options -Indexes -MultiViews
</DirectoryMatch>

# Access to the ext3 library
<Directory "/usr/share/icinga-web/lib/ext3/">
    Options -Indexes -MultiViews
</Directory>

# Access to the public web folder of Icinga Web
<Directory "/usr/share/icinga-web/pub/">
    DirectoryIndex index.php
    Options -MultiViews -Indexes +FollowSymLinks

    RewriteEngine On
    # /icinga-web is base for all rewrite rules
    RewriteBase /icinga-web

    # If the requested URL does not exist (it's likely an agavi route),
    # pass it as path info to index.php, the Agavi dispatch script.
    RewriteRule ^$ index.php?/ [QSA,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ".*" index.php?/$0 [QSA,L]

    <IfModule mod_deflate.c>
        # Insert filter
        SetOutputFilter DEFLATE

        # Netscape 4.x has some problems...
        BrowserMatch ^Mozilla/4 gzip-only-text/html

        # Netscape 4.06-4.08 have some more problems
        BrowserMatch ^Mozilla/4\.0[678] no-gzip

        # MSIE masquerades as Netscape, but it is fine
        BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
        # Don't compress images
        SetEnvIfNoCase Request_URI \
        \.(?:gif|jpe?g|png)$ no-gzip dont-vary

        # Make sure proxies don't deliver the wrong content
        <IfModule mod_headers.c>
            Header append Vary User-Agent env=!dont-vary
        </IfModule>
    </IfModule>

    <IfDefine APACHE2>
        AcceptPathInfo On
    </IfDefine>
</Directory>


The Database is located on a galeracluster. The user that is configured can
login remotely on his database:
[root@icinga01prod ~]# mysql -h galera -u icinga2 -p
Enter password:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 280670
Server version: 10.0.24-MariaDB-wsrep MariaDB Server, wsrep_25.13.raf7f02e

Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input
statement.

MariaDB [(none)]> show databases;
+--------------------+
| Database           |
+--------------------+
| icinga2_data       |
| icinga_director    |
| icingaweb          |
| icingaweb2         |
| information_schema |
+--------------------+
5 rows in set (0.00 sec)

MariaDB [(none)]>


Thanks for the help!

Kind regards,

Koen


On Fri, 5 Aug 2016 at 01:37 Joseph L. Casale <jcas...@activenetwerx.com>
wrote:

> Looks more like you have installed icinga-web and you have apache serving
> the wrong directory or incorrectly.
>
>
>
> Check the docs for pre-reqs and installation.
>
>
>
> You have served up 'icinga-web/lib/agavi/src/config/xsd/databases.xsd' by
> mistake…
>
>
>
> jlc
>
>
>
> *From:* icinga-users [mailto:icinga-users-boun...@lists.icinga.org] *On
> Behalf Of *Koen Vanoppen
> *Sent:* Thursday, August 4, 2016 9:17 AM
> *To:* icinga-users@lists.icinga.org
> *Subject:* [icinga-users] icinga-web
>
>
>
> Dear all,
>
>
>
> I have a issue with the setup of icinga-web for usage with icinga2 and
> icingaweb2.
>
> Everything is installed. But when I go to the icinga-web page I get this
> error:
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
>
> <xs:schema
>
>             xmlns:xs="http://www.w3.org/2001/XMLSchema";
>
>             xmlns:databases_1_0="
> http://agavi.org/agavi/config/parts/databases/1.0";
>
>             targetNamespace="
> http://agavi.org/agavi/config/global/envelope/1.0";
>
>             elementFormDefault="qualified"
>
>             version="$Id: databases.xsd 3595 2009-01-19 08:31:33Z impl $">
>
>
>
>             <xs:import namespace="
> http://agavi.org/agavi/config/parts/databases/1.0";
>
>                       schemaLocation="parts/databases.xsd" />
>
>
>
>             <xs:redefine schemaLocation="_envelope.xsd">
>
>
>
>                         <xs:complexType name="configuration">
>
>                                     <xs:complexContent>
>
>                                                 <xs:extension
> base="configuration">
>
>                                                             <xs:group
> ref="databases_1_0:configuration" />
>
>                                                 </xs:extension>
>
>                                     </xs:complexContent>
>
>                         </xs:complexType>
>
>
>
>             </xs:redefine>
>
>
>
> </xs:schema>
>
>
>
> Google didn't gave me any useful answer neither... Any ideas?
>
> Thanks in advance!
>
>
>
> Kind regards,
>
>
>
> Koen
> _______________________________________________
> icinga-users mailing list
> icinga-users@lists.icinga.org
> https://lists.icinga.org/mailman/listinfo/icinga-users
>
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to