Fulfill all variables FX from SNMPTRAP alerts

This commit is contained in:
fbsanchez 2021-06-15 13:05:49 +02:00
parent 2f0cebe979
commit c009451d62
1 changed files with 1 additions and 3 deletions

View File

@ -3961,9 +3961,7 @@ sub pandora_evaluate_snmp_alerts ($$$$$$$$$) {
for ($count = 1; defined ($custom_values[$count-1]); $count++) {
my $macro_name = '_snmp_f' . $count . '_';
my $order_field = $alert->{'order_'.$count};
#~ my $order_field = $order_field - 1;
if ($custom_values[($order_field-1)] =~ m/= \S+: (.*)/) {
if ($custom_values[$count] =~ m/= \S+: (.*)/) {
my $value = $1;
# Strip leading and trailing double quotes