line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Armadito::Agent::Antivirus::Armadito::Task::Alerts; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
16531218
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
44
|
|
4
|
1
|
|
|
1
|
|
6
|
use warnings; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
59
|
|
5
|
1
|
|
|
1
|
|
4
|
use base 'Armadito::Agent::Task::Alerts'; |
|
1
|
|
|
|
|
36
|
|
|
1
|
|
|
|
|
421
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
sub run { |
8
|
0
|
|
|
0
|
1
|
|
my ( $self, %params ) = @_; |
9
|
|
|
|
|
|
|
|
10
|
0
|
|
|
|
|
|
$self = $self->SUPER::run(%params); |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
# TODO : Parse::Syslog or Win32::Eventlog |
13
|
|
|
|
|
|
|
|
14
|
0
|
|
|
|
|
|
return $self; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
1; |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
__END__ |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
=head1 NAME |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
Armadito::Agent::Antivirus::Armadito::Task::Alerts - Alerts Task for Armadito Antivirus. |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=head1 DESCRIPTION |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
This task inherits from L<Armadito::Agent::Task:Alerts>. Get Armadito Antivirus alerts and send them as json messages to armadito glpi plugin. |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=head1 FUNCTIONS |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head2 run ( $self, %params ) |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
Run the task. |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head2 new ( $self, %params ) |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
Instanciate Task. |
38
|
|
|
|
|
|
|
|