librenms / librenms-agent

LibreNMS Agent & Scripts
GNU General Public License v2.0
118 stars 188 forks source link

smart script doesn't handle nvme drives #253

Closed gsoneill closed 4 years ago

gsoneill commented 5 years ago

I have a server with a single NVMe drive and no other SATA or SAS drives. The smart -g option to generate a config does not seem to account for NVMe devices at all. Manually editing smart.config to set device type of NVMe also results in the script outputting no data.

$ cat smart.config
useSN=0
smartctl=/usr/sbin/smartctl
cache=/var/cache/smart
# # scan_smart_devices: glob(3) aborted matching pattern /dev/discs/disc*
nvme0n1 /dev/nvme0n1 -d nvme