Home Directory Plugins Operating Systems Windows Enhanced SNMP Windows Disk Check - Check all partitions at once

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

Login

Remember Me

Directory Tree

Enhanced SNMP Windows Disk Check - Check all partitions at once

Rating
6 votes
Favoured:
0
Hits
105575
Files:
FileDescription
check_win_snmp_disk.plThe only script you need
Nagios CSP

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 Dan Capper. Enhancements - all partitions are detected dynamically and tested. Detailed check report (includes Drive letter + supplied threshold). Most "critical" drive will be shown first. Some errors checks added (whether snmp available or no, whether tested machine is windows machine).
Based on the check_win_snmp_disk.pl script posted here by Dan Capper.
This version detects and checks all windows partitions is founds (instead to check one by one like in previous version).
Short output - Most "problematic" partiotion info (including Drive letter and threshoulds) will be shown.
Long output - All partitions info (including Drive letter and threshoulds) will be shown.
Reviews (5)
I change the $TEST (ligne 74) to this :
snmpwalk -v 2c -c $COM $SERVER SNMPv2-MIB::sysDescr.0 2>&1`;
because snmpstatus always fall in timeout...
bywiede, April 12, 2011
But it will be perfect, when you can insert the Community also into the Test :)
(line 73 and maybe 78)
e.g. like this:
$TEST=`$snmpstatus -v 1 $SERVER -c @ARGV[1]
bycoldcache, February 13, 2011
Comment out line 132 and replace it with the following to only check hard drives:

@LDISKS=`$snmpwalk -v 1 -c $COMMUNITYNAME $SERVER hrStorageType | grep "FixedDisk" | awk '{print \$1}' | awk -F. '{print \$2}'`;
I had to move the snmp community string parse code above the test to get this to work, might want to update.
Nice but I do not need to know there is 100% usage on my cd rom.