Skip to content

Instantly share code, notes, and snippets.

@ashraf-s9s
ashraf-s9s / SEVERALNINES-CLUSTERCONTROL-MIB.txt
Last active May 30, 2021
A proof-of-concept for ClusterControl Alarms' MIB
View SEVERALNINES-CLUSTERCONTROL-MIB.txt
-- *****************************************************************
-- SEVERALNINES-CLUSTERCONTROL-MIB
-- Severalnines ClusterControl SNMP MIB
--
-- May 8, 2021 Ashraf Sharif (0.1) - POC
--
-- Copyright (c) 2021 by Severalnines AB
-- All rights reserved.
-- *****************************************************************
View s9s.conf
<VirtualHost *:80>
ServerName localhost
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
# ClusterControl SSH & SSE
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]
View ssl.conf
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerName localhost
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
# ClusterControl SSH & SSE
RewriteEngine On
RewriteRule ^/clustercontrol/ssh/term$ /clustercontrol/ssh/term/ [R=301]
View haproxy_admin.cfg
userlist STATSUSERS
group admin users admin
user admin insecure-password admin
user stats insecure-password yourpassword
listen admin_page 0.0.0.0:9600
mode http
stats enable
stats refresh 60s
stats uri /