Remove transactional_agent references
This commit is contained in:
parent
1ab646a725
commit
a59f29f557
|
@ -85,7 +85,6 @@ CREATE TABLE IF NOT EXISTS `tagente` (
|
|||
`update_alert_count` TINYINT NOT NULL DEFAULT 0,
|
||||
`update_secondary_groups` TINYINT NOT NULL DEFAULT 0,
|
||||
`alias` VARCHAR(600) NOT NULL DEFAULT '',
|
||||
`transactional_agent` TINYINT NOT NULL DEFAULT 0,
|
||||
`alias_as_name` TINYINT NOT NULL DEFAULT 0,
|
||||
`safe_mode_module` INT UNSIGNED NOT NULL DEFAULT 0,
|
||||
`cps` INT NOT NULL DEFAULT 0,
|
||||
|
@ -3431,7 +3430,6 @@ CREATE TABLE IF NOT EXISTS `tmetaconsole_agent` (
|
|||
`update_module_count` TINYINT NOT NULL DEFAULT 0,
|
||||
`update_alert_count` TINYINT NOT NULL DEFAULT 0,
|
||||
`update_secondary_groups` TINYINT NOT NULL DEFAULT 0,
|
||||
`transactional_agent` TINYINT NOT NULL DEFAULT 0,
|
||||
`alias` VARCHAR(600) NOT NULL DEFAULT '',
|
||||
`alias_as_name` TINYINT NOT NULL DEFAULT 0,
|
||||
`safe_mode_module` INT UNSIGNED NOT NULL DEFAULT 0,
|
||||
|
|
|
@ -257,7 +257,6 @@ our @EXPORT = qw(
|
|||
pandora_update_server
|
||||
pandora_update_table_from_hash
|
||||
pandora_update_template_module
|
||||
pandora_mark_transactional_agent
|
||||
pandora_group_statistics
|
||||
pandora_server_statistics
|
||||
pandora_self_monitoring
|
||||
|
@ -3280,25 +3279,6 @@ sub pandora_update_agent ($$$$$$$;$$$) {
|
|||
db_do ($dbh, "UPDATE tagente SET $set WHERE id_agente = ?", @{$values}, $agent_id);
|
||||
}
|
||||
|
||||
|
||||
##########################################################################
|
||||
=head2 C<< pandora_mark_transactional_agent (I<$id_agente>) >>
|
||||
|
||||
Set an agent as transactional agent
|
||||
|
||||
=cut
|
||||
##########################################################################
|
||||
sub pandora_mark_transactional_agent($$) {
|
||||
my ($dbh, $id_agente) = @_;
|
||||
|
||||
if ( (!(defined($id_agente))) || (!(defined($dbh))) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
db_do ($dbh, "UPDATE tagente SET transactional_agent=1 WHERE id_agente = ?", $id_agente);
|
||||
}
|
||||
|
||||
|
||||
##########################################################################
|
||||
=head2 C<< pandora_update_gis_data (I<$pa_config>, I<$dbh>, I<$agent_id>, I<$longitude>, I<$latitude>, I<$altitude>) >>
|
||||
|
||||
|
|
|
@ -759,13 +759,6 @@ sub process_module_data ($$$$$$$$$$) {
|
|||
# Name XML tag and column name don't match
|
||||
$module_conf->{'nombre'} = safe_input($module_name);
|
||||
|
||||
# Check if module is 'Transactional subsystem status'
|
||||
my $enable_transactional_subsystem = 0;
|
||||
if ($module_conf->{'name'} eq "Transactional subsystem status") {
|
||||
$enable_transactional_subsystem = 1;
|
||||
}
|
||||
delete $module_conf->{'name'};
|
||||
|
||||
# Calculate the module interval in seconds
|
||||
if (defined($module_conf->{'cron_interval'})) {
|
||||
$module_conf->{'module_interval'} = $module_conf->{'cron_interval'};
|
||||
|
@ -826,11 +819,6 @@ sub process_module_data ($$$$$$$$$$) {
|
|||
delete $module_conf->{'module_group'};
|
||||
}
|
||||
|
||||
if ($enable_transactional_subsystem == 1) {
|
||||
# Defines current agent as transactional agent
|
||||
pandora_mark_transactional_agent($dbh, $agent->{'id_agente'});
|
||||
}
|
||||
|
||||
$module_conf->{'id_modulo'} = 1;
|
||||
$module_conf->{'id_agente'} = $agent->{'id_agente'};
|
||||
|
||||
|
|
Loading…
Reference in New Issue