Discovery of storage not working on one device

[email protected]:/opt/librenms$ sudo ./validate.php 
Component | Version
--------- | -------
LibreNMS  | 1.33-234-g712201e
DB Schema | 223
PHP       | 7.0.22-0ubuntu0.16.04.1
MySQL     | 10.0.31-MariaDB-0ubuntu0.16.04.2
RRDTool   | 1.5.5
SNMP      | NET-SNMP 5.7.3

[OK]    Database connection successful
[OK]    Database schema correct

Hi, I have one server where LibreNMS is not seeing any of the storage devices. The server is a BSD based FreeNAS server. I have a few other FreeNAS servers that have the storage devices appearing fine so it isn’t a general issue.

The only thing that may be somewhat unusual about this server is the number of disks (18) and the storage controller (LSI 3108).

I tried running ./discovery.php and it looks like the snmpwalks are timing out:

However, when I run the snmpwalk manually, it seems to work fine:

and I see all of my disks. Running discovery against other FreeNAS servers, I get the expected results.

What can I try to do to resolve this? Thanks. – Bud

can you run ./discovery.php -h HOSTNAME -d -m storage

You’ve answered your own question :slight_smile: Because the snmp walk is timing out we don’t get the data we need, try increasing the snmp timeout for the device.

1 Like

try increasing the snmp timeout for the device

@laf, Thanks. I poked around a bit and found (from

$config['snmp']['timeout'] = 1; # timeout in seconds

Is that what you mean or is there another place to change the timeout. Also, any advice on a reasonable value for this? Thanks! – Bud

@laf, Never mind, I found it under Device -> Edit -> SNMP. At first I didn’t notice it due to the labels being in the text boxes and it just saying “seconds”. Fixed the issue. It may fix an issue I have with another device too where sometimes I am getting partial info during a discovery. Thanks! – Bud

For recommendations that’s difficult to say, just try slowly increasing it until you don’t see the issue. Setting it to like 10 seconds means poller will hang for that amount of time, find if it’s the snmp check we do to make sure the device is up but if it passes that one then we could hang the poller for a while…