mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-07 10:18:57 +00:00
Filtering syscollector output
This commit is contained in:
parent
4bdc38f86b
commit
316c7b4dea
@ -192,9 +192,14 @@ function (
|
||||
|
||||
$scope.switchTab($scope.tab, true);
|
||||
|
||||
$scope.syscollector = {
|
||||
hardware: data[3].data.data,
|
||||
os: data[4].data.data
|
||||
if(!data[3] || !data[3].data || !data[3].data.data || typeof data[3].data.data !== 'object' || !Object.keys(data[3].data.data).length ||
|
||||
!data[4] || !data[4].data || !data[4].data.data || typeof data[4].data.data !== 'object' || !Object.keys(data[4].data.data).length){
|
||||
$scope.syscollector = null;
|
||||
} else {
|
||||
$scope.syscollector = {
|
||||
hardware: data[3].data.data,
|
||||
os: data[4].data.data
|
||||
};
|
||||
}
|
||||
|
||||
$scope.load = false;
|
||||
|
@ -1,5 +1,17 @@
|
||||
<md-content flex layout="column" ng-if="tab === 'syscollector'" ng-show="!load">
|
||||
<div layout="row" class="layout-padding">
|
||||
<div layout="row" layout-align="layout-padding" ng-if="!syscollector">
|
||||
<md-card flex class="wz-md-card" flex>
|
||||
<md-card-content class="wz-text-center">
|
||||
<i class="fa fa-fw fa-info-circle" aria-hidden="true"></i> <span class="wz-headline-title">Inventory disabled</span>
|
||||
<md-divider class="wz-margin-top-10"></md-divider>
|
||||
<div layout="column" class="wz-padding-top-10">
|
||||
<p>Inventory (syscollector) is disabled for this agent. Visit the documentation on <a target="_blank" href="https://documentation.wazuh.com/current/user-manual/reference/ossec-conf/wodle-syscollector.html">this link</a> to learn about how to enable it.
|
||||
</p>
|
||||
</div>
|
||||
</md-card-content>
|
||||
</md-card>
|
||||
</div>
|
||||
<div layout="row" class="layout-padding" ng-if="syscollector">
|
||||
<md-card flex class="wz-md-card">
|
||||
<md-card-content>
|
||||
<span class="wz-headline-title">OS information</span>
|
||||
@ -31,7 +43,7 @@
|
||||
|
||||
</md-card-content>
|
||||
</md-card>
|
||||
<md-card flex class="wz-md-card">
|
||||
<md-card flex class="wz-md-card" ng-if="syscollector">
|
||||
<md-card-content>
|
||||
<span class="wz-headline-title">Hardware information</span>
|
||||
<md-divider class="wz-margin-top-10"></md-divider>
|
||||
@ -55,7 +67,7 @@
|
||||
</md-card>
|
||||
</div>
|
||||
|
||||
<div layout="row" class="md-padding">
|
||||
<div layout="row" class="md-padding" ng-if="syscollector">
|
||||
<input placeholder="Filter packages..." ng-model="custom_search" type="text" class="kuiLocalSearchInput ng-empty ng-pristine ng-scope ng-touched ng-valid"
|
||||
aria-invalid="false" wz-enter="search(custom_search)">
|
||||
<button type="submit" aria-label="Search" class="kuiLocalSearchButton height-40" ng-click="search(custom_search)">
|
||||
@ -63,7 +75,7 @@
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div layout="row" ng-if="agent" class="md-padding">
|
||||
<div layout="row" ng-if="agent && syscollector" class="md-padding">
|
||||
<wazuh-table
|
||||
flex
|
||||
path="'/syscollector/' + agent.id + '/packages'"
|
||||
|
@ -103,7 +103,7 @@
|
||||
<md-nav-item class="wz-nav-item" md-nav-click="switchTab('general')" name="general">General</md-nav-item>
|
||||
<md-nav-item class="wz-nav-item" md-nav-click="switchTab('fim')" name="fim">File integrity</md-nav-item>
|
||||
<md-nav-item class="wz-nav-item" md-nav-click="switchTab('configuration')" name="configuration">Configuration</md-nav-item>
|
||||
<md-nav-item ng-show="syscollector && syscollector.os && syscollector.os.sysname" class="wz-nav-item" md-nav-click="switchTab('syscollector')" name="syscollector">Inventory</md-nav-item>
|
||||
<md-nav-item class="wz-nav-item" md-nav-click="switchTab('syscollector')" name="syscollector">Inventory</md-nav-item>
|
||||
</md-nav-bar>
|
||||
<!-- End Host monitoring navigation bar -->
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user