mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
2013-04-18 Miguel de Dios <miguel.dedios@artica.es>
* lib/PandoraFMS/Core.pm: cleaned source code style. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8011 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
9a278d6088
commit
5fef09e515
@ -1,3 +1,7 @@
|
|||||||
|
2013-04-18 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
|
* lib/PandoraFMS/Core.pm: cleaned source code style.
|
||||||
|
|
||||||
2013-04-17 Ramon Novoa <rnovoa@artica.es>
|
2013-04-17 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
* lib/PandoraFMS/DataServer.pm: Update the module interval. Fixes bug
|
* lib/PandoraFMS/DataServer.pm: Update the module interval. Fixes bug
|
||||||
|
@ -2271,7 +2271,8 @@ sub pandora_create_module_from_network_component ($$$$) {
|
|||||||
sub pandora_create_module_from_hash ($$$) {
|
sub pandora_create_module_from_hash ($$$) {
|
||||||
my ($pa_config, $parameters, $dbh) = @_;
|
my ($pa_config, $parameters, $dbh) = @_;
|
||||||
|
|
||||||
logger($pa_config, "Creating module '$parameters->{'nombre'}' for agent ID $parameters->{'id_agente'}.", 10);
|
logger($pa_config,
|
||||||
|
"Creating module '$parameters->{'nombre'}' for agent ID $parameters->{'id_agente'}.", 10);
|
||||||
|
|
||||||
# Delete tags that will not be stored in tagente_modulo
|
# Delete tags that will not be stored in tagente_modulo
|
||||||
delete $parameters->{'data'};
|
delete $parameters->{'data'};
|
||||||
@ -2279,7 +2280,8 @@ sub pandora_create_module_from_hash ($$$) {
|
|||||||
delete $parameters->{'datalist'};
|
delete $parameters->{'datalist'};
|
||||||
delete $parameters->{'status'};
|
delete $parameters->{'status'};
|
||||||
|
|
||||||
my $module_id = db_process_insert($dbh, 'id_agente_modulo', 'tagente_modulo', $parameters);
|
my $module_id = db_process_insert($dbh, 'id_agente_modulo',
|
||||||
|
'tagente_modulo', $parameters);
|
||||||
|
|
||||||
my $status = 4;
|
my $status = 4;
|
||||||
if (defined ($parameters->{'id_tipo_modulo'}) && ($parameters->{'id_tipo_modulo'} == 21 || $parameters->{'id_tipo_modulo'} == 22 || $parameters->{'id_tipo_modulo'} == 23)) {
|
if (defined ($parameters->{'id_tipo_modulo'}) && ($parameters->{'id_tipo_modulo'} == 21 || $parameters->{'id_tipo_modulo'} == 22 || $parameters->{'id_tipo_modulo'} == 23)) {
|
||||||
@ -2436,7 +2438,7 @@ sub pandora_create_agent ($$$$$$$$$$;$$$$$$$) {
|
|||||||
##########################################################################
|
##########################################################################
|
||||||
sub pandora_add_agent_address ($$$$$) {
|
sub pandora_add_agent_address ($$$$$) {
|
||||||
my ($pa_config, $agent_id, $agent_name, $addr, $dbh) = @_;
|
my ($pa_config, $agent_id, $agent_name, $addr, $dbh) = @_;
|
||||||
|
|
||||||
# Add the new address if it does not exist
|
# Add the new address if it does not exist
|
||||||
my $addr_id = get_addr_id ($dbh, $addr);
|
my $addr_id = get_addr_id ($dbh, $addr);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user