2006-04-21 Sancho Lerena <slerena@gmail.com>

* pandora_db.pm: Now uses disabled field from tgroup, and if is disabled
	  dont fire alers (new feature to temporaly disable alerts in programmed
	  service blackouts).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@440 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2007-04-22 01:04:48 +00:00
parent c72447ba9a
commit a958e1d0a0
1 changed files with 6 additions and 0 deletions

View File

@ -95,6 +95,12 @@ sub pandora_calcula_alerta (%$$$$$$) {
# Get IDs from data packet
$id_agente = dame_agente_id($pa_config, $nombre_agente, $dbh);
my $id_group = dame_grupo_agente ($pa_config, $id_agente, $dbh);
# If this group is disabled (not in production, alert will not be checked)
if (give_group_disabled ($pa_config, $id_group, $dbh) == 1){
return;
}
$id_modulo = dame_modulo_id($pa_config, $tipo_modulo, $dbh);
$id_agente_modulo = dame_agente_modulo_id ($pa_config, $id_agente, $id_modulo, $nombre_modulo, $dbh);
logger($pa_config, "DEBUG: calcula_alerta() Calculado id_agente_modulo a $id_agente_modulo", 6);