====== Multisite ======
Multisite-Setup für OMD Sites.
===== Zentrale =====
==== multisite.mk ====
in **etc/check_mk/multisite.mk** einfügen (im OMD User)
sites = {
# connect to local Nagios
"local" : {
"alias" : "OMD Site Name"
},
"SATELITE_NAME": {
"alias": "SATELIE_ALIAS",
"socket": "tcp:SATELIKE.HOST.NAME:6557",
"url_prefix": "/SATELITE_PREFIX/",
"status_host": ("local","HOST_NAME"),
"persist": True,
},
}
Anzupassen:
^Zeile^Text^Beschreibung^
|6|SATELITE_NAME|Name zur Unterscheidung|
|7|SATELIE_ALIAS|Anzeigename|
|8|SATELIKE.HOST.NAME|Hostname des Sateiliten|
|9|SATELITE_PREFIX|Prefix wie er im OMD des Sateligen definiert ist|
|10|HOST_NAME|OMD Hostname des Status-Hosts|
==== Apache ====
in **/etc/apache/conf.d/multisite_proxy.conf** einfügen (im System)
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^/.+/SITENAME/(.*) http://HOSTNAME/SITENAME/$1 [P]
Anzupassen:
^Zeile^Text^Beschreibung^
|1,4|SITENAME|OMD Sitename|
|4|HOSTNAME|Zielhostname|
in **etc/apache/conf.d/auth.conf** ändern (im OMD User)
# General auth configuration for this site
#
Order allow,deny
Allow from all
AuthName "OMD Monitoring Site SITENAME"
AuthType Basic
AuthUserFile /omd/sites/bv/etc/htpasswd
require valid-user
Anzupassen:
^Zeile^Text^Beschreibung^
|7|SITENAME|OMD Sitename icl. Leerzeichen entfernen|
===== Satelit =====
==== xinetd ====
**/etc/xinetd.d/multisite** erstellen (im System)
service livestatus
{
type = UNLISTED
port = 6557
socket_type = stream
protocol = tcp
wait = no
cps = 100 3
flags = NODELAY
user = SEITNAME
server = /opt/omd/versions/default/bin/unixcat
server_args = /opt/omd/sites/SITENAME/tmp/run/live
only_from = IP_ADRESSE
disable = no
}
Anzupassen:
^Zeile^Text^Beschreibung^
|10, 12|SITENAME|OMD User|
|13|IP_ADRESSE|IP die zugreifen darf|
==== Apache ====
in **etc/apache/conf.d/auth.conf** ändern (im OMD User)
# General auth configuration for this site
#
Order allow,deny
Allow from all
AuthName "OMD Monitoring Site SITENAME"
AuthType Basic
AuthUserFile /omd/sites/bv/etc/htpasswd
require valid-user
Anzupassen:
^Zeile^Text^Beschreibung^
|7|SITENAME|OMD Sitename icl. Leerzeichen entfernen|
\\
\\
\\
\\
Siehe auch:\\
http://mathias-kettner.de/checkmk_multisite_setup.html \\
http://mathias-kettner.de/checkmk_multisite_modproxy.html \\
http://mathias-kettner.de/checkmk_multisite_auth.html