Skip to content

Commit

Permalink
Version 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
spjmurray committed Dec 21, 2015
0 parents commit 2bc21c9
Show file tree
Hide file tree
Showing 4 changed files with 622 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
check_scsi_smart
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
CC=gcc
CFLAGS=-O2 -Wall
EXE=check_scsi_smart
SOURCE=check_scsi_smart.c

all: $(EXE)

$(EXE): $(SOURCE)
$(CC) $(CFLAGS) -o $@ $<
36 changes: 36 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#Nagios SMART Drive Checker

##Description

Uses SCSI commands to tunnel SMART checks to ATA hard drives. Unlike the
venerable check\_ide\_smart check this will work on all modern devices
even those behind SAS HBAs or expanders.

##Prerequisites

* gcc
* gmake

##Building

make

##Usage

$ sudo ./check_scsi_smart -d /dev/sda
ID Name Value Worst Thresh Type Updated Raw Status
5 Reallocated Sectors Count 100 100 010 Pre-fail Always 0 OK
9 Power-On Hours 099 099 000 Advisory Always 1358 OK
12 Power Cycle Count 099 099 000 Advisory Always 139 OK
177 Wear Range Delta 099 099 000 Pre-fail Always 3 OK
179 Used Reserved Block Count Total 100 100 010 Pre-fail Always 0 OK
181 Program Fail Count Total 100 100 010 Advisory Always 0 OK
182 Erase Fail Count 100 100 010 Advisory Always 0 OK
183 SATA Downshift Error Count 100 100 010 Pre-fail Always 0 OK
187 Reported Uncorrectable Errors 100 100 000 Advisory Always 0 OK
190 Airflow Temperature 066 059 000 Advisory Always 34 OK
195 Hardware ECC Recovered 200 200 000 Advisory Always 0 OK
199 UltraDMA CRC Error Count 099 099 000 Advisory Always 315 OK
235 Good Block Count 099 099 000 Advisory Always 75 OK
241 Total LBAs Written 099 099 000 Advisory Always 539465178 OK

Loading

0 comments on commit 2bc21c9

Please sign in to comment.