diff --git a/pandora_server/ChangeLog b/pandora_server/ChangeLog index ab12d591da..1f80461e48 100644 --- a/pandora_server/ChangeLog +++ b/pandora_server/ChangeLog @@ -1,3 +1,8 @@ +2012-04-03 Ramon Novoa + + * lib/PandoraFMS/NetworkServer.pm: Fixed the return value of + pandora_query_snmp when an OID cannot be translated. + 2012-03-24 Junichi Satoh * lib/PandoraFMS/Core.pm: Fixed pandora_server process down with diff --git a/pandora_server/lib/PandoraFMS/NetworkServer.pm b/pandora_server/lib/PandoraFMS/NetworkServer.pm index ea05db671e..d2c1aeccbc 100644 --- a/pandora_server/lib/PandoraFMS/NetworkServer.pm +++ b/pandora_server/lib/PandoraFMS/NetworkServer.pm @@ -315,7 +315,7 @@ sub pandora_query_snmp ($$$) { return (undef, 0) unless ($snmp_oid ne ''); if ($snmp_oid =~ m/[a-zA-Z]/) { $snmp_oid = translate_obj ($dbh, $snmp_oid, $module->{"id_agente_modulo"}); - return (undef, 0) unless ($snmp_oid ne ''); + return (undef, 1) unless ($snmp_oid ne ''); } my $snmp_timeout = $pa_config->{"snmp_timeout"};