Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
ESXI Dell perc HDD/SDD S.M.A.R.T. check
1
2022-06-13
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
- Nagios 4.x
- Nagios XI
GPL
2615
File | Description |
---|---|
check_smart.sh | check_smart.sh |
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
This plugin is not for newbies and non-bash people!!!
Fine tuning for your specific hardware will be needed if you need to have 100% S.M.A.R.T. predictive monitoring.
PLUGIN DEPENDENCIES:
This script will raise a CRITICAL if the DELL PERC controller raised a SMART error for a specific HDD using its own build-in mechanism. However this a reactive method, because the failure already occurred. If you want to predict HDD/SDD failure you need to edit the script and add add your model to the DB of the script manually. You can either use smartctl to read the HDD/SDD important attributes you wish to monitor if their value is different than 0 using smartctl DB for your specific drive models:
https://github.com/mirror/smartmontools/blob/master/drivedb.h
OS DEPENDENCIES:
On the nagios host you should have ssh-client
On the ESXi servers you should have the perccli64 utility installed as described here:
https://www.dell.com/support/kbdoc/en-bg/000177280/how-to-use-the-poweredge-raid-controller-perc-command-line-interface-cli-utility-to-manage-your-raid-controller#bs_VMware
the commands.cfg part is:
# Check esxi SDDs/HDDs SMART status for a specific controller i.e. c0, c1 cN and etc:
define command{
command_name check_esxi_smart
command_line sudo $USER1$/check_smart.sh $HOSTADDRESS$ c0
}
Fine tuning for your specific hardware will be needed if you need to have 100% S.M.A.R.T. predictive monitoring.
PLUGIN DEPENDENCIES:
This script will raise a CRITICAL if the DELL PERC controller raised a SMART error for a specific HDD using its own build-in mechanism. However this a reactive method, because the failure already occurred. If you want to predict HDD/SDD failure you need to edit the script and add add your model to the DB of the script manually. You can either use smartctl to read the HDD/SDD important attributes you wish to monitor if their value is different than 0 using smartctl DB for your specific drive models:
https://github.com/mirror/smartmontools/blob/master/drivedb.h
OS DEPENDENCIES:
On the nagios host you should have ssh-client
On the ESXi servers you should have the perccli64 utility installed as described here:
https://www.dell.com/support/kbdoc/en-bg/000177280/how-to-use-the-poweredge-raid-controller-perc-command-line-interface-cli-utility-to-manage-your-raid-controller#bs_VMware
the commands.cfg part is:
# Check esxi SDDs/HDDs SMART status for a specific controller i.e. c0, c1 cN and etc:
define command{
command_name check_esxi_smart
command_line sudo $USER1$/check_smart.sh $HOSTADDRESS$ c0
}
Reviews (0)
Be the first to review this listing!