diff --git a/pandora_console/godmode/snmpconsole/snmp_alert.php b/pandora_console/godmode/snmpconsole/snmp_alert.php
index 870597bee5..b223d8dafe 100755
--- a/pandora_console/godmode/snmpconsole/snmp_alert.php
+++ b/pandora_console/godmode/snmpconsole/snmp_alert.php
@@ -634,7 +634,7 @@ if ($create_alert || $update_alert) {
// OID
echo '
' .
- '' . __('Enterprise String') . ' | ' .
+ '' . __('Enterprise String') . ui_print_help_tip (__('Matches substrings. End the string with $ for exact matches.'), true) . ' | ' .
'';
html_print_input_text ("oid", $oid, '', 50, 255);
echo ' |
';
diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm
index c986eb0510..f4485e789b 100644
--- a/pandora_server/lib/PandoraFMS/Core.pm
+++ b/pandora_server/lib/PandoraFMS/Core.pm
@@ -3400,7 +3400,16 @@ sub pandora_evaluate_snmp_alerts ($$$$$$$$$) {
$alert->{'oid'} = decode_entities($alert->{'oid'});
my $oid = $alert->{'oid'};
if ($oid ne '') {
- next if (index ($trap_oid, $oid) == -1 && index ($trap_oid_text, $oid) == -1);
+ my $term = substr($oid, -1);
+ # Strict match.
+ if ($term eq '$') {
+ chop($oid);
+ next if ($trap_oid ne $oid && $trap_oid_text ne $oid);
+ }
+ # Partial match.
+ else {
+ next if (index ($trap_oid, $oid) == -1 && index ($trap_oid_text, $oid) == -1);
+ }
$alert_data .= "OID: $oid ";
}