From 080dec0e33268f86352e4bd1d301512fb3ed5229 Mon Sep 17 00:00:00 2001 From: ramonn Date: Wed, 21 Jan 2009 17:25:38 +0000 Subject: [PATCH] 2009-01-21 Ramon Novoa * lib/PandoraFMS/DB.pm: Changes in multicast change reports. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1386 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_server/ChangeLog | 4 ++++ pandora_server/lib/PandoraFMS/DB.pm | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index ae7652cb6d..ebcfbea5e3 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,7 @@ +2009-01-21 Ramon Novoa + + * lib/PandoraFMS/DB.pm: Changes in multicast change reports. + 2009-01-21 Evi Vanoost * lib/PandoraFMS/DB.pm: Fixes incremental modules diff --git a/pandora_server/lib/PandoraFMS/DB.pm b/pandora_server/lib/PandoraFMS/DB.pm index a21e27e1f4..73ef5f5175 100644 --- a/pandora_server/lib/PandoraFMS/DB.pm +++ b/pandora_server/lib/PandoraFMS/DB.pm @@ -761,22 +761,22 @@ sub pandora_writestate (%$$$$$$) { $event_type = "going_up_warning"; $status_name = "going up to WARNING"; $severity = 3; - enterprise_hook('pandora_mcast_change_report', [$pa_config, $id_agente_modulo, $timestamp, 'WARN', $dbh]); + enterprise_hook('mcast_change_report', [$pa_config, $module_data->{'nombre'}, $module_data->{'custom_id'}, $timestamp, 'WARN', $dbh]); } elsif (($data_status->{'last_status'} == 1) && ($data_status->{'estado'} == 2)){ $event_type = "going_down_warning"; $status_name = "going down to WARNING"; $severity = 3; - enterprise_hook('pandora_mcast_change_report', [$pa_config, $id_agente_modulo, $timestamp, 'WARN', $dbh]); + enterprise_hook('mcast_change_report', [$pa_config, $module_data->{'nombre'}, $module_data->{'custom_id'}, $timestamp, 'WARN', $dbh]); } elsif ($data_status->{'estado'} == 1){ $event_type = "going_up_critical"; $status_name = "going up to CRITICAL"; $severity = 4; - enterprise_hook('pandora_mcast_change_report', [$pa_config, $id_agente_modulo, $timestamp, 'ERR', $dbh]); + enterprise_hook('mcast_change_report', [$pa_config, $module_data->{'nombre'}, $module_data->{'custom_id'}, $timestamp, 'ERR', $dbh]); } elsif ($data_status->{'estado'} == 0){ $event_type = "going_down_normal"; $status_name = "going down to NORMAL"; $severity = 2; - enterprise_hook('pandora_mcast_change_report', [$pa_config, $id_agente_modulo, $timestamp, 'OK', $dbh]); + enterprise_hook('mcast_change_report', [$pa_config, $module_data->{'nombre'}, $module_data->{'custom_id'}, $timestamp, 'OK', $dbh]); } $data_status->{'status_changes'} = 0; $data_status->{'last_status'} = $data_status->{'estado'};