Skip to content

Commit 234aa9f

Browse files
committed
Fix another ::oid
1 parent 4e9c1f0 commit 234aa9f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

includes/discovery/storage/hrstorage.inc.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
use Illuminate\Support\Str;
44
use LibreNMS\Config;
55

6-
$hrstorage_array = SnmpQuery::hideMib()->walk("HOST-RESOURCES-MIB:HOST-RESOURCES-TYPES::oid")->table(1);
6+
$hrstorage_array = SnmpQuery::hideMib()
7+
->mibs(['HOST-RESOURCES-MIB', 'HOST-RESOURCES-TYPES'])
8+
->walk('HOST-RESOURCES-MIB::hrStorageTable')->table(1);
79

8-
if (is_array($hrstorage_array)) {
10+
if (! empty($hrstorage_array)) {
911
echo 'hrStorage : ';
1012

1113
$bad_fs_types = [

0 commit comments

Comments
 (0)