A new version of the monitoring plugin check_smart.pl is available. Version 6.1 is a minor release which allows to use the /dev/bus/N pseudo-device. This pseudo device is not a real device (it doesn't show up in /dev/bus/) but is a helper inside smartctl to identify physical drives behind a MegaRaid controller, even when the physical drives were not configured yet.
Practical example: smartctl --scan may show the /dev/bus/N device with the megaraid controller position of the physical drives:
# smartctl --scan
/dev/sda -d scsi # /dev/sda, SCSI device
/dev/sdb -d scsi # /dev/sdb, SCSI device
/dev/sdc -d scsi # /dev/sdc, SCSI device
/dev/bus/0 -d megaraid,0 # /dev/bus/0 [megaraid_disk_00], SCSI device
/dev/bus/0 -d megaraid,1 # /dev/bus/0 [megaraid_disk_01], SCSI device
/dev/bus/0 -d megaraid,2 # /dev/bus/0 [megaraid_disk_02], SCSI device
/dev/bus/0 -d megaraid,3 # /dev/bus/0 [megaraid_disk_03], SCSI device
/dev/bus/0 -d megaraid,4 # /dev/bus/0 [megaraid_disk_04], SCSI device
Using this information, the monitoring check can be scripted with whatever configuration management tool or even by hand:
# smartctl --scan | grep megaraid | while read device param interface comment; do echo "/usr/lib/nagios/plugins/check_smart.pl -d $device -i $interface"; done
/usr/lib/nagios/plugins/check_smart.pl -d /dev/bus/0 -i megaraid,0
/usr/lib/nagios/plugins/check_smart.pl -d /dev/bus/0 -i megaraid,1
/usr/lib/nagios/plugins/check_smart.pl -d /dev/bus/0 -i megaraid,2
/usr/lib/nagios/plugins/check_smart.pl -d /dev/bus/0 -i megaraid,3
/usr/lib/nagios/plugins/check_smart.pl -d /dev/bus/0 -i megaraid,4
I hope you get what I'm trying to show here ;-).
No comments yet.
AWS Android Ansible Apache Apple Atlassian BSD Backup Bash Bluecoat CMS Chef Cloud Coding Consul Containers CouchDB DB DNS Database Databases Docker ELK Elasticsearch Filebeat FreeBSD Galera Git GlusterFS Grafana Graphics HAProxy HTML Hacks Hardware Icinga Influx Internet Java KVM Kibana Kodi Kubernetes LVM LXC Linux Logstash Mac Macintosh Mail MariaDB Minio MongoDB Monitoring Multimedia MySQL NFS Nagios Network Nginx OSSEC OTRS Office PGSQL PHP Perl Personal PostgreSQL Postgres PowerDNS Proxmox Proxy Python Rancher Rant Redis Roundcube SSL Samba Seafile Security Shell SmartOS Solaris Surveillance Systemd TLS Tomcat Ubuntu Unix VMWare VMware Varnish Virtualization Windows Wireless Wordpress Wyse ZFS Zoneminder