Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
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
Owner
Nagios Exchange
License
GPL
Compatible With
Plugin
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 [email protected] * 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
You must be logged in to submit a review.
To:
From:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!