2019-03-25 12:43:49 +00:00
|
|
|
<div layout="column" layout-align="start stretch" ng-controller="managerStatusController as ctrl"
|
|
|
|
ng-if="mctrl.tab === 'status'" class="">
|
2018-05-10 10:06:51 +00:00
|
|
|
|
2019-04-10 13:07:56 +00:00
|
|
|
<div class="md-padding md-padding-top-16" ng-show="ctrl.load">
|
|
|
|
<react-component name="EuiProgress" props="{size: 'xs', color: 'primary'}" />
|
2018-03-07 15:18:37 +00:00
|
|
|
</div>
|
2017-11-23 10:22:27 +00:00
|
|
|
|
2018-07-02 12:54:33 +00:00
|
|
|
<!-- Headline -->
|
2019-03-25 12:43:49 +00:00
|
|
|
<div ng-show="!ctrl.load" layout="row" layout-padding class="wz-padding-bottom-0 wz-margin-top-16">
|
2019-03-04 16:21:07 +00:00
|
|
|
<div ng-show="ctrl.selectedNode" layout="column" layout-align="center" class="height-35 wz-select-input">
|
2019-03-25 12:43:49 +00:00
|
|
|
<select class="kuiSelect wz-border-none cursor-pointer max-height-35" id="categoryBox"
|
|
|
|
ng-model="ctrl.selectedNode" ng-change="ctrl.changeNode(ctrl.selectedNode)" aria-label="Select node">
|
2018-11-02 07:42:56 +00:00
|
|
|
<option ng-repeat="node in ctrl.nodes" value="{{node.name}}">{{node.name}}</option>
|
2018-10-18 14:55:23 +00:00
|
|
|
</select>
|
|
|
|
</div>
|
2019-02-12 15:19:10 +00:00
|
|
|
<div flex></div>
|
2019-04-17 16:22:21 +00:00
|
|
|
<div layout="column" class="height-40 wz-no-padding" ng-show="adminMode">
|
2019-03-25 12:43:49 +00:00
|
|
|
<button ng-if="mctrl.clusterInfo.status === 'enabled' && !mctrl.showConfirmRestart"
|
|
|
|
class="kuiButton kuiButton--secondary height-35" ng-disabled="mctrl.isRestarting"
|
|
|
|
ng-click="mctrl.showConfirmRestart = true"><i class="fa fa-refresh"
|
2019-02-21 14:42:12 +00:00
|
|
|
ng-class="mctrl.isRestarting ? 'fa-spin fa-spinner' : ''"></i>
|
2019-02-12 15:19:10 +00:00
|
|
|
Restart cluster
|
|
|
|
</button>
|
2019-03-25 12:43:49 +00:00
|
|
|
<button ng-if="mctrl.clusterInfo.status !== 'enabled' && !mctrl.showConfirmRestart"
|
|
|
|
class="kuiButton kuiButton--secondary height-35" ng-disabled="mctrl.isRestarting"
|
|
|
|
ng-click="mctrl.showConfirmRestart = true"><i class="fa fa-refresh"
|
2019-02-21 14:42:12 +00:00
|
|
|
ng-class="mctrl.isRestarting ? 'fa-spin fa-spinner' : ''"></i>
|
2019-02-12 15:19:10 +00:00
|
|
|
Restart manager
|
|
|
|
</button>
|
2019-02-15 15:37:52 +00:00
|
|
|
<div ng-show="mctrl.showConfirmRestart" class="confirmEmbedBubble confirmEmbedBubbleInline">
|
|
|
|
<div layout="row no-wrap">
|
|
|
|
<span ng-if="mctrl.clusterInfo.status === 'enabled'" class="wz-padding-top-10 wz-padding-left-8">The
|
2019-02-18 13:54:07 +00:00
|
|
|
cluster will be restarted </span>
|
2019-02-15 15:37:52 +00:00
|
|
|
<span ng-if="mctrl.clusterInfo.status !== 'enabled'" class="wz-padding-top-10 wz-padding-left-8">The
|
2019-02-18 13:54:07 +00:00
|
|
|
manager will be restarted </span>
|
2019-02-15 15:37:52 +00:00
|
|
|
</div>
|
|
|
|
<div layout="row">
|
2019-02-21 13:51:43 +00:00
|
|
|
<md-button class="cancelBtn btn-info" type="button" ng-click="mctrl.showConfirmRestart = false">
|
|
|
|
Cancel</md-button>
|
2019-02-15 15:37:52 +00:00
|
|
|
<md-button ng-if="mctrl.clusterInfo.status === 'enabled'" class="btn wz-button" type="button"
|
2019-03-25 12:43:49 +00:00
|
|
|
ng-click="mctrl.restartCluster();mctrl.showConfirmRestart = false"><i aria-hidden='true'
|
|
|
|
class='fa fa-fw fa-check'></i>
|
2019-02-15 15:37:52 +00:00
|
|
|
Confirm</md-button>
|
|
|
|
<md-button ng-if="mctrl.clusterInfo.status !== 'enabled'" class="btn wz-button" type="button"
|
2019-03-25 12:43:49 +00:00
|
|
|
ng-click="mctrl.restartManager();mctrl.showConfirmRestart = false"><i aria-hidden='true'
|
|
|
|
class='fa fa-fw fa-check'></i>
|
2019-02-15 15:37:52 +00:00
|
|
|
Confirm</md-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-02-12 15:19:10 +00:00
|
|
|
</div>
|
2018-07-02 12:54:33 +00:00
|
|
|
</div>
|
|
|
|
<!-- End headline -->
|
|
|
|
|
2019-03-25 12:43:49 +00:00
|
|
|
<div layout="row" class="wz-margin-top-10 wz-margin-right-8 wz-margin-left-8"
|
|
|
|
ng-show="ctrl.clusterError && !ctrl.load">
|
2018-10-18 14:55:23 +00:00
|
|
|
<div flex class="euiCallOut euiCallOut--warning">
|
|
|
|
<div class="euiCallOutHeader">
|
2019-04-10 13:07:56 +00:00
|
|
|
<react-component name="EuiIcon" props="{type:'help',className:'euiCallOutHeader__title'}" />
|
2018-11-02 07:42:56 +00:00
|
|
|
<span class="euiCallOutHeader__title">{{ctrl.clusterError}}</span>
|
2018-10-18 14:55:23 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-06-14 11:41:20 +00:00
|
|
|
<!-- Daemons status section -->
|
2019-03-04 16:21:07 +00:00
|
|
|
<div ng-show="!ctrl.load && !ctrl.clusterError">
|
2019-03-25 12:43:49 +00:00
|
|
|
<md-card flex class="wz-md-card">
|
2019-03-04 16:31:58 +00:00
|
|
|
<md-card-content class="daemons-card">
|
2019-03-04 16:37:12 +00:00
|
|
|
<div ng-repeat="daemon in ctrl.daemons" class="daemon-label">
|
2019-03-04 16:31:58 +00:00
|
|
|
<p ng-class="ctrl.getDaemonStatusClass(daemon.value)" class="round daemon-bullet"></p>
|
|
|
|
<p class="daemon-name">{{daemon.key}}</p>
|
2019-03-04 16:21:07 +00:00
|
|
|
</div>
|
2018-06-14 11:41:20 +00:00
|
|
|
</md-card-content>
|
|
|
|
</md-card>
|
|
|
|
</div>
|
|
|
|
<!-- End daemons status section -->
|
2017-12-18 16:52:23 +00:00
|
|
|
|
2019-06-27 15:00:33 +00:00
|
|
|
<div layout="row" layout-padding ng-if="!ctrl.load && !ctrl.clusterError">
|
|
|
|
<react-component flex name="AlertsStats" props="{
|
|
|
|
items: [
|
|
|
|
{
|
|
|
|
description: 'Total agents',
|
|
|
|
value: ctrl.agentsCountTotal,
|
|
|
|
color: 'primary'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
description: 'Active',
|
|
|
|
value: ctrl.agentsCountActive,
|
|
|
|
color: 'secondary'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
description: 'Disconnected',
|
|
|
|
value: ctrl.agentsCountDisconnected,
|
|
|
|
color: 'danger'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
description: 'Never connected',
|
|
|
|
value: ctrl.agentsCountNeverConnected,
|
|
|
|
color: 'accent'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
description: 'Agents coverage',
|
|
|
|
value: (ctrl.agentsCoverity | number:2) + '%',
|
|
|
|
color: 'accent'
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}" />
|
2018-06-14 11:41:20 +00:00
|
|
|
</div>
|
2019-06-27 15:00:33 +00:00
|
|
|
|
2018-06-14 11:41:20 +00:00
|
|
|
<!-- End agents status section -->
|
2017-12-18 16:52:23 +00:00
|
|
|
|
2018-11-02 07:42:56 +00:00
|
|
|
<div layout="row" layout-align="start stretch" layout-wrap ng-if="!ctrl.load && !ctrl.clusterError">
|
2018-06-14 11:41:20 +00:00
|
|
|
<!-- Manager information section -->
|
|
|
|
<md-card flex class="wz-md-card">
|
|
|
|
<md-card-content>
|
2019-03-25 12:43:49 +00:00
|
|
|
<i class="fa fa-fw fa-server" aria-hidden="true"></i> <span ng-if="ctrl.selectedNode"
|
|
|
|
class="wz-headline-title">{{ctrl.selectedNode}}
|
2019-02-21 13:51:43 +00:00
|
|
|
information</span> <span ng-if="!ctrl.selectedNode" class="wz-headline-title">Manager
|
|
|
|
information</span>
|
2018-06-14 11:41:20 +00:00
|
|
|
<md-divider class="wz-margin-top-10"></md-divider>
|
|
|
|
<div layout="row" class="wz-padding-top-10">
|
|
|
|
<span flex="25">Version</span>
|
2019-01-30 11:18:23 +00:00
|
|
|
<span class="wz-text-right color-grey">{{ctrl.managerInfo.version ? ctrl.managerInfo.version :
|
|
|
|
'-'}}</span>
|
2018-06-14 11:41:20 +00:00
|
|
|
</div>
|
|
|
|
<div layout="row" class="wz-padding-top-10">
|
|
|
|
<span flex="25">Compilation date</span>
|
2018-11-02 07:42:56 +00:00
|
|
|
<span class="wz-text-right color-grey">{{ctrl.managerInfo.compilation_date ?
|
|
|
|
ctrl.managerInfo.compilation_date : '-'}}</span>
|
2018-06-14 11:41:20 +00:00
|
|
|
</div>
|
|
|
|
<div layout="row" class="wz-padding-top-10">
|
|
|
|
<span flex="25">Installation path</span>
|
2019-03-25 12:43:49 +00:00
|
|
|
<span
|
|
|
|
class="wz-text-right color-grey">{{ctrl.managerInfo.path ? ctrl.managerInfo.path : '-'}}</span>
|
2018-06-14 11:41:20 +00:00
|
|
|
</div>
|
|
|
|
<div layout="row" class="wz-padding-top-10">
|
|
|
|
<span flex="25">Installation type</span>
|
2019-03-25 12:43:49 +00:00
|
|
|
<span
|
|
|
|
class="wz-text-right color-grey">{{ctrl.managerInfo.type ? ctrl.managerInfo.type : '-'}}</span>
|
2018-06-14 11:41:20 +00:00
|
|
|
</div>
|
|
|
|
<div layout="row" class="wz-padding-top-10">
|
|
|
|
<span flex="25">Agents limit</span>
|
2019-01-30 11:18:23 +00:00
|
|
|
<span class="wz-text-right color-grey">{{ctrl.managerInfo.max_agents ? ctrl.managerInfo.max_agents
|
|
|
|
: '-'}}</span>
|
2018-06-14 11:41:20 +00:00
|
|
|
</div>
|
|
|
|
<div layout="row" class="wz-padding-top-10">
|
|
|
|
<span flex="25">OpenSSL Support</span>
|
2019-01-30 11:18:23 +00:00
|
|
|
<span class="wz-text-right color-grey">{{ctrl.managerInfo.openssl_support ?
|
|
|
|
ctrl.managerInfo.openssl_support
|
2018-10-18 14:55:23 +00:00
|
|
|
: '-'}}</span>
|
2018-06-14 11:41:20 +00:00
|
|
|
</div>
|
|
|
|
</md-card-content>
|
|
|
|
</md-card>
|
|
|
|
<!-- End manager information section -->
|
2017-11-23 10:22:27 +00:00
|
|
|
|
2018-06-14 11:41:20 +00:00
|
|
|
<!-- Last registered agent section -->
|
2018-11-02 07:42:56 +00:00
|
|
|
<md-card flex class="wz-md-card" ng-show="ctrl.agentInfo && ctrl.agentInfo.id !== '000'">
|
2018-06-14 11:41:20 +00:00
|
|
|
<md-card-content>
|
2019-02-21 13:51:43 +00:00
|
|
|
<i class="fa fa-fw fa-tv" aria-hidden="true"></i> <span class="wz-headline-title">Last registered
|
|
|
|
agent</span>
|
2018-06-14 11:41:20 +00:00
|
|
|
<md-divider class="wz-margin-top-10"></md-divider>
|
|
|
|
<div layout="row" class="wz-padding-top-10">
|
|
|
|
<span flex="25">Name</span>
|
2018-11-02 07:42:56 +00:00
|
|
|
<span class="wz-text-right color-grey">{{ctrl.agentInfo.name ? ctrl.agentInfo.name : '-'}}</span>
|
2018-06-14 11:41:20 +00:00
|
|
|
</div>
|
|
|
|
<div layout="row" class="wz-padding-top-10">
|
|
|
|
<span flex="25">ID</span>
|
2018-11-02 07:42:56 +00:00
|
|
|
<span class="wz-text-right color-grey">{{ctrl.agentInfo.id ? ctrl.agentInfo.id : '-'}}</span>
|
2018-06-14 11:41:20 +00:00
|
|
|
</div>
|
|
|
|
<div layout="row" class="wz-padding-top-10">
|
|
|
|
<span flex="25">Status</span>
|
2019-03-25 12:43:49 +00:00
|
|
|
<span
|
|
|
|
class="wz-text-right color-grey">{{ctrl.agentInfo.status ? ctrl.agentInfo.status : '-'}}</span>
|
2018-06-14 11:41:20 +00:00
|
|
|
</div>
|
|
|
|
<div layout="row" class="wz-padding-top-10">
|
|
|
|
<span flex="25">IP Address</span>
|
2018-11-02 07:42:56 +00:00
|
|
|
<span class="wz-text-right color-grey">{{ctrl.agentInfo.ip ? ctrl.agentInfo.ip : '-'}}</span>
|
2018-06-14 11:41:20 +00:00
|
|
|
</div>
|
|
|
|
<div layout="row" class="wz-padding-top-10">
|
|
|
|
<span flex="25">Date add</span>
|
2019-03-25 12:43:49 +00:00
|
|
|
<span
|
|
|
|
class="wz-text-right color-grey">{{ctrl.agentInfo.dateAdd ? ctrl.agentInfo.dateAdd : '-'}}</span>
|
2018-06-14 11:41:20 +00:00
|
|
|
</div>
|
|
|
|
<div layout="row" class="wz-padding-top-10">
|
|
|
|
<span flex="25">Version</span>
|
2019-03-25 12:43:49 +00:00
|
|
|
<span
|
|
|
|
class="wz-text-right color-grey">{{ctrl.agentInfo.version ? ctrl.agentInfo.version : '-'}}</span>
|
2018-06-14 11:41:20 +00:00
|
|
|
</div>
|
2018-11-02 07:42:56 +00:00
|
|
|
<div layout="row" class="wz-padding-top-10" ng-if="ctrl.agentInfo.id !== '000'">
|
2018-06-14 11:41:20 +00:00
|
|
|
<span flex="25">Last keep alive</span>
|
2019-01-30 11:18:23 +00:00
|
|
|
<span class="wz-text-right color-grey">{{ctrl.agentInfo.lastKeepAlive ?
|
|
|
|
ctrl.agentInfo.lastKeepAlive : '-'}}</span>
|
2018-06-14 11:41:20 +00:00
|
|
|
</div>
|
|
|
|
<div layout="row" class="wz-padding-top-10">
|
|
|
|
<span flex="25">Operating system</span>
|
2018-11-02 07:42:56 +00:00
|
|
|
<span class="wz-text-right color-grey">{{ctrl.agentInfo.os.name ? ctrl.agentInfo.os.name +
|
|
|
|
ctrl.agentInfo.os.version : ctrl.agentInfo.os.uname ? ctrl.agentInfo.os.uname : '-'}}</span>
|
2018-06-14 11:41:20 +00:00
|
|
|
</div>
|
|
|
|
</md-card-content>
|
|
|
|
</md-card>
|
|
|
|
<!-- End last registered agent section -->
|
2017-11-21 15:26:50 +00:00
|
|
|
</div>
|
2019-03-25 12:43:49 +00:00
|
|
|
</div>
|