fallback to snmpgetnext if db is unavailable (#7698)

running tests without DBTEST=1 for example.
This commit is contained in:
Tony Murray
2017-11-10 06:52:31 -06:00
committed by Neil Lathwood
parent 925a713a1c
commit 301af24ace

View File

@@ -293,7 +293,7 @@ function snmp_getnext($device, $oid, $options = null, $mib = null, $mibdir = nul
{ {
$time_start = microtime(true); $time_start = microtime(true);
$snmpcmd = Config::get('snmpgetnext'); $snmpcmd = Config::get('snmpgetnext', 'snmpgetnext');
$cmd = gen_snmp_cmd($snmpcmd, $device, $oid, $options, $mib, $mibdir); $cmd = gen_snmp_cmd($snmpcmd, $device, $oid, $options, $mib, $mibdir);
$data = trim(external_exec($cmd), "\" \n\r"); $data = trim(external_exec($cmd), "\" \n\r");