Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PVasileff opened this issue Jan 20, 2021 · 0 comments
Open

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

PVasileff opened this issue Jan 20, 2021 · 0 comments

Comments

@PVasileff
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants