Skip to content

Commit 9c8b5c3

Browse files
authored
Merge pull request #9 from statusengine/3.7
3.7
2 parents 57fefea + e960e5e commit 9c8b5c3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+2377
-508
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ build
33
._*
44
datenschutz.html
55
impressum.html
6-
.idea/
6+
.idea/
7+
spress.phar

config.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,15 @@ bing_verify:
5656
# Page menus
5757
top_menu:
5858
- { name: Getting Started, url: "/getting_started", icon: "fa fa-play", anchors: ["Overview", "Components", "Requirements", "Quick start", "Performance data"] }
59-
- { name: Broker Module, url: "/broker", icon: "fa fa-cogs", anchors: ["Overview", "Scale out to Multiple Nodes", "Supported Monitoring Tools", "Installation", "Broker Options", "OCSP and OCHP", "How to update", "Debug Broker Module"] }
60-
- { name: Worker, url: "/worker", icon: "fa fa-spinner", anchors: ["Overview", "Scale out to Multiple Nodes", "Requirements", "Installation", "Database", "Configuration", "Configure Performance Data", "Start Statusengine Worker", "Cleanup database", "Manage Cluster Nodes", "Get Metrics", "In-memory", "How to update", "Debugging"] }
59+
- { name: Broker Module, url: "/broker", icon: "fa fa-cogs", anchors: ["Overview", "Scale out to Multiple Nodes", "Supported Monitoring Tools", "Installation", "Broker Configuration", "OCSP and OCHP", "How to update", "Debug Broker Module"] }
60+
- { name: Legacy Broker Module, url: "/broker_old", icon: "fa fa-cogs", anchors: ["Overview", "Scale out to Multiple Nodes", "Supported Monitoring Tools", "Installation", "Broker Options", "OCSP and OCHP", "How to update", "Debug Broker Module"] }
61+
- { name: Worker, url: "/worker", icon: "fa fa-spinner", anchors: ["Overview", "Scale out to Multiple Nodes", "Requirements", "Installation", "Database", "Configuration", "Configure Performance Data", "Start Statusengine Worker", "Cleanup database", "Manage Cluster Nodes", "Get Metrics", "In-memory", "How to update", "Update to 3.7", "Debugging"] }
6162
- { name: Statusengine UI, url: "/ui", icon: "fa fa-desktop", anchors: ["Overview", "Features", "Installation", "Configuration", "First user", "HTTPS", "Apache Example Config", "Nginx Example Config", "PHP built-in server", "Manage users", "Ui Settings", "How to update"] }
6263
- { name: Tutorials, url: "/tutorials", icon: "fa fa-graduation-cap", anchors: [] }
6364
- { name: Demo, url: "https://demo.statusengine.org", icon: "fa fa-desktop", anchors: [] }
6465
- { name: Roadmap, url: "/roadmap", icon: "fa fa-map-marker", anchors: [] }
6566
- { name: Old Stable (2.x), url: "/oldstable", icon: "fa fa-code", anchors: [] }
6667
- { name: Misc, url: "/misc", icon: "fa fa-folder-open-o", anchors: ["3rd party extensions", "Logos", "Wallpapers"] }
68+
69+
show_in_more_top_menu: ["Legacy Broker Module", "Roadmap", "Old Stable (2.x)", "Misc"]
70+

src/content/assets/css/style.css

+4
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,7 @@
107107
padding-top: 10px;
108108
}
109109

110+
111+
.min-height-150{
112+
min-height: 150px;
113+
}
Loading
Loading
Loading
Loading
Loading
Loading
Loading
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,49 @@
11
angular.module('StatusengineDocs')
22

33
.controller("BrokerController", function ($scope) {
4-
$scope.selectedOs = 'bionic';
5-
4+
$scope.selectedOs = 'focal';
5+
$scope.selectedCore = 'naemon';
6+
$scope.selectedQueue = 'gearman'; // rabbitmq
7+
68
$scope.commands = {
7-
bionic: {
8-
dependencies: 'apt-get install git gearman-job-server libgearman-dev gearman-tools uuid-dev libjson-c-dev manpages-dev build-essential libglib2.0-dev',
9-
restartMonitoring: 'systemctl restart naemon'
10-
},
11-
xenial: {
12-
dependencies: 'apt-get install git gearman-job-server libgearman-dev gearman-tools uuid-dev libjson-c-dev manpages-dev build-essential libglib2.0-dev',
13-
restartMonitoring: 'systemctl restart naemon'
14-
},
15-
trusty: {
16-
dependencies: 'apt-get install git gearman-job-server libgearman-dev gearman-tools uuid-dev libjson-c-dev manpages-dev build-essential libglib2.0-dev',
17-
restartMonitoring: 'service naemon restart'
9+
focal: {
10+
dependencies: 'apt-get install git python3-pip gcc g++ cmake build-essential libglib2.0-dev libgearman-dev uuid-dev libuchardet-dev libjson-c-dev pkg-config libssl-dev librabbitmq-dev',
11+
pip: 'pip3 install meson ninja',
12+
restartMonitoring: 'systemctl restart naemon',
13+
queueDep: {
14+
rabbitmq: 'rabbitmq-server',
15+
gearman: 'gearman-job-server'
16+
}
1817
},
19-
centos7: {
20-
dependencies: 'yum install git gearmand libgearman-devel libuuid-devel json-c-devel glib2-devel',
21-
restartMonitoring: 'systemctl restart naemon'
18+
bionic: {
19+
dependencies: 'apt-get install git python3-pip gcc g++ cmake build-essential libglib2.0-dev libgearman-dev uuid-dev libuchardet-dev libjson-c-dev pkg-config libssl-dev librabbitmq-dev',
20+
pip: 'pip3 install meson ninja',
21+
restartMonitoring: 'systemctl restart naemon',
22+
queueDep: {
23+
rabbitmq: 'rabbitmq-server',
24+
gearman: 'gearman-job-server'
25+
}
2226
},
2327
centos8: {
24-
dependencies: 'yum install git gearmand libgearman-devel libuuid-devel json-c-devel glib2-devel',
25-
restartMonitoring: 'systemctl restart naemon'
28+
dependencies: 'yum install git python-pip gcc gcc-c++ cmake3 pkgconfig librabbitmq-devel libgearman-devel libuchardet-devel json-c-devel openssl-devel glib2-devel',
29+
pip: 'pip install meson ninja',
30+
restartMonitoring: 'systemctl restart naemon',
31+
queueDep: {
32+
rabbitmq: 'rabbitmq-server',
33+
gearman: 'gearman-job-server'
34+
}
2635
}
2736
};
37+
38+
$scope.$watch('selectedOs', function(){
39+
$scope.hasSystemd = $scope.selectedOs !== 'trusty';
40+
41+
$scope.apacheConfig = '/etc/apache2/sites-available/statusengine-ui.conf';
42+
$scope.nginxConfig = '/etc/nginx/sites-available/statusengine-ui';
43+
if($scope.selectedOs === 'centos7'){
44+
$scope.apacheConfig = '/etc/httpd/conf.d/statusengine-ui.conf';
45+
$scope.nginxConfig = '/etc/nginx/conf.d/statusengine-ui.conf'
46+
}
47+
48+
});
2849
});
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
angular.module('StatusengineDocs')
2+
3+
.controller("BrokerOldController", function ($scope) {
4+
$scope.selectedOs = 'bionic';
5+
6+
$scope.commands = {
7+
bionic: {
8+
dependencies: 'apt-get install git gearman-job-server libgearman-dev gearman-tools uuid-dev libjson-c-dev manpages-dev build-essential libglib2.0-dev',
9+
restartMonitoring: 'systemctl restart naemon'
10+
},
11+
xenial: {
12+
dependencies: 'apt-get install git gearman-job-server libgearman-dev gearman-tools uuid-dev libjson-c-dev manpages-dev build-essential libglib2.0-dev',
13+
restartMonitoring: 'systemctl restart naemon'
14+
},
15+
trusty: {
16+
dependencies: 'apt-get install git gearman-job-server libgearman-dev gearman-tools uuid-dev libjson-c-dev manpages-dev build-essential libglib2.0-dev',
17+
restartMonitoring: 'service naemon restart'
18+
},
19+
centos7: {
20+
dependencies: 'yum install git gearmand libgearman-devel libuuid-devel json-c-devel glib2-devel',
21+
restartMonitoring: 'systemctl restart naemon'
22+
},
23+
centos8: {
24+
dependencies: 'yum install git gearmand libgearman-devel libuuid-devel json-c-devel glib2-devel',
25+
restartMonitoring: 'systemctl restart naemon'
26+
}
27+
};
28+
});

src/content/assets/js/controller/UiController.js

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
11
angular.module('StatusengineDocs')
22

33
.controller("UiController", function ($scope) {
4-
$scope.selectedOs = 'bionic';
4+
$scope.selectedOs = 'focal';
55
$scope.hasSystemd = true;
66

77

88
$scope.commands = {
9+
focal: {
10+
dependencies: 'apt-get install git php-cli php-zip php-mysql php-ldap php-json',
11+
apache2: 'apt-get install apache2 libapache2-mod-php',
12+
apache2Restart: 'systemctl restart apache2.service',
13+
nginx: 'apt-get install nginx php-fpm',
14+
phpFpmRestart: 'systemctl restart php7.4-fpm',
15+
fpmConfigPath: '/etc/php/7.4/fpm/pool.d/www.conf',
16+
nginxRestart: 'systemctl restart nginx'
17+
},
918
bionic: {
1019
dependencies: 'apt-get install git php-cli php-zip php-mysql php-ldap php-json',
1120
apache2: 'apt-get install apache2 libapache2-mod-php',

src/content/assets/js/controller/WorkerController.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
angular.module('StatusengineDocs')
22

33
.controller("WorkerController", function ($scope) {
4-
$scope.selectedOs = 'bionic';
4+
$scope.selectedOs = 'focal';
55
$scope.hasSystemd = true;
66

77

88
$scope.commands = {
9+
focal: {
10+
dependencies: 'apt-get install git php-cli php-zip php-redis redis-server php-mysql php-json php-bcmath php-mbstring unzip',
11+
stopStatusengineWorker: 'systemctl stop statusengine',
12+
startStatusengineWorker: 'systemctl start statusengine'
13+
},
914
bionic: {
1015
dependencies: 'apt-get install git php-cli php-zip php-redis redis-server php-mysql php-json php-gearman php-bcmath php-mbstring unzip',
1116
stopStatusengineWorker: 'systemctl stop statusengine',

0 commit comments

Comments
 (0)