Hi, i had the similar problem with 3com mib, you have to do some tricks for
import mibs
1: rename mib file like the name in definition
2: put in the first line of the mib the definition istruction
smidump read only the first line of the mib and if dont found correct
definition, simply skip mib file even is true
Code:
A3COM0352-STACK-CONFIG DEFINITIONS ::= BEGIN
IMPORTS
superStackIIconfig FROM A3COM0004-GENERIC
genericTrap ::= { a3Com 4 } FROM A3Com-products-MIB
PhysAddress, DisplayString FROM RFC1213-MIB
OBJECT-TYPE FROM RFC-1212
TRAP-TYPE FROM RFC-1215
TimeTicks FROM SNMPv2-SMI
;
as you can see the first line is definition sentence.
as you can see this is different the original, i had to add generic trap line
so now correct import mib in zenmib
Hope it help
Code:
###########################################################################
#
# This program is part of Zenoss Core, an open source monitoring platform.
# Copyright (C) 2007, Zenoss Inc.
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2 as published by
# the Free Software Foundation.
#
# For complete information please visit: http://www.zenoss.com/oss/
#
###########################################################################
from CollectorPlugin import SnmpPlugin, GetMap
class ComDeviceMap(SnmpPlugin):
"""Map mib elements from correct 3Com OID mib to get hw and os products.
"""
maptype = "ComDeviceMap"
snmpGetMap = GetMap({
# '.1.3.6.1.4.1.43.10.27.1.1.1.5.1' :'Manufacturer',
'.1.3.6.1.4.1.43.10.27.1.1.1.13.1' :'setHWSerialNumber',
'.1.3.6.1.4.1.43.10.27.1.1.1.5.1' :'setHWProductKey',
'.1.3.6.1.4.1.43.10.27.1.1.1.12.1' :'setOSProductKey',
})
def condition(self, device, log):
"""does device meet the proper conditions for this collector to run"""
return device.snmpOid.startswith('.1.3.6.1.4.1.43')
def process(self, device, results, log):
"""collect snmp information from this device"""
log.info('processing %s for device %s', self.name(), device.id)
getdata, tabledata = results
om = self.objectMap(getdata)
if om.setOSProductKey and om.setOSProductKey.find("NetWare") > -1:
delattr(om, 'setOSProductKey')
return om
feel free to use my little tricks to get correct serial number fron 3com device
Hopte it helps
-------------------- m2f --------------------
Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=16444#16444
-------------------- m2f --------------------
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users