multisite

Multisite

Multisite-Setup für OMD Sites.

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:

ZeileTextBeschreibung
6SATELITE_NAMEName zur Unterscheidung
7SATELIE_ALIASAnzeigename
8SATELIKE.HOST.NAMEHostname des Sateiliten
9SATELITE_PREFIXPrefix wie er im OMD des Sateligen definiert ist
10HOST_NAMEOMD Hostname des Status-Hosts

in /etc/apache/conf.d/multisite_proxy.conf einfügen (im System)

<Location /SITENAME>
    Options +FollowSymLinks
    RewriteEngine On
    RewriteRule ^/.+/SITENAME/(.*) http://HOSTNAME/SITENAME/$1 [P]
</Location>

Anzupassen:

ZeileTextBeschreibung
1,4SITENAMEOMD Sitename
4HOSTNAMEZielhostname

in etc/apache/conf.d/auth.conf ändern (im OMD User)

# General auth configuration for this site
#
<Location "/bv">
  Order allow,deny
  Allow from all

  AuthName "OMD Monitoring Site SITENAME"
  AuthType Basic
  AuthUserFile /omd/sites/bv/etc/htpasswd
  require valid-user
</Location>

Anzupassen:

ZeileTextBeschreibung
7SITENAMEOMD Sitename icl. Leerzeichen entfernen

/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:

ZeileTextBeschreibung
10, 12SITENAMEOMD User
13IP_ADRESSEIP die zugreifen darf

in etc/apache/conf.d/auth.conf ändern (im OMD User)

# General auth configuration for this site
#
<Location "/bv">
  Order allow,deny
  Allow from all

  AuthName "OMD Monitoring Site SITENAME"
  AuthType Basic
  AuthUserFile /omd/sites/bv/etc/htpasswd
  require valid-user
</Location>

Anzupassen:

ZeileTextBeschreibung
7SITENAMEOMD 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

  • multisite.txt
  • Zuletzt geändert: 2017/03/17 12:37
  • (Externe Bearbeitung)