check_mk, multisite and pnp graphs not working

check_mk, multisite and pnp graphs not working

The documentation for check_mk is excellent, but as I have added more and more sites to my distributed environment and continued to upgrade the check_mk core, I have found that the proxy configuration not as reliable as it has been.

According to the documentation, the configuration on your main node for multisite should be:

<Location /paris>
 RewriteEngine On
 RewriteRule ^/.+/paris/(.*) http://10.0.0.2/paris/$1 [P]
</Location>

But for my new installs (1.2.8p11+ on ubuntu xenial) this would not work.  Found several suggestions to simplify this down to:

ProxyPass /paris http://10.0.0.2/paris
ProxyPassReverse /paris https://10.0.0.2/paris

Works like a charm and also easier to understand.