Minor adjustment to new metrics

This commit is contained in:
Jesús Ángel González 2018-03-01 16:51:12 +01:00 committed by Javier Castro
parent e7bfbc0a4e
commit 7b9e0649fa
8 changed files with 46 additions and 42 deletions

View File

@ -178,3 +178,7 @@ md-select .md-select-value.md-select-placeholder {
.wz-padding-top-5 {
padding-top: 5px !important;
}
.wz-metric-color {
background-color: #e4f2f5 !important;
}

View File

@ -3,12 +3,12 @@
<!-- View: Panels -->
<div ng-if="resultState === 'ready' && tabView === 'panels'">
<div layout="row">
<md-card flex class="height-30">
<md-card flex class="height-30 wz-metric-color">
<md-card-content layout="row" class="wz-padding-top-5">
<span flex><b>New files:</b> {{auditNewFiles}}</span>
<span flex><b>Read files:</b> {{auditReadFiles}}</span>
<span flex><b>Modified files:</b> {{auditModifiedFiles}}</span>
<span flex><b>Removed files:</b> {{auditRemovedFiles}}</span>
<span flex>New files: <b>{{auditNewFiles}}</b></span>
<span flex>Read files: <b>{{auditReadFiles}}</b></span>
<span flex>Modified files: <b>{{auditModifiedFiles}}</b></span>
<span flex>Removed files: <b>{{auditRemovedFiles}}</b></span>
</md-card-content>
</md-card>
</div>

View File

@ -2,31 +2,31 @@
<div ng-if="resultState === 'ready' && tabView === 'panels'">
<div layout="row">
<md-card flex class="height-30">
<md-card flex class="height-30 wz-metric-color">
<md-card-content layout="row" class="wz-padding-top-5">
<span flex><b>Name:</b> {{agent.name}}</span>
<span flex><b>IP:</b> {{agent.ip}}</span>
<span ng-if="agent.version" flex><b>Version:</b> {{ agent.version | limitTo: 12 }}{{agent.version.length > 12 ? '...' : ''}}</span>
<span ng-if="agent.group" flex><b>Group:</b> {{ agent.group }}</span>
<span flex><b>OS:</b> {{ agentOS }}</span>
<span flex>Name: <b>{{agent.name}}</b></span>
<span flex>IP: <b>{{agent.ip}}</b></span>
<span ng-if="agent.version" flex>Version:<b> {{ agent.version | limitTo: 12 }}{{agent.version.length > 12 ? '...' : ''}}</b></span>
<span ng-if="agent.group" flex>Group:<b> {{ agent.group }}</b></span>
<span flex>OS:<b> {{ agentOS }}</b></span>
</md-card-content>
</md-card>
</div>
<div layout="row">
<md-card flex class="height-30">
<md-card flex class="height-30 wz-metric-color">
<md-card-content layout="row" class="wz-padding-top-5">
<span flex><b>Last keep alive:</b> {{agent.lastKeepAlive || 'Unknown' }}</span>
<span flex><b>Registration date:</b> {{agent.dateAdd}}</span>
<span flex ng-if="agent.syscheck.inProgress"><b>Last syscheck scan:</b> Scan in progress</span>
<span flex ng-if="!agent.syscheck.inProgress"><b>Last syscheck scan:</b> {{agent.syscheck.end || 'Unknown'}}
<span flex>Last keep alive:<b> {{agent.lastKeepAlive || 'Unknown' }}</b></span>
<span flex>Registration date:<b> {{agent.dateAdd}}</b></span>
<span flex ng-if="agent.syscheck.inProgress">Last syscheck scan:<b> Scan in progress</b></span>
<span flex ng-if="!agent.syscheck.inProgress">Last syscheck scan:<b> {{agent.syscheck.end || 'Unknown'}}</b>
<md-tooltip ng-if="!agent.syscheck.inProgress && agent.syscheck.start && agent.syscheck.end" md-direction="bottom">
Start time: {{ agent.syscheck.start || 'Unknown'}} <br>
End time: {{ agent.syscheck.end || 'Unknown'}} <br>
Duration time: {{ agent.syscheck.duration +' minutes' || 'Unknown'}}
</md-tooltip>
</span>
<span flex ng-if="agent.rootcheck.inProgress"><b>Last rootcheck scan:</b> Scan in progress</span>
<span flex ng-if="!agent.rootcheck.inProgress"><b>Last rootcheck scan:</b> {{agent.rootcheck.end || 'Unknown'}}
<span flex ng-if="agent.rootcheck.inProgress">Last rootcheck scan:<b> Scan in progress</b></span>
<span flex ng-if="!agent.rootcheck.inProgress">Last rootcheck scan:<b> {{agent.rootcheck.end || 'Unknown'}}</b>
<md-tooltip ng-if="!agent.rootcheck.inProgress && agent.rootcheck.start && agent.rootcheck.end" md-direction="bottom">
Start time: {{ agent.rootcheck.start || 'Unknown'}} <br>
End time: {{ agent.rootcheck.end || 'Unknown'}} <br>

View File

@ -3,12 +3,12 @@
<!-- View: Panels -->
<div ng-if="resultState === 'ready' && tabView === 'panels'">
<div layout="row">
<md-card flex class="height-30">
<md-card flex class="height-30 wz-metric-color">
<md-card-content layout="row" class="wz-padding-top-5">
<span flex><b>Critical severity alerts:</b> {{vulnCritical}}</span>
<span flex><b>High severity alerts:</b> {{vulnHigh}}</span>
<span flex><b>Medium severity alerts:</b> {{vulnMedium}}</span>
<span flex><b>Low severity alerts:</b> {{vulnLow}}</span>
<span flex>Critical severity alerts: <b>{{vulnCritical}}</b></span>
<span flex>High severity alerts: <b>{{vulnHigh}}</b></span>
<span flex>Medium severity alerts: <b>{{vulnMedium}}</b></span>
<span flex>Low severity alerts: <b>{{vulnLow}}</b></span>
</md-card-content>
</md-card>
</div>

View File

@ -3,12 +3,12 @@
<!-- View: Panels -->
<div ng-if="resultState === 'ready' && tabView === 'panels'">
<div layout="row">
<md-card flex class="height-30">
<md-card flex class="height-30 wz-metric-color">
<md-card-content layout="row" class="wz-padding-top-5">
<span flex><b>New files:</b> {{auditNewFiles}}</span>
<span flex><b>Read files:</b> {{auditReadFiles}}</span>
<span flex><b>Modified files:</b> {{auditModifiedFiles}}</span>
<span flex><b>Removed files:</b> {{auditRemovedFiles}}</span>
<span flex>New files: <b>{{auditNewFiles}}</b></span>
<span flex>Read files: <b>{{auditReadFiles}}</b></span>
<span flex>Modified files: <b>{{auditModifiedFiles}}</b></span>
<span flex>Removed files: <b>{{auditRemovedFiles}}</b></span>
</md-card-content>
</md-card>
</div>

View File

@ -5,11 +5,11 @@
<div layout="row">
<md-card flex class="height-30">
<md-card flex class="height-30 wz-metric-color">
<md-card-content layout="row" class="wz-padding-top-5">
<span flex><b>Files added:</b> {{fimAdded}}</span>
<span flex><b>Files modified:</b> {{fimModified}}</span>
<span flex><b>Files deleted:</b> {{fimDeleted}}</span>
<span flex>Files added: <b>{{fimAdded}}</b></span>
<span flex>Files modified: <b>{{fimModified}}</b></span>
<span flex>Files deleted: <b>{{fimDeleted}}</b></span>
</md-card-content>
</md-card>
</div>

View File

@ -3,12 +3,12 @@
<!-- View: Panels -->
<div ng-if="resultState === 'ready' && tabView === 'panels'">
<div layout="row">
<md-card flex class="height-30">
<md-card flex class="height-30 wz-metric-color">
<md-card-content layout="row" class="wz-padding-top-5">
<span flex><b>Alerts:</b> {{totalAlerts}}</span>
<span flex><b>Level 12 or above alerts:</b> {{level12}}</span>
<span flex><b>Authentication failure:</b> {{authFailure}}</span>
<span flex><b>Authentication success:</b> {{authSuccess}}</span>
<span flex>Alerts: <b>{{totalAlerts}}</b></span>
<span flex>Level 12 or above alerts: <b>{{level12}}</b></span>
<span flex>Authentication failure: <b>{{authFailure}}</b></span>
<span flex>Authentication success: <b>{{authSuccess}}</b></span>
</md-card-content>
</md-card>
</div>

View File

@ -3,12 +3,12 @@
<!-- View: Panels -->
<div ng-if="resultState === 'ready' && tabView === 'panels'">
<div layout="row">
<md-card flex class="height-30">
<md-card flex class="height-30 wz-metric-color">
<md-card-content layout="row" class="wz-padding-top-5">
<span flex><b>Critical severity alerts:</b> {{vulnCritical}}</span>
<span flex><b>High severity alerts:</b> {{vulnHigh}}</span>
<span flex><b>Medium severity alerts:</b> {{vulnMedium}}</span>
<span flex><b>Low severity alerts:</b> {{vulnLow}}</span>
<span flex>Critical severity alerts: <b>{{vulnCritical}}</b></span>
<span flex>High severity alerts: <b>{{vulnHigh}}</b></span>
<span flex>Medium severity alerts: <b>{{vulnMedium}}</b></span>
<span flex>Low severity alerts: <b>{{vulnLow}}</b></span>
</md-card-content>
</md-card>
</div>