Skip to content

Request: Auto detect and count all drive on system #65

@PVasileff

Description

@PVasileff

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..

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions