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

Enhanced SNMP Windows Disk Check - Check all partitions at once

Rating
6 votes
Favoured:
0
Hits
100781
Files:
FileDescription
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

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.