Merge branch '2749-6381-plugin-para-monitorizacion-de-servicios-y-watchdog-bajo-demanda' into 'develop'

PluginTools Added global alerts to parse_arguments

See merge request artica/pandorafms!1832
This commit is contained in:
vgilc 2018-10-04 17:35:43 +02:00
commit 5abee8a5a9
1 changed files with 4 additions and 0 deletions

View File

@ -1164,6 +1164,10 @@ sub parse_arguments {
my $key = trim($args[$i]);
$key =~ s/^-//;
if ($key =~ /^\s*global_alerts/){
push (@{$data{global_alerts}}, trim($args[$i+1]));
next;
}
$data{$key} = trim($args[$i+1]);
}