diff --git a/public/controllers/agent/agents.js b/public/controllers/agent/agents.js index 8d1304bac..1a17f0b99 100644 --- a/public/controllers/agent/agents.js +++ b/public/controllers/agent/agents.js @@ -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' }; } diff --git a/public/templates/agents/agents-syscollector.html b/public/templates/agents/agents-syscollector.html index 9e24bc2d0..aead1b387 100644 --- a/public/templates/agents/agents-syscollector.html +++ b/public/templates/agents/agents-syscollector.html @@ -66,7 +66,7 @@ - +
@@ -88,4 +88,25 @@
+ +
+ + + Processes + Last scan: {{syscollector.processesDate}} + +
+ + +
+
+ + +
+
+
+
\ No newline at end of file diff --git a/util/csv-key-equivalence.js b/util/csv-key-equivalence.js index 04b7c7d34..d105529ce 100644 --- a/util/csv-key-equivalence.js +++ b/util/csv-key-equivalence.js @@ -61,5 +61,7 @@ export default { address: 'Address', protocol: 'Protocol', 'local.ip': 'Local', - 'remote.ip': 'Remote' + 'remote.ip': 'Remote', + euser: 'Effective user', + nice: 'Priority' };