[Zenoss-dev] UCD-DISKIO-MIB snmp query problem

Erik A. Dahl edahl at zenoss.com
Sun Jan 27 21:52:16 EST 2008


Hum looks like we need to make that regex a parameter!  Other stats  
should be collected by zenperfsnmp using a correctly configured  
template.  Added a ticket:

http://dev.zenoss.org/trac/ticket/2657

-EAD

On Jan 26, 2008, at 4:04 PM, may wrote:

> I tried to set up zenoss.snmp.UCDHardDiskMap for hard disk  
> monitoring (net-snmp enabled freebsd server), but this plugin does  
> not work out of the box.
> The first problem i found was a wrong regex, matching only devices  
> like sda/hda. Under FreeBSD (and possibly other systems) this could  
> be different.
> Ok, this is easy to correct.
> But the problem is much deeper. Snmp query does not return full  
> diskIOTable .1.3.6.1.4.1.2021.13.15.1 object, it only returns index  
> column and misses others
> i added  snmpGetTableMaps = (
>        GetTableMap('diskIOTable', '.1.3.6.1.2.1.4.20.1', {
>        #GetTableMap('diskIOTable', '.1.3.6.1.4.1.2021.13.15.1.1', {
>            '.2': 'diskIODevice',
>            '.1': 'diskIOIndex',
>            '.3': 'test',
>            }
>        ),
>    )
> For testing but this does not help.
> SNMPWalk wokrs fine for this oid:
> UCD-DISKIO-MIB::diskIOIndex.1 = INTEGER: 1
> UCD-DISKIO-MIB::diskIOIndex.2 = INTEGER: 2
> UCD-DISKIO-MIB::diskIODevice.1 = STRING: ad4
> UCD-DISKIO-MIB::diskIODevice.2 = STRING: ar0
> UCD-DISKIO-MIB::diskIONRead.1 = Counter32: 20992
> UCD-DISKIO-MIB::diskIONRead.2 = Counter32: 1725841920
> UCD-DISKIO-MIB::diskIONWritten.1 = Counter32: 0
> UCD-DISKIO-MIB::diskIONWritten.2 = Counter32: 2667587584
> UCD-DISKIO-MIB::diskIOReads.1 = Counter32: 32
> UCD-DISKIO-MIB::diskIOReads.2 = Counter32: 5989530
> UCD-DISKIO-MIB::diskIOWrites.1 = Counter32: 0
> UCD-DISKIO-MIB::diskIOWrites.2 = Counter32: 7449688
> UCD-DISKIO-MIB::diskIOLA1.1 = INTEGER: 0
> UCD-DISKIO-MIB::diskIOLA1.2 = INTEGER: 0
> UCD-DISKIO-MIB::diskIOLA5.1 = INTEGER: 0
> UCD-DISKIO-MIB::diskIOLA5.2 = INTEGER: 0
> UCD-DISKIO-MIB::diskIOLA15.1 = INTEGER: 0
> UCD-DISKIO-MIB::diskIOLA15.2 = INTEGER: 0
> UCD-DISKIO-MIB::diskIONReadX.1 = Counter64: 20992
> UCD-DISKIO-MIB::diskIONReadX.2 = Counter64: 57560416768
> UCD-DISKIO-MIB::diskIONWrittenX.1 = Counter64: 0
> UCD-DISKIO-MIB::diskIONWrittenX.2 = Counter64: 135811573760
>
> It seems to be a problem in python-snmp library.
>
>
>
>
> -------------------- m2f --------------------
>
> Read this topic online here:
> http://community.zenoss.com/forums/viewtopic.php?p=15796#15796
>
> -------------------- m2f --------------------
>
>
>
> _______________________________________________
> zenoss-dev mailing list
> zenoss-dev at zenoss.org
> http://lists.zenoss.org/mailman/listinfo/zenoss-dev

-EAD

Erik A. Dahl
Co-Founder and CTO, Zenoss Inc.
http://www.zenoss.com







More information about the zenoss-dev mailing list