Windows

Enhanced SNMP Windows Disk Check

Description:

Perl script that uses SNMP (via snmpget) to get disk usage information from Windows hosts. Outputs usage %, total, used and free space in human-readable format with auto-scaling (KiB up to TiB).

Current Version

Last Release Date

June 16, 2009

Compatible With


Project Files
Project Notes
Based on the check_win_snmp_disk.pl script posted here by jakubowski Benjamin, this enhanced version: * prints usage information if incorrect parameters are given * handles exceptions (more) gracefully * automatically scales output to TiB, GiB, MiB or KiB I have tested this updated script against Windows 2003 server (including R2) only, but it should work with most windows hosts.
Reviews (5) Add a Review
Enhanced enhanced version
by genti, July 31, 2015

I added the magic threshold adaption from check_mk for large disks to the script. https://github.com/pashol/nagios-checks/blob/master/check_win_snmp_disk.pl Documentation for the magic number: https://mathias-kettner.de/checkmk_filesystems.html (Chapter df magic number) I also eliminated the rounding of percentages. For large disks with a narrow warning/critical levels it could potentially cause problems.



Grab the latest version from giner
by jestertoo, March 31, 2015

It works great on systems with multiple drives.



Add performance data
by giner, April 30, 2014

Here is an update made by Alexander Tikhomirov: 1) add performance data 2) cosmetic changes http://pastebin.com/MFBeNkiK



Reports different disks
by shandy4473, December 31, 2013

The script reports the D drive when specifying the parameter number 2 which is for the C drive on certain servers. For example - on one Windows 2003 machine, specifying a parameter of 2 for the C drive yields a reading from the script of the D drive.



Perfect
by nishith, February 28, 2013

Effortless Plugin. ./check_win_snmp_disk.pl 10.0.64.173 public 2 80 90 OK : Percent Used : 33%, Total : 33.8 GiB, Used : 11.2 GiB, Free : 22.6 GiB



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4.1 (10)
Favorites
0
Views
114,323