Home Directory Plugins System Metrics File System box293_drive_inventory_windows

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

box293_drive_inventory_windows

Current Version
2016-12-09
Last Release Date
2016-12-09
Compatible With
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
License
GPL
Hits
6749
Files:
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
This plugin will report what hard drives in the range A: - Z: exist on a Windows machine. This plugin uses NSClient++ to gather the information. The plugin will use check_nrpe (by default) or check_nt (if specified) to query the Windows machine. This plugin was created to be able to get a list of drives in Windows without requiring an additional script to be deployed on the Windows server. As long as NSClient++ is configured to respond to performance counter checks then this plugin will work. The plugin simply queries the "LogicalDisk(DRIVE LETTER)Free Megabytes" performance counter object for all drive letters in the range A: - Z: and if it doesn't get a valid response back it assumes that disk does not exist. The plugin will return an OK state unless there is some sort of a problem and then it will simply return an UNKNOWN state. The check_nrpe and check_nt binary locations are defined at the top of this pluging, adjust them as required. NSClient++ NRPE config file will require the following options enabled: v0.3.x [NRPE] allow_arguments=1 allow_nasty_meta_chars=1 v0.4.x Onwards [/settings/NRPE/server] allow nasty characters = 1 allow arguments = 1 Usage: box293_drive_inventory_windows.sh [host] [type] [port] [secret] [host] is a required argument, the IP address or DNS name of the Windows machine you want to query. [type] is which type of performance counter check you want to query. By default it uses "check_pdh" which exists in NSClient++ 0.4.x onwards. If you have an older version of NSClient++ then you can use "CheckCounter" instead. If you don't have NRPE enabled on NSClient++ then you can force it to use "check_nt" however this method should be avoided. [port] allows you define the port used. Port 5666 is used for NRPE and port 12489 is user for check_nt. [secret] only applies to check_nt and if you want to use a secret you MUST also provide the port argument. Example 1: ./box293_drive_inventory_windows.sh 10.25.11.3 Drives Detected: C: D: E: Example 2: box293_drive_inventory_windows.sh 10.25.14.2 CheckCounter 5666 Drives Detected: C: E: F: G: H: Q: Example 3: box293_drive_inventory_windows.sh 10.25.14.51 COUNTER 12489 Str0ngPassw0rd Drives Detected: C:
I have a mailing list that I will send an email to when I update this plugin. This way you can find out as soon as a new version of this plugin is available.
To Subscribe:
* Send an email to updates+subscribe@box293.com
* You will receive an email with a link you need to follow to create a subscription request
* Click the link to open it in a web browser
* You will need to type your email address and click submit
* You will receive another email with a link you need to follow to complete your subscription
* You will now be subscribed!
* Check your spam folder if the emails are not received

Version Notes:
2016-10-23
* This is the first official release of the plugin

2016-12-09
* Added improved error handling logic