Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Plugin to discover any amount of physical drives attached to any LSI Hardware RAID Controller, query and report back on the S.M.A.R.T health of the attached physical drives. Relies on smartctl, and storcli.
Current Version
1.0
Last Release Date
February 9, 2015
Owner
Dave byrne
Download URL
http://dave-byrne.co.uk/nagiosplugins/dev/check_lsismart
License
GPL
Compatible With
Check will detect number of drives attached to controller and query them all for overall smart health based off of smartctl's analysis of pre-fail attributes etc.
>> Returns OK if all attached drives return healthy.
>> Returns Warning if storcli could not be found.
>> Returns Critical if one or more drives report unhealthy. And proceeds to pull the device ID# (slot#), drive device name and serial number and prints this info witht he Critical messsage in Nagios Core.
Relies on smartctl (From SmartMonTools) and StorCli (MegaRAID CLI, successor to megacli)
Run check under sudo in command definition, ensure Nagios can run both storcli and smartctl under sudo by editing visudo with the following lines:
Change: Defaults requiretty
To: Defaults requiretty Defaults:nagios !requiretty
Change: ## Allow root to run any commands anywhere root ALL=(ALL) ALL
To: ## Allow root to run any commands anywhere root ALL=(ALL) ALL nagios ALL=(ALL) NOPASSWD:/usr/sbin/smartctl nagios ALL=(ALL) NOPASSWD:/opt/MegaRAID/storcli/storcli64
Edit the check file and set the storcli location to wherever your storcli binary is. Same with the visudo additions.
-Dave
You must be logged in to submit a review.
To:
From: