Windows disk health monitoring with smartmontoolsl/NSClient++?
Eric Pearce
epearce at amberpoint.com
Fri Jan 16 00:14:45 CET 2009
Thanks for the tip - I think I'm making some progress, i.e.
C:\Program Files\NSClient++>"nsclient++.exe" CheckWMI Select Status from Win32_DiskDrive
\NSClient++.cpp(370) Attempting to start NSCLient++ - 0.3.5.2 2008-09-24
l \NSClient++.cpp(476) NSCLient++ - 0.3.5.2 2008-09-24 Started!
l \CheckWMI.cpp(306) |--------+
l \CheckWMI.cpp(307) | Status |
l \CheckWMI.cpp(308) |--------+
l \CheckWMI.cpp(317) | OK |
l \CheckWMI.cpp(319) |--------+
l \NSClient++.cpp(530) Attempting to stop NSCLient++ - 0.3.5.2 2008-09-24
l \NSClient++.cpp(589) NSCLient++ - 0.3.5.2 2008-09-24 Stopped succcessfully
But I dont' see how to turn this output into something useful for Nagios, i.e. "OK", "WARNING", "CRITICAL". It appears that the possible return values for "Status" are one of the following: OK,Error,Degraded,Unknown,Pred Fail, Starting, Stopping, Service, Stressed, NonRecover, No Contact or Lost Comm. I would be happy with "OK" resulting in a Nagios "OK" and anything else being a "WARNING". Ideally, "WARNING" followed by the "Status" output from WMI. Is there a way to do this using the NSClient "filter" and Max/Min syntax?
Bonus question: What do you do if you have multiple drives? I don't see any obvious way to specify a drive to check.
Thanks
-e
----- Original Message -----
From: Anthony Montibello
To: Eric Pearce
Cc: nagios-users at lists.sourceforge.net
Sent: Wednesday, January 14, 2009 8:58 PM
Subject: Re: [Nagios-users] Windows disk health monitoring with smartmontoolsl/NSClient++?
USe WMI:
the path to the smart data:
root/Cimv2/Win32_DiskDrive/
[Instance] --> Status
Hope this helps
Tony (Author of NC_Net)
On Tue, Jan 13, 2009 at 10:49 PM, Eric Pearce <epearce at amberpoint.com> wrote:
I'd like to get SMART disk health status for Windows machines. It looks like smartctl would work fine on Windows - has someone got it working with NSClient++?
I've found some people asking about this in the list archives, but haven't found any concrete examples.
All I'm looking for is a basic "OK" or "something bad is going to happen soon" alert from Nagios.
Thanks
-e
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090115/dd88c5a0/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list