-
Notifications
You must be signed in to change notification settings - Fork 23
Description
Thanks for great nagios script. It is best ever I found!
It will be VERY helpfully for lot of people if you add a parameter to the script for auto detect and count all hard drives (nvme,ssd,hdd) on system (directly connected or behind RAID controller).
For example:
Now, if I want to check health my 4 SSD disks connected with SATA to the motherboard I must to run:
/usr/local/nagios/libexec/smart.pl -g '/dev/sd[c-e]' -i auto
And I need to add separate check to check my 7 disks that connected to my HP Smart Array Controller:
/usr/local/nagios/libexec/smart.pl -g '/dev/sda' -i 'cciss,[0-6]'
The idea is to add functionality of that script to be unified and to be called without definition of number of disks or type of RAID (with 'lspci | grep -i raid' (for example for RAID detection)).
And to be needed only comma separated list of thresholds needed for parameter..