diff --git a/public/controllers/agents.js b/public/controllers/agents.js index 4e0e528d4..aa8aff75c 100644 --- a/public/controllers/agents.js +++ b/public/controllers/agents.js @@ -108,6 +108,20 @@ app.controller('agentsController', function ($scope, $route, alertify, sharedPro }, printError); }; + $scope.fetchFim = function (agent) { + DataFactory.getAndClean('get', '/syscheck/' + agent.id + '/files', { 'offset': 0, 'limit': 5 }) + .then(function (data) { + $scope.agentFetchInfo[agent.id].syscheckEvents = data.data.items; + }, printError); + }; + + $scope.fetchRootcheck = function (agent) { + DataFactory.getAndClean('get', '/rootcheck/' + agent.id, { 'offset': 0, 'limit': 5 }) + .then(function (data) { + $scope.agentFetchInfo[agent.id].rootcheckEvents = data.data.items; + }, printError); + }; + $scope.restart = function (agent) { alertify.delay(5000).closeLogOnClick(true).log('Restarting agent...'); DataFactory.getAndClean('put', '/agents/'+agent.id+'/restart', {}) diff --git a/public/templates/agents-metrics.html b/public/templates/agents-metrics.html index 850bab5e0..b8f63242e 100644 --- a/public/templates/agents-metrics.html +++ b/public/templates/agents-metrics.html @@ -1,4 +1,4 @@ -
+