S.M.A.R.T monitoring

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
ruler20202
Posts: 7
Joined: Thu Aug 11, 2016 10:57 am

S.M.A.R.T monitoring

Post 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
Attachments
error1.PNG
error1.PNG (6.74 KiB) Viewed 2471 times
check_ide_smart2.PNG
check_ide_smart2.PNG (5.95 KiB) Viewed 2472 times
check_ide_smart.PNG
check_ide_smart.PNG (3.08 KiB) Viewed 2472 times
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: S.M.A.R.T monitoring

Post 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)
Former Nagios Employee
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: S.M.A.R.T monitoring

Post 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]
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ruler20202
Posts: 7
Joined: Thu Aug 11, 2016 10:57 am

Re: S.M.A.R.T monitoring

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: S.M.A.R.T monitoring

Post 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.
Former Nagios Employee
Locked