2007-11-19 Sancho Lerena <slerena@gmail.com>

* pandora_network: Fixed problem with default retries of SNMP library. Now is 0



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@677 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
slerena 2007-11-19 19:43:34 +00:00
parent 7afeecf3a6
commit 503e2694d6
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2007-11-19 Sancho Lerena <slerena@gmail.com>
* pandora_network: Fixed problem with default retries of SNMP library. Now is 0
2007-10-09 Sancho Lerena <slerena@gmail.com> 2007-10-09 Sancho Lerena <slerena@gmail.com>
* pandora_snmpconfole: Fixed parameter for snmptrapd call (%a instead %B). This * pandora_snmpconfole: Fixed parameter for snmptrapd call (%a instead %B). This

View File

@ -411,9 +411,10 @@ sub pandora_query_snmp (%$$$$) {
my $snmp_timeout = 1000 * 1000 * $pa_config->{"networktimeout"}; my $snmp_timeout = 1000 * 1000 * $pa_config->{"networktimeout"};
my $SESSION = new SNMP::Session (DestHost => $snmp_target, my $SESSION = new SNMP::Session (DestHost => $snmp_target,
Timeout => $snmp_timeout, Timeout => $snmp_timeout,
Retries => 0,
Community => $snmp_community, Community => $snmp_community,
Version => 1); Version => 1);
if ((!defined($SESSION))&& ($snmp_community != "") && ($snmp_oid != "")) { if ( (!defined($SESSION)) && ($snmp_target != "") && ($snmp_community != "") && ($snmp_oid != "")) {
logger($pa_config, "SNMP ERROR SESSION for Target $snmp_target ", 4); logger($pa_config, "SNMP ERROR SESSION for Target $snmp_target ", 4);
$_[4] = "1"; $_[4] = "1";
} else { } else {