mirror of
https://github.com/valitydev/wazuh-kibana-app.git
synced 2024-11-06 09:55:18 +00:00
Added the status of the process in a more human readable format
This commit is contained in:
parent
0b20e95d2d
commit
f5b51eb021
@ -16,6 +16,7 @@ import DataFactory from '../../services/data-factory';
|
||||
import KeyEquivalenece from '../../../util/csv-key-equivalence';
|
||||
import CheckRows from './wz-table-rows';
|
||||
import { FilterHandler } from '../../utils/filter-handler';
|
||||
import ProcessEquivalence from '../../../util/process-state-equivalence';
|
||||
const app = uiModules.get('app/wazuh', []);
|
||||
|
||||
app
|
||||
@ -393,6 +394,9 @@ app
|
||||
});
|
||||
|
||||
$scope.nonDecoderValue = (key, item) => {
|
||||
if(key === 'state' && instance.path.includes('processes')){
|
||||
return ProcessEquivalence[item.state] || 'Unknown'
|
||||
}
|
||||
return key.value === 'local.ip'
|
||||
? (item.local && item.local.ip
|
||||
? `${item.local.ip}:${item.local.port}`
|
||||
|
22
util/process-state-equivalence.js
Normal file
22
util/process-state-equivalence.js
Normal file
@ -0,0 +1,22 @@
|
||||
/*
|
||||
* Wazuh app - Wazuh syscollector process state equivalence
|
||||
* Copyright (C) 2018 Wazuh, Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* Find more information about this on the LICENSE file.
|
||||
*/
|
||||
export default {
|
||||
R: 'running',
|
||||
S: 'sleeping',
|
||||
D: 'disk sleep',
|
||||
T: 'stopped',
|
||||
t: 'tracing stop',
|
||||
X: 'dead',
|
||||
Z: 'zombie',
|
||||
P: 'parked',
|
||||
I: 'idle'
|
||||
}
|
Loading…
Reference in New Issue
Block a user