wazuh-kibana-app/public/templates/agents/agents-general.html
2018-01-15 17:37:13 +01:00

139 lines
7.7 KiB
HTML

<md-content flex layout="column" ng-if="tab === 'general'" layout-align="start">
<div ng-show="resultState === 'ready' && tabView === 'panels'">
<div layout="row" class="height-100">
<md-card flex>
<md-card-content class="text-center">
<div class="metric-value ng-binding font-size-14-pt">{{agent.name}}</div>
<!--<md-tooltip md-direction="bottom">{{ agent.name }}</md-tooltip>-->
<div class="ng-binding">Name</div>
</md-card-content>
</md-card>
<md-card flex="12">
<md-card-content class="text-center">
<div class="metric-value ng-binding font-size-14-pt">{{agent.ip}}</div>
<!--<md-tooltip md-direction="bottom">{{ agent.ip }}</md-tooltip>-->
<div class="ng-binding">IP Address</div>
</md-card-content>
</md-card>
<md-card ng-if="agent.version" flex="12">
<md-card-content class="text-center">
<div class="metric-value ng-binding font-size-14-pt">{{ agent.version | limitTo: 12 }}{{agent.version.length > 12 ? '...' : ''}}</div>
<!--<md-tooltip md-direction="bottom">{{ agent.version }}</md-tooltip>-->
<div class="ng-binding">Version</div>
</md-card-content>
</md-card>
<md-card ng-if="agent.group" flex="12">
<md-card-content class="text-center" ng-click="goGroups(agent)">
<div class="metric-value ng-binding font-size-14-pt" >{{ agent.group }}</div>
<!--<md-tooltip md-direction="bottom">{{ agent.version }}</md-tooltip>-->
<div class="ng-binding">Group</div>
</md-card-content>
</md-card>
<md-card flex>
<md-card-content class="text-center">
<div class="metric-value ng-binding legend-value-truncate font-size-14-pt">{{ agentOS }}</div>
<!--<md-tooltip md-direction="bottom">{{ agentOS }}</md-tooltip>-->
<div class="ng-binding">OS</div>
</md-card-content>
</md-card>
</div>
<div layout="row" class="height-100">
<md-card flex ng-show="agent.id != '000'">
<md-card-content class="text-center">
<div class="metric-value ng-binding font-size-14-pt">{{agent.lastKeepAlive || 'Unknown' }}</div>
<!--<md-tooltip md-direction="bottom">{{ agent.lastKeepAlive }}</md-tooltip>-->
<div class="ng-binding">Last keep alive</div>
</md-card-content>
</md-card>
<md-card flex>
<md-card-content class="text-center">
<div class="metric-value ng-binding font-size-14-pt">{{agent.dateAdd}}</div>
<!--<md-tooltip md-direction="bottom">{{ agent.dateAdd }}</md-tooltip>-->
<div class="ng-binding">Registration date</div>
</md-card-content>
</md-card>
<md-card flex>
<md-card-content class="text-center">
<div class="metric-value ng-binding font-size-14-pt" ng-if="agent.syscheck.inProgress">Scan in progress</div>
<div ng-if="!agent.syscheck.inProgress" class="metric-value ng-binding font-size-14-pt">{{agent.syscheck.end || 'Unknown'}}</div>
<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>
<div class="ng-binding">Last syscheck scan</div>
</md-card-content>
</md-card>
<md-card flex>
<md-card-content class="text-center">
<div class="metric-value ng-binding font-size-14-pt" ng-if="agent.rootcheck.inProgress">Scan in progress</div>
<div ng-if="!agent.rootcheck.inProgress" class="metric-value ng-binding font-size-14-pt">{{agent.rootcheck.end || 'Unknown'}}</div>
<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>
Duration time: {{ agent.rootcheck.duration + ' minutes' || 'Unknown' }}
</md-tooltip>
<div class="ng-binding">Last rootcheck scan</div>
</md-card-content>
</md-card>
</div>
</div>
<!-- View: Panels -->
<div ng-show="resultState === 'ready' && tabView === 'panels'">
<div layout="row" class="height-230">
<md-card flex="33">
<md-card-content class="wazuh-column">
<span class="md-headline">Top 5 alerts</span>
<kbn-vis vis-id="'Wazuh-App-Agents-Overview-Top-5-alerts'" id="Wazuh-App-Agents-Overview-Top-5-alerts"></kbn-vis>
</md-card-content>
</md-card>
<md-card flex="33">
<md-card-content class="wazuh-column">
<span class="md-headline">Top 5 groups</span>
<kbn-vis vis-id="'Wazuh-App-Agents-Overview-Top-5-groups'" id="Wazuh-App-Agents-Overview-Top-5-groups"></kbn-vis>
</md-card-content>
</md-card>
<md-card flex="33">
<md-card-content class="wazuh-column">
<span class="md-headline">Top 5 PCI DSS Requirements</span>
<kbn-vis vis-id="'Wazuh-App-Agents-Overview-Top-5-PCI-DSS-Requirements'" id="Wazuh-App-Agents-Overview-Top-5-PCI-DSS-Requirements"></kbn-vis>
</md-card-content>
</md-card>
</div>
<div layout="row" layout-align="start stretch" class="height-230">
<md-card flex>
<md-card-content class="wazuh-column">
<span class="md-headline">Alert level evolution</span>
<kbn-vis vis-id="'Wazuh-App-Agents-Overview-Alert-level-evolution'" id="Wazuh-App-Agents-Overview-Alert-level-evolution"></kbn-vis>
</md-card-content>
</md-card>
<md-card flex="60">
<md-card-content class="wazuh-column">
<span class="md-headline">Alerts</span>
<kbn-vis vis-id="'Wazuh-App-Agents-Overview-Alerts'" id="Wazuh-App-Agents-Overview-Alerts"></kbn-vis>
</md-card-content>
</md-card>
</div>
<div layout="row" class="height-550">
<md-card flex="60">
<md-card-content class="wazuh-column">
<span class="md-headline">Alerts summary</span>
<kbn-vis class="kbn-chart" vis-id="'Wazuh-App-Agents-Overview-Alerts-summary'" id="Wazuh-App-Agents-Overview-Alerts-summary"></kbn-vis>
</md-card-content>
</md-card>
<md-card flex="40">
<md-card-content class="wazuh-column">
<span class="md-headline">Groups summary</span>
<kbn-vis class="kbn-chart" vis-id="'Wazuh-App-Agents-Overview-Groups-summary'" id="Wazuh-App-Agents-Overview-Groups-summary"></kbn-vis>
</md-card-content>
</md-card>
</div>
</div>
</md-content>