sensu-plugins / sensu-plugins-disk-checks

This plugin provides native disk instrumentation for monitoring and metrics collection, including: health, usage, and various metrics.
http://sensu-plugins.io
MIT License
27 stars 63 forks source link

check-smart.rb does not support the older smartctl output #85

Closed ChrisPortman closed 7 years ago

ChrisPortman commented 7 years ago

Currently, if the older versions of smartctl are installed, the regexes for enabled and supported do not work.

The old output looks like:

smartctl 5.43 2012-06-30 r3573 [x86_64-linux-2.6.32-573.12.1.el6.x86_64] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

Vendor:               HP      
Product:              LOGICAL VOLUME  
Revision:             4.52
User Capacity:        299,966,445,568 bytes [299 GB]
Logical block size:   512 bytes
Logical Unit id:      <REDACTED>
Serial number:        <REDACTED>  
Device type:          disk
Local Time is:        Fri Aug 25 12:56:01 2017 AEST
Device supports SMART and is Enabled
Temperature Warning Disabled or Not Supported
majormoses commented 7 years ago

closed via #87