-
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.
First pass at committing community ZenPacks. These need to be tagged.
git-svn-id: http://zenpacks.zenoss.org/svn/zenpacks@3 db08cffe-75b9-45d1-af1a-46ad9ef135f6
- Loading branch information
Matt Ray
committed
Dec 19, 2008
0 parents
commit 27a6f96
Showing
10 changed files
with
455 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 | 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 | 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 | 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 | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# __init__.py |
39 changes: 39 additions & 0 deletions
39
ZenPacks/AndreaConsadori/Raytalk/modeler/plugins/RaytalkDeviceMap.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,39 @@ | ||
########################################################################### | ||
# | ||
# 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 RaytalkDeviceMap(SnmpPlugin): | ||
"""Map mib elements from Raytalk mib to get hw and os products. | ||
""" | ||
|
||
maptype = "RaytalkDeviceMap" | ||
|
||
snmpGetMap = GetMap({ | ||
'.1.2.840.10036.1.1.1.9.0' : 'manufacturer', | ||
'.1.2.840.10036.3.1.2.1.3.0' : 'setHWProductKey', | ||
# '.1.2.840.10036.1.1.1.1.0' : 'setHWSerialNumber', | ||
'.1.2.840.10036.3.1.2.1.4.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 | ||
|
||
|
||
|
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,317 @@ | ||
<?xml version="1.0"?> | ||
<objects> | ||
<!-- ('', 'zport', 'dmd', 'Devices', 'Network', 'WiFi', 'Bridge', 'rrdTemplates', 'Raytalk MHAN-Z') --> | ||
<object id='/zport/dmd/Devices/Network/WiFi/Bridge/rrdTemplates/Raytalk MHAN-Z' module='Products.ZenModel.RRDTemplate' class='RRDTemplate'> | ||
<tomanycont id='datasources'> | ||
<object id='RX Dropped packets' module='Products.ZenModel.BasicDataSource' class='BasicDataSource'> | ||
<property select_variable="sourcetypes" type="selection" id="sourcetype" mode="w" > | ||
SNMP | ||
</property> | ||
<property type="boolean" id="enabled" mode="w" > | ||
True | ||
</property> | ||
<property type="string" id="eventClass" mode="w" > | ||
/Cmd/Fail | ||
</property> | ||
<property type="int" id="severity" mode="w" > | ||
3 | ||
</property> | ||
<property type="int" id="cycletime" mode="w" > | ||
300 | ||
</property> | ||
<property type="string" id="oid" mode="w" > | ||
1.3.6.1.4.1.8433.1.1.5.3.1.1.13.1 | ||
</property> | ||
<property type="boolean" id="usessh" mode="w" > | ||
False | ||
</property> | ||
<tomanycont id='datapoints'> | ||
<object id='RX Dropped packets' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'> | ||
<property select_variable="rrdtypes" type="selection" id="rrdtype" mode="w" > | ||
GAUGE | ||
</property> | ||
<property type="boolean" id="isrow" mode="w" > | ||
True | ||
</property> | ||
</object> | ||
</tomanycont> | ||
</object> | ||
<object id='RX packets' module='Products.ZenModel.BasicDataSource' class='BasicDataSource'> | ||
<property select_variable="sourcetypes" type="selection" id="sourcetype" mode="w" > | ||
SNMP | ||
</property> | ||
<property type="boolean" id="enabled" mode="w" > | ||
True | ||
</property> | ||
<property type="string" id="eventClass" mode="w" > | ||
/Cmd/Fail | ||
</property> | ||
<property type="int" id="severity" mode="w" > | ||
3 | ||
</property> | ||
<property type="int" id="cycletime" mode="w" > | ||
300 | ||
</property> | ||
<property type="string" id="oid" mode="w" > | ||
1.3.6.1.4.1.8433.1.1.5.3.1.1.9.1 | ||
</property> | ||
<property type="boolean" id="usessh" mode="w" > | ||
False | ||
</property> | ||
<tomanycont id='datapoints'> | ||
<object id='Rx packets' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'> | ||
<property select_variable="rrdtypes" type="selection" id="rrdtype" mode="w" > | ||
GAUGE | ||
</property> | ||
<property type="boolean" id="isrow" mode="w" > | ||
True | ||
</property> | ||
</object> | ||
</tomanycont> | ||
</object> | ||
<object id='TX Dropped packets' module='Products.ZenModel.BasicDataSource' class='BasicDataSource'> | ||
<property select_variable="sourcetypes" type="selection" id="sourcetype" mode="w" > | ||
SNMP | ||
</property> | ||
<property type="boolean" id="enabled" mode="w" > | ||
True | ||
</property> | ||
<property type="string" id="eventClass" mode="w" > | ||
/Cmd/Fail | ||
</property> | ||
<property type="int" id="severity" mode="w" > | ||
3 | ||
</property> | ||
<property type="int" id="cycletime" mode="w" > | ||
300 | ||
</property> | ||
<property type="string" id="oid" mode="w" > | ||
1.3.6.1.4.1.8433.1.1.5.3.1.1.12.1 | ||
</property> | ||
<property type="boolean" id="usessh" mode="w" > | ||
False | ||
</property> | ||
<tomanycont id='datapoints'> | ||
<object id='Tx Dropped packets' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'> | ||
<property select_variable="rrdtypes" type="selection" id="rrdtype" mode="w" > | ||
GAUGE | ||
</property> | ||
<property type="boolean" id="isrow" mode="w" > | ||
True | ||
</property> | ||
</object> | ||
</tomanycont> | ||
</object> | ||
<object id='Tx packets' module='Products.ZenModel.BasicDataSource' class='BasicDataSource'> | ||
<property select_variable="sourcetypes" type="selection" id="sourcetype" mode="w" > | ||
SNMP | ||
</property> | ||
<property type="boolean" id="enabled" mode="w" > | ||
True | ||
</property> | ||
<property type="string" id="eventClass" mode="w" > | ||
/Cmd/Fail | ||
</property> | ||
<property type="int" id="severity" mode="w" > | ||
3 | ||
</property> | ||
<property type="int" id="cycletime" mode="w" > | ||
300 | ||
</property> | ||
<property type="string" id="oid" mode="w" > | ||
1.3.6.1.4.1.8433.1.1.5.3.1.1.8.1 | ||
</property> | ||
<property type="boolean" id="usessh" mode="w" > | ||
False | ||
</property> | ||
<tomanycont id='datapoints'> | ||
<object id='Tx packets' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'> | ||
<property select_variable="rrdtypes" type="selection" id="rrdtype" mode="w" > | ||
GAUGE | ||
</property> | ||
<property type="boolean" id="isrow" mode="w" > | ||
True | ||
</property> | ||
</object> | ||
</tomanycont> | ||
</object> | ||
</tomanycont> | ||
<tomanycont id='graphDefs'> | ||
<object id='Statistiche Bridge' module='Products.ZenModel.GraphDefinition' class='GraphDefinition'> | ||
<property type="int" id="height" mode="w" > | ||
100 | ||
</property> | ||
<property type="int" id="width" mode="w" > | ||
500 | ||
</property> | ||
<property type="string" id="units" mode="w" > | ||
packets | ||
</property> | ||
<property type="boolean" id="log" mode="w" > | ||
False | ||
</property> | ||
<property type="boolean" id="base" mode="w" > | ||
False | ||
</property> | ||
<property type="int" id="miny" mode="w" > | ||
-1 | ||
</property> | ||
<property type="int" id="maxy" mode="w" > | ||
-1 | ||
</property> | ||
<property type="boolean" id="hasSummary" mode="w" > | ||
True | ||
</property> | ||
<tomanycont id='graphPoints'> | ||
<object id='RX Dropped packets' module='Products.ZenModel.DataPointGraphPoint' class='DataPointGraphPoint'> | ||
<property select_variable="lineTypes" type="selection" id="lineType" mode="w" > | ||
LINE | ||
</property> | ||
<property type="long" id="lineWidth" mode="w" > | ||
1 | ||
</property> | ||
<property type="boolean" id="stacked" mode="w" > | ||
False | ||
</property> | ||
<property type="string" id="format" mode="w" > | ||
%5.2lf%s | ||
</property> | ||
<property type="string" id="legend" mode="w" > | ||
${graphPoint/id} | ||
</property> | ||
<property type="long" id="limit" mode="w" > | ||
-1 | ||
</property> | ||
<property type="string" id="dpName" mode="w" > | ||
RX Dropped packets_RX Dropped packets | ||
</property> | ||
<property type="string" id="cFunc" mode="w" > | ||
AVERAGE | ||
</property> | ||
</object> | ||
<object id='Rx packets' module='Products.ZenModel.DataPointGraphPoint' class='DataPointGraphPoint'> | ||
<property type="long" id="sequence" mode="w" > | ||
1 | ||
</property> | ||
<property select_variable="lineTypes" type="selection" id="lineType" mode="w" > | ||
LINE | ||
</property> | ||
<property type="long" id="lineWidth" mode="w" > | ||
1 | ||
</property> | ||
<property type="boolean" id="stacked" mode="w" > | ||
False | ||
</property> | ||
<property type="string" id="format" mode="w" > | ||
%5.2lf%s | ||
</property> | ||
<property type="string" id="legend" mode="w" > | ||
${graphPoint/id} | ||
</property> | ||
<property type="long" id="limit" mode="w" > | ||
-1 | ||
</property> | ||
<property type="string" id="dpName" mode="w" > | ||
RX packets_Rx packets | ||
</property> | ||
<property type="string" id="cFunc" mode="w" > | ||
AVERAGE | ||
</property> | ||
</object> | ||
<object id='Tx Dropped packets' module='Products.ZenModel.DataPointGraphPoint' class='DataPointGraphPoint'> | ||
<property type="long" id="sequence" mode="w" > | ||
2 | ||
</property> | ||
<property select_variable="lineTypes" type="selection" id="lineType" mode="w" > | ||
LINE | ||
</property> | ||
<property type="long" id="lineWidth" mode="w" > | ||
1 | ||
</property> | ||
<property type="boolean" id="stacked" mode="w" > | ||
False | ||
</property> | ||
<property type="string" id="format" mode="w" > | ||
%5.2lf%s | ||
</property> | ||
<property type="string" id="legend" mode="w" > | ||
${graphPoint/id} | ||
</property> | ||
<property type="long" id="limit" mode="w" > | ||
-1 | ||
</property> | ||
<property type="string" id="dpName" mode="w" > | ||
TX Dropped packets_Tx Dropped packets | ||
</property> | ||
<property type="string" id="cFunc" mode="w" > | ||
AVERAGE | ||
</property> | ||
</object> | ||
<object id='Tx packets' module='Products.ZenModel.DataPointGraphPoint' class='DataPointGraphPoint'> | ||
<property type="long" id="sequence" mode="w" > | ||
3 | ||
</property> | ||
<property select_variable="lineTypes" type="selection" id="lineType" mode="w" > | ||
LINE | ||
</property> | ||
<property type="long" id="lineWidth" mode="w" > | ||
1 | ||
</property> | ||
<property type="boolean" id="stacked" mode="w" > | ||
False | ||
</property> | ||
<property type="string" id="format" mode="w" > | ||
%5.2lf%s | ||
</property> | ||
<property type="string" id="legend" mode="w" > | ||
${graphPoint/id} | ||
</property> | ||
<property type="long" id="limit" mode="w" > | ||
-1 | ||
</property> | ||
<property type="string" id="dpName" mode="w" > | ||
Tx packets_Tx packets | ||
</property> | ||
<property type="string" id="cFunc" mode="w" > | ||
AVERAGE | ||
</property> | ||
</object> | ||
</tomanycont> | ||
</object> | ||
</tomanycont> | ||
</object> | ||
<!-- ('', 'zport', 'dmd', 'Manufacturers', 'Raytalk', 'products', '4.1') --> | ||
<object id='/zport/dmd/Manufacturers/Raytalk/products/4.1' module='Products.ZenModel.SoftwareClass' class='SoftwareClass'> | ||
<property type="string" id="name" mode="w" > | ||
4.1 | ||
</property> | ||
<property type="lines" id="productKeys" mode="w" > | ||
['4.1'] | ||
</property> | ||
<property type="boolean" id="isOS" mode="w" > | ||
False | ||
</property> | ||
<tomany id='instances'> | ||
<link objid='/zport/dmd/Devices/Network/WiFi/Bridge/devices/Traliccio Nord - Metano (Home)/os'/> | ||
<link objid='/zport/dmd/Devices/Network/WiFi/Bridge/devices/Master_Ghedi/os'/> | ||
<link objid='/zport/dmd/Devices/Network/WiFi/Bridge/devices/Traliccio Metano - Nord (Home)/os'/> | ||
</tomany> | ||
</object> | ||
<!-- ('', 'zport', 'dmd', 'Manufacturers', 'Raytalk', 'products', 'MHAN-Z Wireless Bridge(TM)') --> | ||
<object id='/zport/dmd/Manufacturers/Raytalk/products/MHAN-Z Wireless Bridge(TM)' module='Products.ZenModel.HardwareClass' class='HardwareClass'> | ||
<property type="string" id="name" mode="w" > | ||
MHAN-Z Wireless Bridge(TM) | ||
</property> | ||
<property type="lines" id="productKeys" mode="w" > | ||
['MHAN-Z Wireless Bridge(TM)'] | ||
</property> | ||
<property type="boolean" id="isOS" mode="w" > | ||
False | ||
</property> | ||
<tomany id='instances'> | ||
<link objid='/zport/dmd/Devices/Network/WiFi/Bridge/devices/Traliccio Nord - Metano (Home)/hw'/> | ||
<link objid='/zport/dmd/Devices/Network/WiFi/Bridge/devices/Master_Ghedi/hw'/> | ||
<link objid='/zport/dmd/Devices/Network/WiFi/Bridge/devices/Traliccio Metano - Nord (Home)/hw'/> | ||
</tomany> | ||
</object> | ||
</objects> |
Empty file added
0
ZenPacks/AndreaConsadori/Raytalk/skins/ZenPacks.AndreaConsadori.Raytalk/placeholder.txt
Empty file.
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 @@ | ||
__import__('pkg_resources').declare_namespace(__name__) |
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 @@ | ||
__import__('pkg_resources').declare_namespace(__name__) |
Oops, something went wrong.