Check S.M.A.R.T or PFA errors (Visit this link)
from 0 votesThis 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
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_nt\plugins\v2\" 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_nt\plugins\v2\smartpfa.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.
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_nt\plugins\v2\" 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_nt\plugins\v2\smartpfa.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.
Submitted by: Henrikmj
Hits: 731
Overall downloads: 83
Added: 2009-07-09 00:00:00
Last Modified: 2009-12-14 12:28:13
| Filename | Preview | Size | Description | DL |
|---|---|---|---|---|
| smartpfa.vbs | 2 kb | vbs file for checking smart | 193 |
Comments
Be the first to comment this project.
Leave a reply
If you just want to rate the project leave the other field empty.
Even though it would be nice if you would drop a line.
-
Check Active Directory - TK
4 from 1 votesPerforms Active Directory Health Check on domain controllers and member servers. -
Basic NRPE_NT Plugins
from 0 votesThe plugins are DOS programs written in C/C++ The nrpe_nt service calls these plug-ins and they return the following status on exit with a status string for information printed to stdout. -
WMI agentless plugins
from 0 votesThis project consists of a set of VBS scripts that use Microsoft .NET Framework and WMI to retrieve data from remote Windows hosts without the need for agents on the remote hosts. Current release is 1.3 (December 5, 2008). -
NagiosPluginsNT
from 0 votesNagiosPluginsNT is a comprehensive collection of Nagios check plugins written in C# .NET. The goal is to eventually have a Windows equivalent to the official Nagios plugins for *NIX, but with the power of WMI for Windows monitoring. -
Check File - TK
from 0 votescheck_file is a Nagios NRPE plugin for checking simple files or files in directories by using various types of filters like file count, size, age or name match.
-
Check Filesize
from 0 votescheck_filesize is a plugin to check the size of a given file. -
Ms-Dos Check Process Plugin
from 0 votesMs-Dos Check Process is a plugin that monitors if a defined process is running on a remote host. -
check_log_system_log
from 0 votescheck_log_moxs_system is a \'macos x system.log\' controler based on check_log_any which may be reduced or extended in order to match system host characteristics -
Check Terminal Services Licensing - TK
from 0 votesPerforms Terminal Services Licensing check on license servers. -
Check File Size
from 0 votesUsage: check_filesize -p "path" -f "file(s)" -w-c



