mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
refactor: Don't do unneeded snmp queries (#7841)
* Don't do uneeded snmp queries sensors discovery 26 -> 16 wrapped some poller modules in db checks. The same could be done for some others, but more work is needed. * travis fix
This commit is contained in:
committed by
Neil Lathwood
parent
5405498ed6
commit
b9dc7773d7
@@ -6,7 +6,7 @@ if ($device['os_group'] == 'cisco') {
|
||||
$oids = array();
|
||||
echo 'Caching OIDs:';
|
||||
|
||||
if (!is_array($entity_array)) {
|
||||
if (empty($entity_array)) {
|
||||
$tmp_oids = array('entPhysicalDescr', 'entPhysicalName', 'entPhysicalClass', 'entPhysicalContainedIn', 'entPhysicalParentRelPos');
|
||||
$entity_array = array();
|
||||
foreach ($tmp_oids as $tmp_oid) {
|
||||
|
Reference in New Issue
Block a user