mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Fulfill all variables FX from SNMPTRAP alerts
This commit is contained in:
parent
2f0cebe979
commit
c009451d62
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user