Page 1 of 1
S.M.A.R.T monitoring
Posted: Fri Sep 02, 2016 10:18 am
by ruler20202
Hi all,
So I am looking to monitor raid in remote systems, for disk failures etc.
I have had a look on google and cannot seem to find much, any help would be greatly appreciated

.
I have managed to setup the SMART plugin and have attached print screens however I am unsure on how to configure it. Any information or advise would be fantastic

.
Many Thanks,
Steven Parsons
Re: S.M.A.R.T monitoring
Posted: Fri Sep 02, 2016 11:48 am
by rkennedy
In your service definition, you'll want to pass an $ARG1$ value of the disk you would like to check. For example -
Code: Select all
check_command check_ide_smart!/dev/sda
Currently you aren't doing so. To test over the CLI, try something like this -
Code: Select all
./check_ide_smart -n -d /dev/sda
OK - Operational (17/17 tests passed)
Re: S.M.A.R.T monitoring
Posted: Fri Sep 02, 2016 11:49 am
by scottwilkerson
Also see plugin help and options:
Code: Select all
# /usr/local/nagios/libexec/check_ide_smart -h
check_ide_smart v2.0.3 (nagios-plugins 2.0.3)
Nagios feature - 1999 Robert Dale <[email protected]>
(C) 1999 Ragnar Hojland Espinosa <[email protected]>
Copyright (c) 1998-2014 Nagios Plugin Development Team
<[email protected]>
This plugin checks a local hard drive with the (Linux specific) SMART interface [http://smartlinux.sourceforge.net/smart/index.php].
Usage:
check_ide_smart [-d <device>] [-i <immediate>] [-q quiet] [-1 <auto-on>] [-O <auto-off>] [-n <nagios>]
Options:
-h, --help
Print detailed help screen
-V, --version
Print version information
--extra-opts=[section][@file]
Read options from an ini file. See
https://www.nagios-plugins.org/doc/extra-opts.html
for usage and examples.
-d, --device=DEVICE
Select device DEVICE
Note: if the device is selected with this option, _no_ other options are accepted
-i, --immediate
Perform immediately offline tests
-q, --quiet-check
Returns the number of failed tests
-1, --auto-on
Turn on automatic offline tests
-0, --auto-off
Turn off automatic offline tests
-n, --nagios
Output suitable for Nagios
Send email to [email protected] if you have questions regarding use
of this software. To submit patches or suggest improvements, send email to
[email protected]
Re: S.M.A.R.T monitoring
Posted: Sat Sep 03, 2016 10:38 am
by ruler20202
Hi both,
Many Thanks for your help I got this going brill!
Out of interest, if I wanted to check a remote server (Windows 2012 R2), is there a way I can get Nagios to check for disk failures in a raid?
Cheers,
Steve
Re: S.M.A.R.T monitoring
Posted: Tue Sep 06, 2016 10:38 am
by rkennedy
ruler20202 wrote:Hi both,
Many Thanks for your help I got this going brill!
Out of interest, if I wanted to check a remote server (Windows 2012 R2), is there a way I can get Nagios to check for disk failures in a raid?
Cheers,
Steve
It depends if it's a hard / soft raid setup, but you might be able to. You may be able to using NSClient++, or possibly SNMP. Take a look at our Exchange (
https://exchange.nagios.org) to see if you can find a plugin that would work for your needs.