TOP LEVEL CATEGORIES
EXPLORE
Description:
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:
Current Version
2016-12-09
Last Release Date
Compatible With
Owner
Nagios Exchange
License
GPL
Plugin
You must be logged in to submit a review.
Your review has been submitted and is pending approval.
To:
From:
Your recommendation has been sent.