-
Notifications
You must be signed in to change notification settings - Fork 188
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 agent reports only null and zero values for SAS drives #390
Comments
Same story with sas disks |
The smart script is parsing the smartctl output and use specific ID's and output that as you can see here https://github.com/librenms/librenms-agent/blob/master/snmp/smart#L442-L444 $toReturn=$toReturn.$disk_id.','.$IDs{'5'}.','.$IDs{'10'}.','.$IDs{'173'}.','.$IDs{'177'}.','.$IDs{'183'}.','.$IDs{'184'}.','.$IDs{'187'}.','.$IDs{'188'}
.','.$IDs{'190'} .','.$IDs{'194'}.','.$IDs{'196'}.','.$IDs{'197'}.','.$IDs{'198'}.','.$IDs{'199'}.','.$IDs{'231'}.','.$IDs{'233'}.','.
$completed.','.$interrupted.','.$read_failure.','.$unknown_failure.','.$extended.','.$short.','.$conveyance.','.$selective.','.$IDs{'9'}."\n"; So maybe you can do a For example one of my disks gives: smartctl -a /dev/sda
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0
9 Power_On_Hours 0x0032 080 080 000 Old_age Always - 98683
12 Power_Cycle_Count 0x0032 099 099 000 Old_age Always - 42
177 Wear_Leveling_Count 0x0013 095 095 000 Pre-fail Always - 53
179 Used_Rsvd_Blk_Cnt_Tot 0x0013 100 100 010 Pre-fail Always - 0
181 Program_Fail_Cnt_Total 0x0032 100 100 010 Old_age Always - 0
182 Erase_Fail_Count_Total 0x0032 100 100 010 Old_age Always - 0
183 Runtime_Bad_Block 0x0013 100 100 010 Pre-fail Always - 0
187 Uncorrectable_Error_Cnt 0x0032 100 100 000 Old_age Always - 0
190 Airflow_Temperature_Cel 0x0032 056 048 000 Old_age Always - 44
195 ECC_Error_Rate 0x001a 200 200 000 Old_age Always - 0
199 CRC_Error_Count 0x003e 100 100 000 Old_age Always - 0
235 POR_Recovery_Count 0x0012 099 099 000 Old_age Always - 27
241 Total_LBAs_Written 0x0032 099 099 000 Old_age Always - 30079114404 You can see that for example ID's |
I think the issue is with how the script is parsing the output of smartctl. Here is the output that smartctl gives agasinst my SAS drive. As you can see, it is very different from what you posted.
|
Smart script only prints 'null' and '0' values for my SAS drives. I get a few more values for my SATA SSD, but still a few null's:
sda is the SSD, sdb - sdi are SAS drives (HP MB3000FBUCN)
Config file:
The text was updated successfully, but these errors were encountered: