Build precise queries to find exactly what you need
Press ESC to close
Join our next live webinar: “Advanced Nagios Monitoring Techniques” – Register Now
Your review has been submitted and is pending approval.
This VBS based script checks if any SCSI and IDE disks are reporting SMART/PFA errors. In that case it returns a CRITICAL warning and lists the amount of disks reporting error. If the computer does not report any SMART monitoring, a warning is issued
Current Version
Last Release Date
July 10, 2009
Owner
Nagios Exchange
Compatible With
vbs file for checking smart
Nagio/NRPE_NT VBS Script to check for harddisks about to fail, using MSStorageDriver_FailurePredictStatus from WMI Usage check_smartpfa Example: check_smartpfa Sample Output: OK : No PFA/S.M.A.R.T errors detected EASY HOWTO: 1-Place the script Copy the script to "c:nrpe_ntpluginsv2" or whatever location your NRPE_NT .vbs are at. 2-Set nrpe_nt.cfg Inside the NRPE_NT Client Server add the command line in the file nrpe_nt.cfg: command[check_smartpfa]=cscript.exe //nologo //T:60 c:nrpe_ntpluginsv2smartpfa.vbs 3-Restart the nrpe_nt service net stop nrpe_nt net start nrpe_nt 4-Define the command inside nagios $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_smartpfa Absolutely no warranties! In case you find a flawed harddisk using this utility, please post a review! It is near impossible to test this script without access to a failing disk. Only known bug is that some computers simply don't have this WMI class populated. In that case a warning is issued, you should not be lulled into a false sense of security.
there's something that configure in pluggin in server nagios? (No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_nrpe_smart, ...) failed. errno is 2: No such file or directory
This will just use the general overall-health attribute in Smart but a disk with broken sectors is still reported as PASSED, so this is not a reliable method of early detecting as with Smart Attributes 5,196,197,198
of course i don't have a failing disk to see a critical state but it shows in nagios OK : No PFA/S.M.A.R.T errors detected here how i set it up: 1. Copy smartpfa.vbs into nsclient directory into scripts folder 2. Paste the following line into nsclient.ini file in the [wrapped scripts] sectioncheck_smartpfa=smartpfa.vbs /nologo /T:60 3. Restart nscleint in cmd type: net stop nsclientpp then net start nsclientpp 4. In nagios define the command $USER1$/check_nrpe_smart -H $HOSTADDRESS$ -c check_smartpfa 5. In services define: define service{ use generic-service host_name myworkstation service_description nrpe smart check_command check_nrpe_smart }
You must be logged in to submit a review.
To:
From: