mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fallback to snmpgetnext if db is unavailable (#7698)
running tests without DBTEST=1 for example.
This commit is contained in:
committed by
Neil Lathwood
parent
925a713a1c
commit
301af24ace
@@ -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");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user