mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix snmp_bulk setting not being applied (#13209)
This commit is contained in:
@@ -129,7 +129,7 @@ function gen_snmpget_cmd($device, $oids, $options = null, $mib = null, $mibdir =
|
||||
*/
|
||||
function gen_snmpwalk_cmd($device, $oids, $options = null, $mib = null, $mibdir = null, $strIndexing = null)
|
||||
{
|
||||
if ($device['snmpver'] == 'v1' || (isset($device['os']) && Config::getOsSetting($device['os'], 'snmp_walk', true) == false)) {
|
||||
if ($device['snmpver'] == 'v1' || (isset($device['os']) && Config::getOsSetting($device['os'], 'snmp_bulk', true) == false)) {
|
||||
$snmpcmd = [Config::get('snmpwalk')];
|
||||
} else {
|
||||
$snmpcmd = [Config::get('snmpbulkwalk')];
|
||||
|
Reference in New Issue
Block a user