2012-04-03 Ramon Novoa <rnovoa@artica.es>

* lib/PandoraFMS/NetworkServer.pm: Fixed the return value of
	  pandora_query_snmp when an OID cannot be translated.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5880 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Ramon Novoa 2012-04-03 12:06:25 +00:00
parent b8fd0e493b
commit 355862b78a
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2012-04-03 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/NetworkServer.pm: Fixed the return value of
pandora_query_snmp when an OID cannot be translated.
2012-03-24 Junichi Satoh <junichi@rworks.jp>
* lib/PandoraFMS/Core.pm: Fixed pandora_server process down with

View File

@ -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"};