-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit f7b5e7e
Showing
17 changed files
with
3,058 additions
and
0 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
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,16 @@ | |||
All files in this directory and below are: | |||
|
|||
Copyright (c) 2010 Zenoss, Inc. All rights reserved. | |||
|
|||
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. | |||
|
|||
This program is distributed in the hope that it will be useful, | |||
but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
GNU General Public License for more details. | |||
|
|||
You should have received a copy of the GNU General Public License | |||
along with this program; if not, write to the Free Software | |||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1 @@ | |||
graft ZenPacks |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,8 @@ | |||
|
|||
import Globals | |||
import os.path | |||
|
|||
skinsDir = os.path.join(os.path.dirname(__file__), 'skins') | |||
from Products.CMFCore.DirectoryView import registerDirectory | |||
if os.path.isdir(skinsDir): | |||
registerDirectory(skinsDir, globals()) |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,2 @@ | |||
# __init__.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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1 @@ | |||
# __init__.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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1 @@ | |||
# __init__.py |
Empty file.
37 changes: 37 additions & 0 deletions
37
ZenPacks/AndreaConsadori/Motorola/modeler/plugins/CanopyDeviceMap.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 | Original file line | 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 CanopyDeviceMap(SnmpPlugin): | |||
"""Map mib elements from Motorola mib to get hw and os products. | |||
""" | |||
|
|||
maptype = "CanopyDeviceMap" | |||
|
|||
snmpGetMap = GetMap({ | |||
#'' : 'manufacturer', | |||
'.1.3.6.1.4.1.161.19.3.3.1.1.0' : 'setHWProductKey', | |||
'.1.3.6.1.4.1.161.19.3.3.1.3.0' : 'setHWSerialNumber', | |||
'.1.3.6.1.4.1.161.19.3.3.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 | |||
|
37 changes: 37 additions & 0 deletions
37
ZenPacks/AndreaConsadori/Motorola/modeler/plugins/PTPDeviceMap.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 | Original file line | 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 PTPDeviceMap(SnmpPlugin): | |||
"""Map mib elements from Motorola mib to get hw and os products. | |||
""" | |||
|
|||
maptype = "PTPDeviceMap" | |||
|
|||
snmpGetMap = GetMap({ | |||
#'' : 'manufacturer', | |||
'.1.3.6.1.4.1.17713.1.8.3.0' : 'setHWProductKey', | |||
#'.' : 'setHWSerialNumber', | |||
'.1.3.6.1.4.1.17713.1.19.1.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 | |||
|
37 changes: 37 additions & 0 deletions
37
ZenPacks/AndreaConsadori/Motorola/modeler/plugins/PTPDeviceMapV6.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 | Original file line | 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 PTPDeviceMap(SnmpPlugin): | |||
"""Map mib elements from Motorola mib to get hw and os products. | |||
""" | |||
|
|||
maptype = "PTPDeviceMap" | |||
|
|||
snmpGetMap = GetMap({ | |||
#'' : 'manufacturer', | |||
'.1.3.6.1.4.1.17713.6.8.3.0' : 'setHWProductKey', | |||
#'.' : 'setHWSerialNumber', | |||
'.1.3.6.1.4.1.17713.6.19.1.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 | |||
|
Empty file.
Oops, something went wrong.