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@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 <epea...@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@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


------------------------------------------------------------------------------
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@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

Reply via email to