Add module to graph hash
This commit is contained in:
parent
0c7de59b80
commit
50d4f5a999
|
@ -1231,7 +1231,7 @@ sub pandora_execute_action ($$$$$$$$$;$$) {
|
|||
$field19 = defined($alert->{'field19'}) && $alert->{'field19'} ne "" ? $alert->{'field19'} : $action->{'field19'};
|
||||
$field20 = defined($alert->{'field20'}) && $alert->{'field20'} ne "" ? $alert->{'field20'} : $action->{'field20'};
|
||||
}
|
||||
|
||||
|
||||
# Recovery fields, thanks to Kato Atsushi
|
||||
if ($alert_mode == RECOVERED_ALERT) {
|
||||
# Field 1 is a special case where [RECOVER] prefix is not added even when it is defined
|
||||
|
@ -1587,11 +1587,11 @@ sub pandora_execute_action ($$$$$$$$$;$$) {
|
|||
my $period = $hours * 3600; # Hours to seconds
|
||||
if($threshold == 0){
|
||||
$params->{"other"} = $period . '%7C1%7C0%7C225%7C%7C14';
|
||||
$cid = 'module_graph_' . $hours . 'h';
|
||||
$cid = 'module_graph_' . (defined($module) && $module ne '' ? ($module . '_') : '') . $hours . 'h';
|
||||
}
|
||||
else{
|
||||
$params->{"other"} = $period . '%7C1%7C1%7C225%7C%7C14';
|
||||
$cid = 'module_graphth_' . $hours . 'h';
|
||||
$cid = 'module_graphth_' . (defined($module) && $module ne '' ? ($module . '_') : '') . $hours . 'h';
|
||||
}
|
||||
|
||||
if (defined($module)) {
|
||||
|
@ -1689,7 +1689,7 @@ sub pandora_execute_action ($$$$$$$$$;$$) {
|
|||
. "Content-Location: " . $dataname . "\n\n"
|
||||
. $base64_data . "\n";
|
||||
}
|
||||
|
||||
|
||||
if ($pa_config->{"mail_in_separate"} != 0){
|
||||
foreach my $address (split (',', $field1)) {
|
||||
# Remove blanks
|
||||
|
|
Loading…
Reference in New Issue