Monitoring plugin check_smart 6.4 released: Independence and new quiet parameter

Written by - 0 comments

Published on - last updated on October 29th 2019 - Listed in Hardware Monitoring


A new version of the monitoring plugin check_smart, a plugin to monitor the S.M.A.R.T. attributes of hard and solid state drives, is available!

Version 6.4 introduces a new parameter -q / --quiet. When multiple drives are checked using the -g parameter, all drives appear in the output (no matter the state). Using the additional -q parameter will only show the drives with failing drives and omit the drives in OK state. Here's an example without and with the -q parameter:

root@bd-radoi03-p:~# ./check_smart -g /dev/sda -i "megaraid,[11-14]"
WARNING: [/dev/sda] - Reallocated_Sector_Ct is non-zero (1), Current_Pending_Sector is non-zero (69) --- [/dev/sda] - Device is clean --- [/dev/sda] - Device is clean --- [/dev/sda] - Device is clean|

root@bd-radoi03-p:~# ./check_smart -g /dev/sda -i "megaraid,[11-14]" -q
WARNING: [/dev/sda] - Reallocated_Sector_Ct is non-zero (1), Current_Pending_Sector is non-zero (69) --- Other drives OK|

Furthermore the dependency on the Perl module utils.pm (coming from either monitoring-plugins-common or nagios-plugins-common packages) was removed. Only very few functions from this module were actually used and these were very basic. It makes more sense here to be a fully standalone plugin.

Thanks a lot to Jesse Becker for contributing code to this open source script!


Add a comment

Show form to leave a comment

Comments (newest first)

No comments yet.