Hard Drive Monitoring - Monitored Server Output

Howdy,

Thanks for taking the time to look into this. If anyone can help me out then that’d be appreciated.

For simplicity reasons, I’ll label the two servers as the following:

Server A - Server with LibreNMS installed (Ubuntu 18.04)
Server B - Server being monitored through SNMP (Ubuntu 18.04)

I followed the steps outlined in https://docs.librenms.org/#Extensions/Applications/#smart to start monitoring the SMART values of my hard drives.

On Server B’s snmpd.conf I added extend smart /etc/snmp/smart to the configuration file. When running ./smart, I get the following output:

sda,0,0,null,null,null,null,null,null,null,31,0,0,0,0,null,null,0,0,0,0,0,0,0,0
sdb,0,0,null,null,null,null,null,null,null,34,0,0,0,0,null,null,1,0,0,0,0,1,0,0
sdc,0,0,null,null,null,null,null,null,null,31,0,0,0,0,null,null,1,0,0,0,0,1,0,0
sdd,0,0,null,null,null,null,null,null,null,36,0,0,0,0,null,null,0,0,0,0,0,0,0,0

On Server A, I keep getting graphs like this, even after 24 hours of monitoring:

I want to say my assumption is that the output of the SMART script contains nulls which is tripping up the graphs, but I’m not too sure to be honest. I haven’t looked too in-depth in the SMART script but that’s my next step.

My questions:

  1. What’s the best way to get around this and get LibreNMS to start monitoring my SMART data?
  2. Why is the graph being plotted with nan not only for the selected graphs/values there, but for all SMART app based plots?

Thank you.

Check to see if the data is coming through on the poller. run ./poller.php -h HOSTNAME -d

Hi Kevin,

Thanks for your response. From the look of it, I guess the SMART script that SNMP daemon reports is giving it the null values. I don’t get it then, since when I run it, the server itself returns more data/something different.

The segment of the poller debug output that contains SMART data is: https://paste.ee/p/ox0aE

On the monitored server itself (Server B), this is the output I get from executing the script.

root@serverB:/etc/snmp# ./smart
sda,0,0,null,null,null,null,null,null,null,30,0,0,0,0,null,null,0,0,0,0,0,0,0,0
sdb,0,0,null,null,null,null,null,null,null,33,0,0,0,0,null,null,1,0,0,0,0,1,0,0
sdc,0,0,null,null,null,null,null,null,null,30,0,0,0,0,null,null,1,0,0,0,0,1,0,0
sdd,0,0,null,null,null,null,null,null,null,35,0,0,0,0,null,null,0,0,0,0,0,0,0,0

The smart.config file has the following configuration:

useSN=0
cache=/var/cache/smart
smartctl=/usr/sbin/smartctl
sda
sdb
sdc
sdd

The SNMP daemon configuration are attached below:

rocommunity <communitystring> <ip>
syslocation Dallas, Texas, United States
syscontact [email protected]
extend .1.3.6.1.4.1.2021.7890.1 distro /usr/bin/distro
extend smart /etc/snmp/smart

Previously, I replaced the line:

extend smart /etc/snmp/smart

with:

extend smart /usr/bin/sudo /etc/snmp/smart

But the sudo warning was part of the output values and nothing else has changed (still the null values were returned).

I’m not sure exactly how I should proceed from this. If you guys have any suggestions or ways I can continue to debug this then any suggestions are appreciated.

Thanks.