Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

So I put the following lines in my snmpd.conf:

disk /
disk /usr
disk /localhd

I restarted snmpd and tried to do an snmp walk on the following OID: 1.3.6.1.4.1.2021.9.1. What I pasted bellow is just a subset of all the results but as you can see for some reason the data gathered is all 0's. Does anyone have any idea why this would be happening? Thanks.

UCD-SNMP-MIB::dskIndex.1 = INTEGER: 0
UCD-SNMP-MIB::dskIndex.2 = INTEGER: 1
UCD-SNMP-MIB::dskIndex.3 = INTEGER: 2
UCD-SNMP-MIB::dskIndex.4 = INTEGER: 3
UCD-SNMP-MIB::dskIndex.5 = INTEGER: 4
UCD-SNMP-MIB::dskIndex.6 = INTEGER: 5
UCD-SNMP-MIB::dskPath.1 = STRING: /
UCD-SNMP-MIB::dskPath.2 = STRING: /usr
UCD-SNMP-MIB::dskPath.3 = STRING: /localhd
UCD-SNMP-MIB::dskPath.4 = STRING: /
UCD-SNMP-MIB::dskPath.5 = STRING: /usr
UCD-SNMP-MIB::dskPath.6 = STRING: /localhd
UCD-SNMP-MIB::dskDevice.1 = STRING: /dev/ram0
UCD-SNMP-MIB::dskDevice.2 = STRING: 192.168.0.53:/export/centos6/usr
UCD-SNMP-MIB::dskDevice.3 = STRING: /dev/sda2
UCD-SNMP-MIB::dskDevice.4 = STRING: /dev/ram0
UCD-SNMP-MIB::dskDevice.5 = STRING: 192.168.0.53:/export/centos6/usr
UCD-SNMP-MIB::dskDevice.6 = STRING: /dev/sda2
UCD-SNMP-MIB::dskMinimum.1 = INTEGER: 100000
UCD-SNMP-MIB::dskMinimum.2 = INTEGER: 100000
UCD-SNMP-MIB::dskMinimum.3 = INTEGER: 100000
UCD-SNMP-MIB::dskMinimum.4 = INTEGER: 100000
UCD-SNMP-MIB::dskMinimum.5 = INTEGER: 100000
UCD-SNMP-MIB::dskMinimum.6 = INTEGER: 100000
UCD-SNMP-MIB::dskMinPercent.1 = INTEGER: -1
UCD-SNMP-MIB::dskMinPercent.2 = INTEGER: -1
UCD-SNMP-MIB::dskMinPercent.3 = INTEGER: -1
UCD-SNMP-MIB::dskMinPercent.4 = INTEGER: -1
UCD-SNMP-MIB::dskMinPercent.5 = INTEGER: -1
UCD-SNMP-MIB::dskMinPercent.6 = INTEGER: -1
UCD-SNMP-MIB::dskTotal.1 = INTEGER: 0
UCD-SNMP-MIB::dskTotal.2 = INTEGER: 0
UCD-SNMP-MIB::dskTotal.3 = INTEGER: 0
UCD-SNMP-MIB::dskTotal.4 = INTEGER: 0
UCD-SNMP-MIB::dskTotal.5 = INTEGER: 0
UCD-SNMP-MIB::dskTotal.6 = INTEGER: 0
UCD-SNMP-MIB::dskAvail.1 = INTEGER: 0
UCD-SNMP-MIB::dskAvail.2 = INTEGER: 0
UCD-SNMP-MIB::dskAvail.3 = INTEGER: 0
UCD-SNMP-MIB::dskAvail.4 = INTEGER: 0
UCD-SNMP-MIB::dskAvail.5 = INTEGER: 0
UCD-SNMP-MIB::dskAvail.6 = INTEGER: 0

**EDIT: Also I have no idea why the disks duplicate.

share|improve this question
    
What is the output of "mount" from the server? –  jcollie Jul 11 '12 at 19:04
    
It turns out that the only it works is if I put includeAllDisks 10% in my snmpd.conf. So I cant monitor one disk alone? –  Flo Jul 12 '12 at 19:19
    
what is the output when you run mount from the command line? –  EhevuTov Aug 14 '12 at 23:16

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.