mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-06 09:55:18 +00:00
Add netaddr table for inventory
This commit is contained in:
parent
cec8fa27d7
commit
33c39e7dc1
@ -519,6 +519,7 @@ export class AgentsController {
|
||||
this.apiReq.request('GET', `/syscollector/${id}/os`, {}),
|
||||
this.apiReq.request('GET', `/syscollector/${id}/netiface`, {}),
|
||||
this.apiReq.request('GET', `/syscollector/${id}/ports`, {}),
|
||||
this.apiReq.request('GET', `/syscollector/${id}/netaddr`, {}),
|
||||
this.apiReq.request('GET', `/syscollector/${id}/packages`, {
|
||||
limit: 1,
|
||||
select: 'scan_time'
|
||||
@ -536,6 +537,7 @@ export class AgentsController {
|
||||
osResponse,
|
||||
netifaceResponse,
|
||||
portsResponse,
|
||||
netaddrResponse,
|
||||
packagesDateResponse,
|
||||
processesDateResponse
|
||||
] = result;
|
||||
@ -563,6 +565,7 @@ export class AgentsController {
|
||||
: false,
|
||||
netiface: netifaceResponse ? { ...netifaceResponse } : false,
|
||||
ports: portsResponse ? { ...portsResponse } : false,
|
||||
netaddr: netaddrResponse ? { ...netaddrResponse } : false,
|
||||
packagesDate: ((packagesDate || {}).items || []).length
|
||||
? packagesDate.items[0].scan_time
|
||||
: 'Unknown',
|
||||
|
@ -104,6 +104,24 @@
|
||||
</md-card>
|
||||
</div>
|
||||
|
||||
<div layout="row" class="layout-padding wz-padding-bottom-0" ng-if="syscollectorEnabled && hasSize(syscollector)">
|
||||
<md-card flex class="wz-md-card">
|
||||
<md-card-content class="wz-text-center wz-margin-bottom-40-inv" ng-if="syscollector.netaddr && !syscollector.netaddr.items.length">
|
||||
<i class="fa fa-fw fa-info-circle" aria-hidden="true"></i> <span class="wz-headline-title">No network addresses scan available</span>
|
||||
<md-divider class="wz-margin-top-10"></md-divider>
|
||||
<div layout="column" class="wz-padding-top-10">
|
||||
<p>The network addresses scan is disabled or not ready yet. Wait a little bit and try refreshing the page.</p>
|
||||
</div>
|
||||
</md-card-content>
|
||||
<md-card-content class="wz-margin-bottom-40-inv" ng-if="syscollector.netaddr && syscollector.netaddr.items.length">
|
||||
<span class="wz-headline-title"><i class="fa fa-fw fa-exchange"></i> Network addresses</span>
|
||||
<md-divider class="wz-margin-top-10"></md-divider>
|
||||
<wz-table flex path="'/syscollector/' + agent.id + '/netaddr'" row-sizes="[4]" keys="['address', 'netmask', 'proto', 'broadcast']">
|
||||
</wz-table>
|
||||
</md-card-content>
|
||||
</md-card>
|
||||
</div>
|
||||
|
||||
<div layout="row" class="layout-padding wz-padding-top-0" ng-if="syscollectorEnabled && hasSize(syscollector)">
|
||||
<md-card flex class="wz-md-card">
|
||||
<md-card-content>
|
||||
|
@ -61,6 +61,7 @@ export const KeyEquivalenece = {
|
||||
proto: 'Protocol',
|
||||
address: 'Address',
|
||||
protocol: 'Protocol',
|
||||
netmask: 'Netmask',
|
||||
'local.ip': 'Local IP',
|
||||
'remote.ip': 'Remote IP',
|
||||
'local.port': 'Local port',
|
||||
|
Loading…
Reference in New Issue
Block a user