[Nagiosplug-devel] [ nagiosplug-Bugs-1408213 ] check_smart is ata-specific

SourceForge.net noreply at sourceforge.net
Tue Jan 17 05:55:04 CET 2006


Bugs item #1408213, was opened at 2006-01-17 13:54
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1408213&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Parsing problem
Group: snapshot rpm
Status: Open
Resolution: None
Priority: 5
Submitted By: adam (foobie)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_smart is ata-specific

Initial Comment:
Even though the plugin allows for a drive type of scsi, 
the output of smartctl is very different on a scsi 
drive and the plugin fails.

output:
# /usr/sbin/smartctl -A /dev/sda
smartctl version 5.32 Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

Current Drive Temperature:     27 C
Drive Trip Temperature:        65 C
Manufactured in week 25 of year 2004
Current start stop count:      15 times
Recommended maximum start stop count:  10000 times

# /usr/sbin/smartctl -H /dev/sda
smartctl version 5.32 Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

SMART Health Status: OK

# /usr/sbin/smartctl -a /dev/sda
smartctl version 5.32 Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

Device: FUJITSU  MAP3367NC        Version: 5608
Serial number: UQL7P0000GTL
Device type: disk
Transport protocol: Parallel SCSI (SPI-4)
Local Time is: Tue Jan 17 13:50:14 2006 GMT
Device supports SMART and is Enabled
Temperature Warning Enabled
SMART Health Status: OK

Current Drive Temperature:     27 C
Drive Trip Temperature:        65 C
Manufactured in week 25 of year 2004
Current start stop count:      15 times
Recommended maximum start stop count:  10000 times

Error counter log:
          Errors Corrected    Total      Total   
Correction     Gigabytes    Total
              delay:       [rereads/    errors   
algorithm      processed    uncorrected
            minor | major  rewrites]  corrected  
invocations   [10^9 bytes]  errors
read:          0        1         0         0          
0       4084.600           0
write:         0        3         0         0          
0        434.693           0
verify:        0        0         0         0          
0          0.000           0

Non-medium error count:       10

SMART Self-test log
Num  Test              Status                 segment  
LifeTime  LBA_first_err [SK ASC ASQ]
     Description                              number   
(hours)
# 1  Background long   Completed                   -    
 0                   - [-   -    -]
# 2  Background short  Completed                   -    
 0                   - [-   -    -]

Long (extended) Self Test duration: 681 seconds [11.3 
minutes]

The perl is discarding content before === START OF READ 
SMART DATA SECTION === and barfing:
# contrib/check_smart.pl -T scsi -d /dev/sda -t -v
type: 'scsi'
running sudo /usr/sbin/smartctl --device=scsi -H /dev/
sdasmartctl version 5.32 Copyright (C) 2002-4 Bruce 
Allen
Home page is http://smartmontools.sourceforge.net/

SMART Health Status: OK
Use of uninitialized value in print at contrib/
check_smart.pl line 110, <SMARTCTL> line 4.
Use of uninitialized value in pattern match (m//) at 
contrib/check_smart.pl line 111, <SMARTCTL> line 4.
Use of uninitialized value in pattern match (m//) at 
contrib/check_smart.pl line 112, <SMARTCTL> line 4.
Use of uninitialized value in pattern match (m//) at 
contrib/check_smart.pl line 112, <SMARTCTL> line 4.

However, this is ata-specific:
smartmontools-5.32]# grep "START OF" *
CHANGELOG:START OF SMARTMONTOOLS 5.1 series
ataprint.c:    pout("=== START OF INFORMATION SECTION 
===\n");
ataprint.c:  // START OF THE ENABLE/DISABLE SECTION OF 
THE CODE
ataprint.c:    pout("=== START OF ENABLE/DISABLE 
COMMANDS SECTION ===\n");
ataprint.c:  // START OF READ-ONLY OPTIONS APART FROM -
V and -i
ataprint.c:    pout("=== START OF READ SMART DATA 
SECTION ===\n");
ataprint.c:  // START OF THE TESTING SECTION OF THE 
CODE.  IF NO TESTING, RETURN
ataprint.c:  pout("=== START OF OFFLINE IMMEDIATE AND 
SELF-TEST SECTION ===\n");

and doesn't appear in the scsiprint.c file in the 
smartmontools distribution.




----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1408213&group_id=29880




More information about the Devel mailing list