line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package FusionInventory::Agent::Task::Inventory::Generic::Processes; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
125611684
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
63
|
|
4
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
9
|
|
|
1
|
|
|
|
|
107
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
7
|
use English qw(-no_match_vars); |
|
1
|
|
|
|
|
73
|
|
|
1
|
|
|
|
|
24
|
|
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
1677
|
use FusionInventory::Agent::Tools; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
219
|
|
9
|
1
|
|
|
1
|
|
647
|
use FusionInventory::Agent::Tools::Unix; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
213
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub isEnabled { |
12
|
0
|
|
|
0
|
0
|
|
my (%params) = @_; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
return |
15
|
|
|
|
|
|
|
$OSNAME ne 'MSWin32' && |
16
|
|
|
|
|
|
|
!$params{no_category}->{process} && |
17
|
0
|
|
0
|
|
|
|
canRun('ps'); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub doInventory { |
21
|
0
|
|
|
0
|
0
|
|
my (%params) = @_; |
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
|
|
|
my $inventory = $params{inventory}; |
24
|
0
|
|
|
|
|
|
my $logger = $params{logger}; |
25
|
|
|
|
|
|
|
|
26
|
0
|
|
|
|
|
|
foreach my $process (getProcesses(logger => $logger)) { |
27
|
0
|
|
|
|
|
|
$inventory->addEntry( |
28
|
|
|
|
|
|
|
section => 'PROCESSES', |
29
|
|
|
|
|
|
|
entry => $process |
30
|
|
|
|
|
|
|
); |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |