Re: Disk utilization on SLES9 Linux

[email protected]
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi Dave,


Am 07.12.2005 um 09:37 Uhr haben Sie geschrieben:
> On Tue, 2005-12-06 at 18:35 +0100 wrote:
> > We use "OpManager" as NNM, these tools ask
> > this OID for the disk utilization:
> > 
> > .1.3.6.1.2.1.25.2.3.1.6
> 
> That's part of the Host Resources MIB, which is supported by the
> Net-SNMP agent, but isn't part of the default build configuration.
> 
> You may need to re-build the agent from source.
> Try
> 
>    ./configure --with-mib-modules=host; make; make install
> > I tried the OID with snmpget
> > linux~# snmpget -m ALL -c pl-combots -v 2c 10.17.1.124
> >		       .1.3.6.1.2.1.25.2.3.1.6
> > HOST-RESOURCES-MIB::hrStorageUsed = No Such Instance
> 
> Hmmm....
> I'm actually wondering whether this agent *does* support
> this MIB.

The HOST MIB is installed by default on suse Linux.

/usr/share/snmp/mibs/HOST-RESOURCES-MIB.txt

I hope, the HOST Mib is compiled in...

Is there a possibility to see, which options were compiled
in?

> Try with 'snmpgetnext' instead of 'snmpget'.
> What does that report?

This is the outout with snmpgetnext:

HOST-RESOURCES-MIB::hrDeviceIndex.768 = INTEGER: 768

> > My snmpd.conf:
> 
> > disk  /	85%
> > disk  /data 85%
> > disk  /gsx	85%
> 
> Note that these actually refer to the Net-SNMP-specific:
>	  UCD-SNMP-MIB::dskTable

Is there a way to get the disk utilization with UCD-SNMP-MIB?

> Try
>     snmpwalk	-c pl-combots -v 2c 10.17.1.124  .1.3.6.1.4.1.2021.9

UCD-SNMP-MIB::dskIndex.1 = INTEGER: 1
UCD-SNMP-MIB::dskIndex.2 = INTEGER: 2
UCD-SNMP-MIB::dskIndex.3 = INTEGER: 3
UCD-SNMP-MIB::dskPath.1 = STRING: /
UCD-SNMP-MIB::dskPath.2 = STRING: /data
UCD-SNMP-MIB::dskPath.3 = STRING: /gsx
UCD-SNMP-MIB::dskDevice.1 = STRING: /dev/cciss/c0d0p3
UCD-SNMP-MIB::dskDevice.2 = STRING: nfs01:/export/data
UCD-SNMP-MIB::dskDevice.3 = STRING: /dev/mapper/datavg0-datavol0
UCD-SNMP-MIB::dskMinimum.1 = INTEGER: -1
UCD-SNMP-MIB::dskMinimum.2 = INTEGER: -1
UCD-SNMP-MIB::dskMinimum.3 = INTEGER: -1
UCD-SNMP-MIB::dskMinPercent.1 = INTEGER: 85
UCD-SNMP-MIB::dskMinPercent.2 = INTEGER: 85
UCD-SNMP-MIB::dskMinPercent.3 = INTEGER: 85
UCD-SNMP-MIB::dskTotal.1 = INTEGER: 10325780
UCD-SNMP-MIB::dskTotal.2 = INTEGER: 791396864
UCD-SNMP-MIB::dskTotal.3 = INTEGER: 104806400
UCD-SNMP-MIB::dskAvail.1 = INTEGER: 3703136
UCD-SNMP-MIB::dskAvail.2 = INTEGER: 784415232
UCD-SNMP-MIB::dskAvail.3 = INTEGER: 90183696
UCD-SNMP-MIB::dskUsed.1 = INTEGER: 6098124
UCD-SNMP-MIB::dskUsed.2 = INTEGER: 6981632
UCD-SNMP-MIB::dskUsed.3 = INTEGER: 14622708
UCD-SNMP-MIB::dskPercent.1 = INTEGER: 62
UCD-SNMP-MIB::dskPercent.2 = INTEGER: 1
UCD-SNMP-MIB::dskPercent.3 = INTEGER: 14
UCD-SNMP-MIB::dskPercentNode.1 = INTEGER: 8
UCD-SNMP-MIB::dskPercentNode.2 = INTEGER: 0
UCD-SNMP-MIB::dskPercentNode.3 = INTEGER: 0
UCD-SNMP-MIB::dskErrorFlag.1 = INTEGER: 1
UCD-SNMP-MIB::dskErrorFlag.2 = INTEGER: 0
UCD-SNMP-MIB::dskErrorFlag.3 = INTEGER: 0
UCD-SNMP-MIB::dskErrorMsg.1 = STRING: /: less than 85% free (= 62%)
UCD-SNMP-MIB::dskErrorMsg.2 = STRING:
UCD-SNMP-MIB::dskErrorMsg.3 = STRING:


Thanks for help!!!

Greetings 

Andre

Mit freundlichen Grüssen

Andre Heine



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.