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!
No comments yet.
AWS Android Ansible Apple Atlassian Automation BSD Backup Bash Bluecoat CMS Chef Cloud Consul Container Containers CouchDB DB DNS Database Databases Docker ELK ElasticSearch Elasticsearch Filebeat FreeBSD GlusterFS Grafana Graphics HAProxy HTML Hacks Hardware Icinga Icingaweb2 InfluxDB Internet Java Kibana Kubernetes LXC Linux Logstash Mac Macintosh Mail MariaDB Minio MongoDB Monitoring Multimedia MySQL NFS Nagios Network Nginx OSSEC OTRS PGSQL PHP Perl Personal PostgreSQL Postgres PowerDNS Proxmox Proxy Rancher SSL Security Shell SmartOS Solaris Surveillance SystemD TLS Tomcat Ubuntu Unix VMware Varnish Virtualization Windows Wireless Wordpress Wyse ZFS Zoneminder