Home Directory Plugins System Metrics File System Enhanced SNMP Windows Disk Check

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


Remember Me

Enhanced SNMP Windows Disk Check

10 votes
check_win_snmp_disk.plThe only script you need

Help Support Ethan Galstad's New Project:

Help Support Ethan

A Message From The Founder...

As the founder of Nagios, I'm asking for your help in a cause that's dear to my heart.

I'm launching a new project to help better the world by providing the information, ideas, and inspiration that I believe can improve the lives of people everywhere.

I know you're busy managing networks, but I would appreciate it if you would consider liking my Facebook page and showing your support for the content and messages I produce by sharing them with your friends and family.

You can learn more about my project by visiting ethangalstad.me/nagios. Thank you for your time. I wish you all the best in your endeavors, whatever they may be.

- Ethan

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).
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)
I added the magic threshold adaption from check_mk for large disks to the script.

Documentation for the magic number:
(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.
It works great on systems with multiple drives.
byginer, April 24, 2014
Here is an update made by Alexander Tikhomirov:
1) add performance data
2) cosmetic changes

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.
bynishith, February 17, 2013
0 of 1 people found this review helpful
Effortless Plugin.
./check_win_snmp_disk.pl public 2 80 90
OK : Percent Used : 33%, Total : 33.8 GiB, Used : 11.2 GiB, Free : 22.6 GiB