Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SMART app not parsing data #16007

Closed
gitterdoneplease opened this issue May 1, 2024 · 5 comments
Closed

SMART app not parsing data #16007

gitterdoneplease opened this issue May 1, 2024 · 5 comments

Comments

@gitterdoneplease
Copy link

The problem

I've added the SMART extend script per the instructions. The script runs and outputs data. snmpwalk runs and outputs SMART data. The GUI can run the SNMP or Poller tests and show SMART data, but the app just shows: "All Drives | drives: {"data":{"disks":{"PL1331LAGAYJKH":{"10":"0""

Output of ./validate.php

$ ./validate.php
===========================================
Component | Version
--------- | -------
LibreNMS  | 24.4.1-27-gfe2f8a6c8 (2024-05-01T12:15:27-07:00)
DB Schema | 2024_04_22_161711_custom_maps_add_group (292)
PHP       | 8.1.2-1ubuntu2.14
Python    | 3.10.12
Database  | MariaDB 10.6.12-MariaDB-0ubuntu0.22.04.1
RRDTool   | 1.7.2
SNMP      | 5.9.1
===========================================

[OK]    Composer Version: 2.7.4
[OK]    Dependencies up-to-date.
[OK]    Database connection successful
[OK]    Database Schema is current
[OK]    SQL Server meets minimum requirements
[OK]    lower_case_table_names is enabled
[OK]    MySQL engine is optimal
[OK]    Database and column collations are correct
[OK]    Database schema correct
[OK]    MySQL and PHP time match
[OK]    Active pollers found
[OK]    Dispatcher Service not detected
[OK]    Locks are functional
[OK]    Python poller wrapper is polling
[OK]    Redis is unavailable
[OK]    rrd_dir is writable
[OK]    rrdtool version ok

What was the last working version of LibreNMS?

No response

Anything in the logs that might be useful for us?

I don't see anything in the logs. My smart.conf:

# cat /etc/snmp/smart.config 
SN=1
smartctl=/sbin/smartctl
cache=/var/cache/smart
aacraid6 /dev/sda -d "aacraid,0,0,6"

Poller looks like:

Application: smart, app_id=19
SNMP['/usr/bin/snmpget' '-v3' '-l' 'authPriv' '-n' "" '-a' 'SHA' '-A' 'PASSWORD' '-u' 'USER' '-x' 'AES' '-X' 'PASSWORD' '-Oqv' '-m' 'NET-SNMP-EXTEND-MIB' '-M' '/opt/librenms/mibs' 'udp:HOSTNAME:161' 'nsExtendOutputFull.5.115.109.97.114.116']

{"data":{"disks":{"PL1331LAGAYJKH":{"10":"0","173":"null","177":"null","183":"null","184":"null","187":"null","188":"null","190":"null","194":"27","196":"0","197":"0","198":"0","199":"0","231":"null","232":"null","233":"null","5":"0","9":"81825","completed":0,"conveyance":0,"device_model":"HGST HMS5C4040ALE640","disk":"sda -d aacraid,0,0,6","exit":0,"extended":0,"fw_version":"MPAOA3W0","health_pass":1,"interrupted":0,"max_temp":"27","model_family":"HGST MegaScale 4000","offline":0,"read_failure":0,"selective":0,"selftest_log":null,"serial":"PL1331LAGAYJKH","short":0,"unknown_failure":0}},"exit_nonzero":0,"unhealthy":0,"useSN":1},"error":0,"errorString":"","version":1}
@VVelox
Copy link
Contributor

VVelox commented May 2, 2024

What does the extend return line in snmpd.conf look like? If it lacks the -Z switch for the extend, have you tried adding it?

@VVelox
Copy link
Contributor

VVelox commented May 2, 2024

Also likely want to make sure your version is newer than #15953 (comment) .

@gitterdoneplease
Copy link
Author

Removed the quotes " in the config file and it started working.

@VVelox
Copy link
Contributor

VVelox commented May 23, 2024

Removed the quotes " in the config file and it started working.

@gitterdoneplease Hmm, that is a bit unexpected. I'll look into that.

@gitterdoneplease
Copy link
Author

For instance this doesn't work:

SN=1
smartctl=/sbin/smartctl
cache=/var/cache/smart
aacraid0,0 /dev/sda -d "aacraid,0,0,0"
aacraid0,1 /dev/sda -d "aacraid,0,0,1"
aacraid0,2 /dev/sda -d "aacraid,0,0,2"
aacraid0,3 /dev/sda -d "aacraid,0,0,3"
aacraid0,4 /dev/sda -d "aacraid,0,0,4"
aacraid0,5 /dev/sda -d "aacraid,0,0,5"
aacraid0,6 /dev/sda -d "aacraid,0,0,6"
aacraid0,7 /dev/sda -d "aacraid,0,0,7"
aacraid0,8 /dev/sda -d "aacraid,0,0,8"
aacraid0,9 /dev/sda -d "aacraid,0,0,9"

but this works:

SN=1
smartctl=/sbin/smartctl
cache=/var/cache/smart
aacraid0,0 /dev/sda -d aacraid,0,0,0
aacraid0,1 /dev/sda -d aacraid,0,0,1
aacraid0,2 /dev/sda -d aacraid,0,0,2
aacraid0,3 /dev/sda -d aacraid,0,0,3
aacraid0,4 /dev/sda -d aacraid,0,0,4
aacraid0,5 /dev/sda -d aacraid,0,0,5
aacraid0,6 /dev/sda -d aacraid,0,0,6
aacraid0,7 /dev/sda -d aacraid,0,0,7
aacraid0,8 /dev/sda -d aacraid,0,0,8
aacraid0,9 /dev/sda -d aacraid,0,0,9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants