Enable Events notification
Every time I open up the clustercontrol web page, I get this notification on the right side:
Enable Events Close
Installation
For new installations the module should work by default if the rpm/deb package is installed.
...
As I have installed CluCo from an rpm package not so long ago, I would expect that everything is configured correctly. But I still keep getting this message.
Can I get rid of it?
-
Hi,
Can you check if you have the following rewrite configuration in the apache virtual host file?
- RedHat Based OS: /etc/httpd/conf.d/s9s.conf
- Debian Based OS: /etc/apache2/sites-enabled/001-s9s.conf
RewriteEngine On
RewriteRule ^/clustercontrol/ssh/term$ /clustercontrol/ssh/term/ [R=301]
RewriteRule ^/clustercontrol/ssh/term/ws/(.*)$ ws://127.0.0.1:9511/ws/$1 [P,L]
RewriteRule ^/clustercontrol/ssh/term/(.*)$ http://127.0.0.1:9511/$1 [P]
RewriteRule ^/clustercontrol/sse/events/(.*)$ http://127.0.0.1:9510/events/$1 [P,L]Also, make sure you have these lines in the ClusterControl bootstrap.php file: /var/www/html/clustercontrol/bootstrap.php
define('CMON_EVENTS_ENABLED', true);
define('CMON_EVENTS_SSE_ENABLED', true);
define('CMON_EVENTS_HOST', '127.0.0.1');
define('CMON_EVENTS_PORT', 9510);And if you have the apache proxy modules enabled:
proxy_module
proxy_http_module
proxy_wstunnel_module- RedHat Based OS:
$ grep -i LoadModule /etc/httpd/conf.modules.d/* |grep -v "^#" |grep proxy
- Debian Based OS:
$ grep -i LoadModule /etc/apache2/mods-enabled/* |grep -v "^#" |grep proxy
Regards,
Sebastian.
-
Hi,
As a sidenote, I am on CentOS 7.
I had to create the s9s.conf file manually (it didn't exist) and I wrote the lines you gave me in there.
The bootstrap.php file contained the lines you said.
The grep-command gave me these lines so I guess they are enabled:
/etc/httpd/conf.modules.d/00-proxy.conf:LoadModule proxy_module modules/mod_proxy.so
...
/etc/httpd/conf.modules.d/00-proxy.conf:LoadModule proxy_http_module modules/mod_proxy_http.so
...
/etc/httpd/conf.modules.d/00-proxy.conf:LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.soI restarted httpd after adding the s9s.conf file, but I still get the same "enable events" popup when I refresh.
Please sign in to leave a comment.
Comments
2 comments