[Solved] How do I find hard drives with SNMP?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
jbruyet
Posts: 235
Joined: Wed Dec 28, 2011 12:14 pm

[Solved] How do I find hard drives with SNMP?

Post by jbruyet »

Hey all, I built a Debian 6 server with a 4-disk 2TB array as a backup for an archiving device (size is per the archiving device manufacturer's recommendation). I have NRPE installed and I can see my basics -- CPU, UpTime, etc. I can also see my 160GB boot disk. Now I'm trying to find stats for the four hard drives in the array and I'm not having much luck finding anything useful using snmpwalk. I don't know that much about SNMP and Googling this has been pointless. Do I need to find a way to monitor the SATA ports on the motherboard or is there a way to see through the motherboard and touch the drives themselves? It's an Asus motherboard and their support web site had nothing for me.

Thanks,

Joe B
Last edited by jbruyet on Fri May 02, 2014 12:27 pm, edited 1 time in total.
jbruyet
Posts: 235
Joined: Wed Dec 28, 2011 12:14 pm

Re: How do I find hard drives with SNMP?

Post by jbruyet »

Ok, I pulled the "walk," converted it to a .csv and then to an Excel file. I found entries for SDA, SDA1, SDB, SDB2, etc... up to my RAID array, md10. Actually, I should say I found the labels for my drives since their types are DisplayString. I can find reads, writes and IO entries but I can't find anything regarding a status. All I need is a way to determine Working/Not Working for my RAID drives. Any ideas?

Thanks,

Joe B
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: How do I find hard drives with SNMP?

Post by jsmurphy »

Hey Joe,

While I know nothing about monitoring IO statistics on a Linux server via SNMP, if you have NRPE installed on the server and SNMP is not a requirement you could use this plugin:
http://exchange.nagios.org/directory/Pl ... cs/details

check_by_ssh might also work here.

Hopefully this helps.
jbruyet
Posts: 235
Joined: Wed Dec 28, 2011 12:14 pm

Re: How do I find hard drives with SNMP?

Post by jbruyet »

Wow, sorry for the long delay. NRPE is working just fine. Thanks for the pointer.

Thanks,

Joe B
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: How do I find hard drives with SNMP?

Post by abrist »

Did you ever resolve your snmp issues?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
jbruyet
Posts: 235
Joined: Wed Dec 28, 2011 12:14 pm

Re: How do I find hard drives with SNMP?

Post by jbruyet »

Wow, I just ran across this post and saw that I never replied. I found out how to monitor the free space and check the status too so I do that now.

Code: Select all

OK: c:: Total: 48.8G - Used: 15.6G (32%) - Free: 33.2G (68%) 


Thanks,

Joe B
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: [Solved] How do I find hard drives with SNMP?

Post by tmcdonald »

Great, thanks for coming back for us. I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee
Locked