wazuh-kibana-app/public/templates/agents-prev/agents-prev.html

94 lines
4.6 KiB
HTML

<div flex ng-show="!loading" class="wz-margin-10" layout="column" layout-align="start space-around">
<div layout="row" layout-align="space-between stretch">
<md-card flex class="cardHover margin-left-0 wz-md-card">
<md-card-content class="text-center cursor-pointer" ng-click="showAgent(lastAgent)">
<div class="font-size-16-pt">{{lastAgent.name}}</div>
<div>Last registered agent</div>
</md-card-content>
</md-card>
<md-card flex class="cardHover wz-md-card">
<md-card-content class="text-center cursor-pointer" ng-click="showAgent(mostActiveAgent)">
<div class="font-size-16-pt">{{mostActiveAgent.name}}</div>
<div>Higher activity</div>
</md-card-content>
</md-card>
<md-card flex="10" class="wz-md-card">
<md-card-content class="text-center">
<div class="font-size-16-pt">{{agentsCountActive}}</div>
<div>Active</div>
</md-card-content>
</md-card>
<md-card flex="10" layout="column" class="wz-md-card">
<md-card-content class="text-center">
<div class="font-size-16-pt">{{agentsCountDisconnected}}</div>
<div>Disconnected</div>
</md-card-content>
</md-card>
<md-card flex="10" class="wz-md-card">
<md-card-content class="text-center">
<div class="font-size-16-pt">{{agentsCountNeverConnected}}</div>
<div>Never connected</div>
</md-card-content>
</md-card>
<md-card flex="10" class="no-margin-right wz-md-card">
<md-card-content class="text-center">
<div class="font-size-16-pt">{{(agentsCoverity | number:2)}}%</div>
<div>Agents coverage</div>
</md-card-content>
</md-card>
</div>
<div layout="row" layout-align="start stretch">
<wz-search-bar flex="60" class="wz-margin-top-17 wz-padding-right" height="'height-41'" data="agents" term="searchTerm" placetext="'Filter agents...'"></wz-search-bar>
<md-input-container flex="20" class="md-block md-whiteframe-z1 md-input-margin wz-margin-top-17">
<md-select class="wz-border-none" id="eventBox" ng-model="status" ng-change="agents.addFilter('status', status)" aria-label="Filter by status">
<md-option value="all">All states</md-option>
<md-option value="active">Active</md-option>
<md-option value="disconnected">Disconnected</md-option>
<md-option value="Never Connected">Never connected</md-option>
</md-select>
</md-input-container>
<md-input-container flex="20" class="md-block md-whiteframe-z1 wz-margin-top-17">
<md-select class="wz-border-none" id="eventBox" ng-model="osPlatform" ng-change="applyFilters(osPlatform)" aria-label="Filter by operative system">
<md-option value="all">All OS platforms</md-option>
<md-option ng-repeat='platform in osPlatforms' value="{{platform.platform}} - {{platform.version}}">
{{platform.name}} {{platform.version}}
</md-option>
</md-select>
</md-input-container>
</div>
<wz-table-header
layout="row"
data="agents"
keys="[
{name:'ID',sortValue:'id',size:5},
{name:'Name',sortValue:'name',size:15},
{name:'IP',sortValue:'ip',size:10},
{name:'Status',sortValue:'status',size:10},
{name:'OS platform',sortValue:'os.platform',size:30},
{name:'OS version',sortValue:'os.version',size:15},
{name:'Agent version',sortValue:'version',size:15}
]"
>
</wz-table-header>
<wz-table
layout="column"
flex
data="agents"
func="showAgent(agent)"
keys="[
{col:'id',size:5},
{col:'name',size:15},
{col:'ip',size:10},
{col:'status',size:10},
{col:'os.name',size:30},
{col:'os.version',size:15},
{col:'version',size:15}
]"
class="no-lateral-padding"
full="'agent'">
</wz-table>
</div>