Merge remote-tracking branch 'origin/develop' into ent-5331-implementar-monitorizacion-de-ms-SQL-Server-en-discovery-como-el-de-oracle
Conflicts: pandora_console/include/constants.php pandora_server/lib/PandoraFMS/Recon/Base.pm
This commit is contained in:
commit
430facd704
|
@ -629,6 +629,16 @@ class DiscoveryTaskList extends HTML
|
|||
$data[6] .= __('Discovery.App.Oracle');
|
||||
break;
|
||||
|
||||
case DISCOVERY_APP_DB2:
|
||||
// Discovery Applications DB2.
|
||||
$data[6] = html_print_image(
|
||||
'images/network.png',
|
||||
true,
|
||||
['title' => __('Discovery Applications DB2')]
|
||||
).' ';
|
||||
$data[6] .= __('Discovery.App.DB2');
|
||||
break;
|
||||
|
||||
case DISCOVERY_DEPLOY_AGENTS:
|
||||
// Internal deployment task.
|
||||
$no_operations = true;
|
||||
|
@ -732,6 +742,8 @@ class DiscoveryTaskList extends HTML
|
|||
if ($task['disabled'] != 2 && $task['utimestamp'] > 0
|
||||
&& $task['type'] != DISCOVERY_APP_MYSQL
|
||||
&& $task['type'] != DISCOVERY_APP_ORACLE
|
||||
&& $task['type'] != DISCOVERY_APP_DB2
|
||||
&& $task['type'] != DISCOVERY_APP_SAP
|
||||
&& $task['type'] != DISCOVERY_CLOUD_AWS_RDS
|
||||
) {
|
||||
if (check_acl($config['id_user'], 0, 'MR')) {
|
||||
|
@ -892,6 +904,9 @@ class DiscoveryTaskList extends HTML
|
|||
case DISCOVERY_APP_ORACLE:
|
||||
return 'wiz=app&mode=oracle&page=0';
|
||||
|
||||
case DISCOVERY_APP_DB2:
|
||||
return 'wiz=app&mode=DB2&page=0';
|
||||
|
||||
case DISCOVERY_CLOUD_AWS:
|
||||
case DISCOVERY_CLOUD_AWS_EC2:
|
||||
return 'wiz=cloud&mode=amazonws&ki='.$task['auth_strings'].'&page=1';
|
||||
|
|
|
@ -601,6 +601,7 @@ define('DISCOVERY_CLOUD_AWS_RDS', 7);
|
|||
define('DISCOVERY_CLOUD_AZURE_COMPUTE', 8);
|
||||
define('DISCOVERY_DEPLOY_AGENTS', 9);
|
||||
define('DISCOVERY_APP_SAP', 10);
|
||||
define('DISCOVERY_APP_DB2', 11);
|
||||
define('DISCOVERY_APP_MICROSOFT_SQL_SERVER', 12);
|
||||
|
||||
|
||||
|
|
|
@ -40,6 +40,7 @@ use constant {
|
|||
DISCOVERY_CLOUD_AZURE_COMPUTE => 8,
|
||||
DISCOVERY_DEPLOY_AGENTS => 9,
|
||||
DISCOVERY_APP_SAP => 10,
|
||||
DISCOVERY_APP_DB2 => 11,
|
||||
DISCOVERY_APP_MICROSOFT_SQL_SERVER => 12,
|
||||
DISCOVERY_REVIEW => 0,
|
||||
DISCOVERY_STANDARD => 1,
|
||||
|
@ -1662,6 +1663,9 @@ sub database_scan($$$) {
|
|||
# Skip database scan in Oracle tasks
|
||||
next if defined($self->{'type'}) && $self->{'type'} == DISCOVERY_APP_ORACLE;
|
||||
|
||||
# Skip database scan in DB2 tasks
|
||||
next if defined($self->{'type'}) && $self->{'type'} == DISCOVERY_APP_DB2;
|
||||
|
||||
my $__data = $obj->scan_databases();
|
||||
|
||||
if (ref($__data) eq "ARRAY") {
|
||||
|
@ -1706,6 +1710,8 @@ sub app_scan($) {
|
|||
$type = 'MySQL';
|
||||
} elsif ($self->{'task_data'}->{'type'} == DISCOVERY_APP_ORACLE) {
|
||||
$type = 'Oracle';
|
||||
} elsif ($self->{'task_data'}->{'type'} == DISCOVERY_APP_DB2) {
|
||||
$type = 'DB2';
|
||||
} elsif ($self->{'task_data'}->{'type'} == DISCOVERY_APP_MICROSOFT_SQL_SERVER) {
|
||||
$type = 'MSSQL';
|
||||
} elsif ($self->{'task_data'}->{'type'} == DISCOVERY_APP_SAP) {
|
||||
|
@ -1790,8 +1796,10 @@ sub app_scan($) {
|
|||
|
||||
# Scan connected obj.
|
||||
if ( $self->{'task_data'}->{'type'} == DISCOVERY_APP_MYSQL
|
||||
|| $self->{'task_data'}->{'type'} == DISCOVERY_APP_ORACLE
|
||||
|| $self->{'task_data'}->{'type'} == DISCOVERY_APP_DB2
|
||||
|| $self->{'task_data'}->{'type'} == DISCOVERY_APP_MICROSOFT_SQL_SERVER)
|
||||
|| $self->{'task_data'}->{'type'} == DISCOVERY_APP_ORACLE) {
|
||||
) {
|
||||
|
||||
# Database.
|
||||
$results = $self->database_scan($type, $obj, $global_percent, \@targets);
|
||||
|
@ -1898,6 +1906,7 @@ sub scan($) {
|
|||
if (defined($self->{'task_data'})) {
|
||||
if ( $self->{'task_data'}->{'type'} == DISCOVERY_APP_MYSQL
|
||||
|| $self->{'task_data'}->{'type'} == DISCOVERY_APP_ORACLE
|
||||
|| $self->{'task_data'}->{'type'} == DISCOVERY_APP_DB2
|
||||
|| $self->{'task_data'}->{'type'} == DISCOVERY_APP_MICROSOFT_SQL_SERVER
|
||||
|| $self->{'task_data'}->{'type'} == DISCOVERY_APP_SAP) {
|
||||
# Application scan.
|
||||
|
|
Loading…
Reference in New Issue