wazuh-kibana-app/public/templates/manager/manager-status.html
2018-03-02 17:23:57 +01:00

114 lines
6.3 KiB
HTML

<md-content flex layout="column" ng-if="!load && submenuNavItem == 'status'" ng-controller="managerStatusController">
<div class='uil-ring-css' ng-show="load"><div></div></div>
<div flex layout="column" ng-show="!load" layout-align="start stretch">
<div class="joinCardsRow" layout="row" layout-align="start stretch">
<md-card flex ng-repeat="(k,v) in daemons">
<md-card-content class="text-center">
<center>
<p ng-class="getDaemonStatusClass(v)" class="round"></p>
<p>{{k}}</p>
</center>
</md-card-content>
</md-card>
</div>
<div layout="row">
<md-card flex class="height-30 wz-metric-color">
<md-card-content layout="row" class="wz-padding-top-5">
<span flex>Total agents: <b>{{agentsCountTotal}}</b></span>
<span flex>Active: <b>{{agentsCountActive}}</b></span>
<span flex>Disconnected: <b>{{agentsCountDisconnected}}</b></span>
<span flex>Never connected: <b>{{agentsCountNeverConnected}}</b></span>
<span flex>Agents coverage: <b>{{(agentsCoverity | number:2)}}%</b></span>
</md-card-content>
</md-card>
</div>
<div layout="row" layout-align="start stretch">
<md-card flex="50">
<md-card-content>
<span class="md-headline">Manager information</span>
<md-divider></md-divider>
<div layout="column">
<span layout="row">
<p class="manager-status-subtitle">Version</p>
<p class="text-right color-grey">{{managerInfo.version ? managerInfo.version : '-'}}</p>
</span>
<span layout="row">
<p class="manager-status-subtitle">Compilation date</p>
<p class="text-right color-grey">{{managerInfo.compilation_date ? managerInfo.compilation_date : '-'}}</p>
</span>
<span layout="row">
<p class="manager-status-subtitle">Installation path</p>
<p class="text-right color-grey">{{managerInfo.path ? managerInfo.path : '-'}}</p>
</span>
<span layout="row">
<p class="manager-status-subtitle">Installation type</p>
<p class="text-right color-grey">{{managerInfo.type ? managerInfo.type : '-'}}</p>
</span>
<span layout="row">
<p class="manager-status-subtitle">Agents limit</p>
<p class="text-right color-grey">{{managerInfo.max_agents ? managerInfo.max_agents : '-'}}</p>
</span>
<span layout="row">
<p class="manager-status-subtitle">OpenSSL Support</p>
<p class="text-right color-grey">{{managerInfo.openssl_support ? managerInfo.openssl_support : '-'}}</p>
</span>
<span layout="row">
<p class="manager-status-subtitle">Total rules</p>
<p class="text-right color-grey">{{totalRules ? totalRules : '-'}}</p>
</span>
<span layout="row">
<p class="manager-status-subtitle">Total decoders</p>
<p class="text-right color-grey">{{totalDecoders ? totalDecoders : '-'}}</p>
</span>
</div>
</md-card-content>
</md-card>
<md-card flex="50">
<md-card-content>
<span class="md-headline">Last registered agent</span>
<md-divider></md-divider>
<div layout="column" flex>
<span layout="row">
<p class="manager-status-subtitle">Name</p>
<p class="text-right color-grey">{{agentInfo.name ? agentInfo.name : '-'}}</p>
</span>
<span layout="row">
<p class="manager-status-subtitle">ID</p>
<p class="text-right color-grey">{{agentInfo.id ? agentInfo.id : '-'}}</p>
</span>
<span layout="row">
<p class="manager-status-subtitle">Status</p>
<p class="text-right color-grey">{{agentInfo.status ? agentInfo.status : '-'}}</p>
</span>
<span layout="row">
<p class="manager-status-subtitle">IP Address</p>
<p class="text-right color-grey">{{agentInfo.ip ? agentInfo.ip : '-'}}</p>
</span>
<span layout="row">
<p class="manager-status-subtitle">Date add</p>
<p class="text-right color-grey">{{agentInfo.dateAdd ? agentInfo.dateAdd : '-'}}</p>
</span>
<span layout="row">
<p class="manager-status-subtitle">Version</p>
<p class="text-right color-grey">{{agentInfo.version ? agentInfo.version : '-'}}</p>
</span>
<span layout="row" ng-if="agentInfo.id !== '000'">
<p class="manager-status-subtitle">Last keep alive</p>
<p class="text-right color-grey">{{agentInfo.lastKeepAlive ? agentInfo.lastKeepAlive : '-'}}</p>
</span>
<span layout="row">
<p class="manager-status-subtitle">Operating system</p>
<p class="text-right color-grey">{{agentInfo.os.name ? agentInfo.os.name + agentInfo.os.version : agentInfo.os.uname ? agentInfo.os.uname : '-'}}</p>
</span>
</div>
</md-card-content>
</md-card>
</div>
</div>
</md-content>