Bug 913085
Summary: | check_ide_smart issues errors when value equals threshold | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora EPEL | Reporter: | Andrew Meredith <andrew> | ||||||
Component: | nagios-plugins | Assignee: | Peter Lemenkov <lemenkov> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | el6 | CC: | jose.p.oliveira.oss, lemenkov, ondrejj, redhat, waja | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | nagios-plugins-1.4.16-10.fc20 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2013-10-27 03:57:14 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Description
Andrew Meredith
2013-02-20 10:43:08 UTC
Using a "OCZ-VERTEX3 MI" 120G SSD the following results are found # ./check_ide_smart -d /dev/sda Id= 1, Status=15 {PreFailure , OnLine }, Value=110, Threshold= 50, Passed Id= 5, Status=51 {PreFailure , OnLine }, Value=100, Threshold= 3, Passed Id= 9, Status=50 {Advisory , OnLine }, Value=100, Threshold= 0, Passed Id= 12, Status=50 {Advisory , OnLine }, Value=100, Threshold= 0, Passed Id=171, Status=50 {Advisory , OnLine }, Value= 0, Threshold= 0, Failed Id=172, Status=50 {Advisory , OnLine }, Value= 0, Threshold= 0, Failed Id=174, Status=48 {Advisory , OffLine}, Value= 0, Threshold= 0, Failed Id=177, Status= 0 {Advisory , OffLine}, Value= 0, Threshold= 0, Failed Id=181, Status=50 {Advisory , OnLine }, Value= 0, Threshold= 0, Failed Id=182, Status=50 {Advisory , OnLine }, Value= 0, Threshold= 0, Failed Id=187, Status=50 {Advisory , OnLine }, Value=100, Threshold= 0, Passed Id=194, Status=34 {Advisory , OnLine }, Value= 30, Threshold= 0, Passed Id=195, Status=28 {Advisory , OffLine}, Value=120, Threshold= 0, Passed Id=196, Status=51 {PreFailure , OnLine }, Value=100, Threshold= 3, Passed Id=201, Status=28 {Advisory , OffLine}, Value=120, Threshold= 0, Passed Id=204, Status=28 {Advisory , OffLine}, Value=120, Threshold= 0, Passed Id=230, Status=19 {PreFailure , OnLine }, Value=100, Threshold= 0, Passed Id=231, Status=19 {PreFailure , OnLine }, Value=100, Threshold= 10, Passed Id=233, Status= 0 {Advisory , OffLine}, Value= 0, Threshold= 0, Failed Id=234, Status=50 {Advisory , OnLine }, Value= 0, Threshold= 0, Failed Id=241, Status=50 {Advisory , OnLine }, Value= 0, Threshold= 0, Failed Id=242, Status=50 {Advisory , OnLine }, Value= 0, Threshold= 0, Failed OffLineStatus=0 {NeverStarted}, AutoOffLine=No, OffLineTimeout=0 minutes OffLineCapability=123 {Immediate Auto SuspendOnCmd} SmartRevision=10, CheckSum=55, SmartCapability=3 {SaveOnStandBy AutoSave} Please note that the values that are "threshold = 0, value = 0" are not in error state. The following is the full output from smartctl for this device # smartctl --all /dev/sda smartctl 5.40 2010-10-16 r3189 [x86_64-redhat-linux-gnu] (local build) Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net === START OF INFORMATION SECTION === Device Model: OCZ-VERTEX3 MI Serial Number: OCZ-R23I341O9JCA9KX8 Firmware Version: 2.25 User Capacity: 120,034,123,776 bytes Device is: Not in smartctl database [for details use: -P showall] ATA Version is: 8 ATA Standard is: Not recognized. Minor revision code: 0x0110 Local Time is: Wed Feb 20 10:46:27 2013 GMT SMART support is: Available - device has SMART capability. SMART support is: Enabled === START OF READ SMART DATA SECTION === SMART overall-health self-assessment test result: PASSED General SMART Values: Offline data collection status: (0x00) Offline data collection activity was never started. Auto Offline Data Collection: Disabled. Self-test execution status: ( 0) The previous self-test routine completed without error or no self-test has ever been run. Total time to complete Offline data collection: ( 0) seconds. Offline data collection capabilities: (0x7b) SMART execute Offline immediate. Auto Offline data collection on/off support. Suspend Offline collection upon new command. Offline surface scan supported. Self-test supported. Conveyance Self-test supported. Selective Self-test supported. SMART capabilities: (0x0003) Saves SMART data before entering power-saving mode. Supports SMART auto save timer. Error logging capability: (0x01) Error logging supported. General Purpose Logging supported. Short self-test routine recommended polling time: ( 1) minutes. Extended self-test routine recommended polling time: ( 48) minutes. Conveyance self-test routine recommended polling time: ( 2) minutes. SCT capabilities: (0x0021) SCT Status supported. SCT Data Table supported. SMART Attributes Data Structure revision number: 10 Vendor Specific SMART Attributes with Thresholds: ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 1 Raw_Read_Error_Rate 0x000f 110 110 050 Pre-fail Always - 28604058 5 Reallocated_Sector_Ct 0x0033 100 100 003 Pre-fail Always - 0 9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 281174328999947 12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 27 171 Unknown_Attribute 0x0032 000 000 000 Old_age Always - 0 172 Unknown_Attribute 0x0032 000 000 000 Old_age Always - 0 174 Unknown_Attribute 0x0030 000 000 000 Old_age Offline - 26 177 Wear_Leveling_Count 0x0000 000 000 000 Old_age Offline - 0 181 Program_Fail_Cnt_Total 0x0032 000 000 000 Old_age Always - 0 182 Erase_Fail_Count_Total 0x0032 000 000 000 Old_age Always - 0 187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0 194 Temperature_Celsius 0x0022 030 030 000 Old_age Always - 30 (Min/Max 30/30) 195 Hardware_ECC_Recovered 0x001c 120 120 000 Old_age Offline - 28604058 196 Reallocated_Event_Count 0x0033 100 100 003 Pre-fail Always - 0 201 Soft_Read_Error_Rate 0x001c 120 120 000 Old_age Offline - 28604058 204 Soft_ECC_Correction 0x001c 120 120 000 Old_age Offline - 28604058 230 Head_Amplitude 0x0013 100 100 000 Pre-fail Always - 100 231 Temperature_Celsius 0x0013 100 100 010 Pre-fail Always - 0 233 Media_Wearout_Indicator 0x0000 000 000 000 Old_age Offline - 367 234 Unknown_Attribute 0x0032 000 000 000 Old_age Always - 372 241 Total_LBAs_Written 0x0032 000 000 000 Old_age Always - 372 242 Total_LBAs_Read 0x0032 000 000 000 Old_age Always - 242 SMART Error Log Version: 0 No Errors Logged SMART Self-test log structure revision number 0 Warning: ATA Specification requires self-test log structure revision number = 1 No self-tests have been logged. [To run self-tests, use: smartctl -t] SMART Selective self-test log data structure revision number 1 SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS 1 0 0 Not_testing 2 0 0 Not_testing 3 0 0 Not_testing 4 0 0 Not_testing 5 0 0 Not_testing Selective self-test flags (0x0): After scanning selected spans, do NOT read-scan remainder of disk. If Selective self-test is pending on power-up, resume after 0 minute delay. Created attachment 747479 [details]
Patch to import fix for SSD warnings on zero levels, from source forge patch
- Import fix for SSD warnings on zero levels, from source forge patch:
- check_ide_smart: fix smart attribute comparison - ID: 3428117"
(nagios-plugins-0009-check_ide_smart-fix-threshold.patch).
Created attachment 747480 [details]
Sourceforge patch "check_ide_smart: fix smart attribute comparison - ID: 3428117"
Import fix for SSD warnings on zero levels, from source forge patch:
check_ide_smart: fix smart attribute comparison - ID: 3428117"
(nagios-plugins-0009-check_ide_smart-fix-threshold.patch).
Built and tested against Fedora 17 x86_64
The zero counts no longer trigger a warning.
nagios-plugins-1.4.16-10.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/nagios-plugins-1.4.16-10.fc19 nagios-plugins-1.4.16-10.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/nagios-plugins-1.4.16-10.fc20 nagios-plugins-1.4.16-10.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/nagios-plugins-1.4.16-10.el6 Package nagios-plugins-1.4.16-10.el6: * should fix your issue, * was pushed to the Fedora EPEL 6 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=epel-testing nagios-plugins-1.4.16-10.el6' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-EPEL-2013-11845/nagios-plugins-1.4.16-10.el6 then log in and leave karma (feedback). nagios-plugins-1.4.16-10.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report. nagios-plugins-1.4.16-10.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report. nagios-plugins-1.4.16-10.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report. nagios-plugins-1.4.16-10.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. |