mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-06 09:55:18 +00:00
Added syscollector-processes table
This commit is contained in:
parent
c8c50ee319
commit
0b20e95d2d
@ -224,6 +224,10 @@ app.controller(
|
||||
apiReq.request('GET', `/syscollector/${id}/packages`, {
|
||||
limit: 1,
|
||||
select: 'scan_time'
|
||||
}),
|
||||
apiReq.request('GET', `/syscollector/${id}/processes`, {
|
||||
limit: 1,
|
||||
select: 'scan_time'
|
||||
})
|
||||
]);
|
||||
if (
|
||||
@ -243,12 +247,15 @@ app.controller(
|
||||
const netiface = {};
|
||||
const ports = {};
|
||||
const packagesDate = {};
|
||||
const processesDate = {};
|
||||
if (data[2] && data[2].data && data[2].data.data)
|
||||
Object.assign(netiface, data[2].data.data);
|
||||
if (data[3] && data[3].data && data[3].data.data)
|
||||
Object.assign(ports, data[3].data.data);
|
||||
if (data[4] && data[4].data && data[4].data.data)
|
||||
Object.assign(packagesDate, data[4].data.data);
|
||||
if (data[5] && data[5].data && data[5].data.data)
|
||||
Object.assign(processesDate, data[5].data.data);
|
||||
$scope.syscollector = {
|
||||
hardware: data[0].data.data,
|
||||
os: data[1].data.data,
|
||||
@ -257,6 +264,10 @@ app.controller(
|
||||
packagesDate:
|
||||
packagesDate && packagesDate.items && packagesDate.items.length
|
||||
? packagesDate.items[0].scan_time
|
||||
: 'Unknown',
|
||||
processesDate:
|
||||
processesDate && processesDate.items && processesDate.items.length
|
||||
? processesDate.items[0].scan_time
|
||||
: 'Unknown'
|
||||
};
|
||||
}
|
||||
|
@ -66,7 +66,7 @@
|
||||
</md-card-content>
|
||||
</md-card>
|
||||
</div>
|
||||
|
||||
|
||||
<div layout="row" class="layout-padding wz-padding-top-0" ng-if="syscollector">
|
||||
<md-card flex class="wz-md-card">
|
||||
<md-card-content>
|
||||
@ -88,4 +88,25 @@
|
||||
</md-card-content>
|
||||
</md-card>
|
||||
</div>
|
||||
|
||||
<div layout="row" class="layout-padding wz-padding-top-0" ng-if="syscollector && syscollector.processesDate">
|
||||
<md-card flex class="wz-md-card">
|
||||
<md-card-content>
|
||||
<span class="wz-headline-title"><i class="fa fa-fw fa-terminal"></i> Processes</span>
|
||||
<span class="color-grey pull-right">Last scan: {{syscollector.processesDate}}</span>
|
||||
<md-divider class="wz-margin-top-10"></md-divider>
|
||||
<div layout="row" class="wz-margin-top-10">
|
||||
<input placeholder="Filter processes..." ng-model="processSearch" type="text" class="kuiLocalSearchInput ng-empty ng-pristine ng-scope ng-touched ng-valid height-30"
|
||||
aria-invalid="false" wz-enter="search(processSearch,'processes')">
|
||||
<button type="submit" aria-label="Search" class="kuiLocalSearchButton height-30" ng-click="search(processSearch,'processes')">
|
||||
<span class="fa fa-search" aria-hidden="true"></span>
|
||||
</button>
|
||||
</div>
|
||||
<div layout="row" ng-if="agent && syscollector && !load" class="wz-margin-top-10 wz-margin-bottom-40-inv">
|
||||
<wz-table flex path="'/syscollector/' + agent.id + '/processes'" row-sizes="[6,4,3,3]" extra-limit="true" keys="['name','euser','nice','state']">
|
||||
</wz-table>
|
||||
</div>
|
||||
</md-card-content>
|
||||
</md-card>
|
||||
</div>
|
||||
</md-content>
|
@ -61,5 +61,7 @@ export default {
|
||||
address: 'Address',
|
||||
protocol: 'Protocol',
|
||||
'local.ip': 'Local',
|
||||
'remote.ip': 'Remote'
|
||||
'remote.ip': 'Remote',
|
||||
euser: 'Effective user',
|
||||
nice: 'Priority'
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user