[Check_mk (English)] How to view the graphs on Master using Slaves

Hi

I have a question abot the information of the graphs, is it possible to see the graphs of the divices conected to the slaves in the master?

If the answere is yes, how can this be done?

When i try to see these information the following error appears in the Master:

Update Failed (0)

Thank you.

I think you use the raw edition as you only need here to configure some reverse proxy rule inside your Apache.
The following link is the section from the manual showing how to configure your setup.

1 Like

Hi @andreas-doehler

Thanks for your answer, I try to set the rule for Apache as same as the documentation:

in the pad: /etc/httpd/conf.d/check_mk_proxy.conf

slave1>
FollowSymLinks options
RewriteEngine On
RewriteRule ^ /. / SlaveID /(.*) http: //X.X.X.X/SlaveID/$1 [P]

I am using a Centos 7 for this configuration and my slave is working on another host (Same operating system and version 1.6.0p15)

But when I try to restart the httpd service with:

systemctl restart httpd.service

The service does not make changes and also stops with an error

Apparently the error is for the syntax in this new configuration, could you tell me if I missing something?

Thanks a lot.

In this post Pnp4nagios graphs in distribututed monitoring not shown - strict-origin-when-cross-origin
we discussed some possible ways. And the last one was the selected as it also was a HTTPS connection over proxy.

1 Like

What error exactly?
Perhaps the corresponding apache module (mod_rewrite.c) is not loaded?

1 Like

Hi @martin.schwarz.

It was a syntax error, but I can do it now with the reference that @andreas-doehler mentions, this is how I can do this:

I created the check_mk_proxy.conf file in /etc/httpd/conf.d


Path:
/etc/httpd/conf.d/check_mk_proxy.conf

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

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


And I restarted the httpd service:

systemctl stop httpd.service

systemctl restart httpd.service

I complement this with the modifications in the slaves in the URL prefix:

And now I can see the information of the graphs of all my slaves in the master.

Thank you very much for your help @andreas-doehler and @martin.schwarz !!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact @fayepal if you think this should be re-opened.