Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Enhanced SNMP Windows Disk Check
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!
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)
bygenti, July 30, 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.
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.
byjestertoo, March 25, 2015
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
http://pastebin.com/MFBeNkiK
1) add performance data
2) cosmetic changes
http://pastebin.com/MFBeNkiK
byshandy4473, December 3, 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.
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.