Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: http://zenpacks.zenoss.org/svn/zenpacks@33 db08cffe-75b9-45d1-af1a-46ad9ef135f6
- Loading branch information
Matt Ray
committed
Dec 23, 2008
1 parent
fd6123f
commit 7370a05
Showing
4 changed files
with
534 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
ZenPacks/AndreaConsadori/Alvarion/modeler/plugins/AlvarionWI2DeviceMap.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# | ||
# 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 Products.DataCollector.plugins.CollectorPlugin import SnmpPlugin, GetMap | ||
|
||
class AlvarionWI2DeviceMap(SnmpPlugin): | ||
"""Map mib elements from Alvarion mib to get hw and os products. | ||
""" | ||
|
||
maptype = "AlvarionWI2DeviceMap" | ||
|
||
snmpGetMap = GetMap({ | ||
'.1.3.6.1.4.1.12394.1.10.5.6.1.1.5.0' : 'setHWSerialNumber', | ||
'.1.3.6.1.4.1.12394.1.10.5.4.2.1.1.8.6.0' : 'manufacturer', | ||
'.1.3.6.1.4.1.12394.1.10.5.6.1.1.1.0 ' : 'setHWProductKey', | ||
'.1.3.6.1.4.1.12394.1.10.5.6.1.1.2.0': 'setOSProductKey', | ||
}) | ||
|
||
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 | ||
if getdata['setHWProductKey'] is None: return None | ||
om = self.objectMap(getdata) | ||
return om | ||
|
||
|
||
|
Oops, something went wrong.