Enable Events notification

Comments

2 comments

  • Avatar
    Sebastian Insausti

    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.

    0
    Comment actions Permalink
  • Avatar
    Schippers Dirk

    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.so

    I restarted httpd after adding the s9s.conf file, but I still get the same "enable events" popup when I refresh.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk