Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

CiscoCatalyst 1.0

  • Loading branch information...
commit 56067a2ff1e06e5cdb0c8e06fd26a0585fe54aaa 0 parents
Kells Kearney authored
17 COPYRIGHT.txt
... ... @@ -0,0 +1,17 @@
1  MANIFEST.in
... ... @@ -0,0 +1 @@
  1 +graft ZenPacks
8 ZenPacks/Nova/Cisco/Catalyst/__init__.py
... ... @@ -0,0 +1,8 @@
  1 +
  2 +import Globals
  3 +import os.path
  4 +
  5 +skinsDir = os.path.join(os.path.dirname(__file__), 'skins')
  6 +from Products.CMFCore.DirectoryView import registerDirectory
  7 +if os.path.isdir(skinsDir):
  8 + registerDirectory(skinsDir, globals())
2  ZenPacks/Nova/Cisco/Catalyst/datasources/__init__.py
... ... @@ -0,0 +1,2 @@
  1 +# __init__.py
  2 +
1  ZenPacks/Nova/Cisco/Catalyst/lib/__init__.py
... ... @@ -0,0 +1 @@
  1 +# __init__.py
1  ZenPacks/Nova/Cisco/Catalyst/migrate/__init__.py
... ... @@ -0,0 +1 @@
  1 +# __init__.py
0  ZenPacks/Nova/Cisco/Catalyst/modeler/__init__.py
No changes.
0  ZenPacks/Nova/Cisco/Catalyst/modeler/plugins/__init__.py
No changes.
0  ZenPacks/Nova/Cisco/Catalyst/modeler/plugins/zenoss/__init__.py
No changes.
61 ZenPacks/Nova/Cisco/Catalyst/modeler/plugins/zenoss/snmp/InterfaceCatOsMap.py
... ... @@ -0,0 +1,61 @@
  1 +###########################################################################
  2 +#
  3 +# This program is part of Zenoss Core, an open source monitoring platform.
  4 +# Copyright (C) 2007, 2009, Zenoss Inc.
  5 +#
  6 +# This program is free software; you can redistribute it and/or modify it
  7 +# under the terms of the GNU General Public License version 2 as published by
  8 +# the Free Software Foundation.
  9 +#
  10 +# For complete information please visit: http://www.zenoss.com/oss/
  11 +#
  12 +###########################################################################
  13 +
  14 +__doc__ = """InterfaceCatOsMap
  15 +
  16 + Extends the standard InterfaceMap to use 1.3.6.1.4.1.9.5.1.4.1.1.4
  17 + (the CatOS interface description) as the interface's description
  18 + instead of the standard interface description. Also uses ifName
  19 + instead of ifDescr.
  20 +"""
  21 +
  22 +from copy import deepcopy
  23 +from Products.DataCollector.plugins.zenoss.snmp.InterfaceMap \
  24 + import InterfaceMap
  25 +from Products.DataCollector.plugins.CollectorPlugin import GetTableMap
  26 +
  27 +class InterfaceCatOsMap(InterfaceMap):
  28 +
  29 + snmpGetTableMaps = InterfaceMap.baseSnmpGetTableMaps + (
  30 + # Extended interface information.
  31 + GetTableMap('ifalias', '.1.3.6.1.2.1.31.1.1.1',
  32 + {'.1' : 'ifName',
  33 + '.6' : 'ifHCInOctets',
  34 + '.7' : 'ifHCInUcastPkts',
  35 + '.15': 'highSpeed'}
  36 + ),
  37 + GetTableMap('ifcatos', '.1.3.6.1.4.1.9.5.1.4.1.1',
  38 + {'.11' : 'ifindex',
  39 + '.4' : 'description'}
  40 + ),
  41 + )
  42 +
  43 + def process(self, device, results, log):
  44 + """
  45 + Pre-process the IF-MIB ifXTable to use the ifAlias as the interface's
  46 + name instead of the ifDescr. Also to use description from alternate OIDs.
  47 + """
  48 +
  49 + if 'ifalias' in results[1] and 'iftable' in results[1]:
  50 + for a_idx, alias in results[1]['ifalias'].items():
  51 + for i_idx, iface in results[1]['iftable'].items():
  52 + if a_idx == i_idx:
  53 + results[1]['iftable'][i_idx]['id'] = alias['ifName']
  54 +
  55 + if 'ifcatos' in results[1] and 'iftable' in results[1]:
  56 + for a_idx, catos in results[1]['ifcatos'].items():
  57 + for i_idx, iface in results[1]['iftable'].items():
  58 + if catos['ifindex'] == iface['ifindex']:
  59 + results[1]['ifalias'][i_idx]['description'] = catos['description']
  60 +
  61 + return super(InterfaceCatOsMap, self).process(device, results, log)
0  ZenPacks/Nova/Cisco/Catalyst/modeler/plugins/zenoss/snmp/__init__.py
No changes.
464 ZenPacks/Nova/Cisco/Catalyst/objects/objects.xml
... ... @@ -0,0 +1,464 @@
  1 +<?xml version="1.0"?>
  2 +<objects>
  3 +<!-- ('', 'zport', 'dmd', 'Devices', 'Network', 'Switch', 'Cisco', 'Catalyst') -->
  4 +<object id='/zport/dmd/Devices/Network/Switch/Cisco/Catalyst' module='Products.ZenModel.DeviceClass' class='DeviceClass'>
  5 +<property visible="True" type="lines" id="zCollectorPlugins" >
  6 +['zenoss.snmp.NewDeviceMap', 'zenoss.snmp.DeviceMap', 'zenoss.snmp.InterfaceMap', 'zenoss.snmp.InterfaceCatOsMap', 'zenoss.snmp.RouteMap', 'zenoss.snmp.CiscoHSRP']
  7 +</property>
  8 +<tomanycont id='rrdTemplates'>
  9 +<object id='Device' module='Products.ZenModel.RRDTemplate' class='RRDTemplate'>
  10 +<property type="text" id="description" mode="w" >
  11 +Cisco template that collects cpu and free memory. Has CPU threshold at 90%
  12 +</property>
  13 +<property type="string" id="targetPythonClass" mode="w" >
  14 +Products.ZenModel.Device
  15 +</property>
  16 +<tomanycont id='datasources'>
  17 +<object id='cpu5min' module='Products.ZenModel.BasicDataSource' class='BasicDataSource'>
  18 +<property select_variable="sourcetypes" type="selection" id="sourcetype" mode="w" >
  19 +SNMP
  20 +</property>
  21 +<property type="boolean" id="enabled" mode="w" >
  22 +True
  23 +</property>
  24 +<property type="string" id="eventClass" mode="w" >
  25 +/Cmd/Fail
  26 +</property>
  27 +<property type="int" id="severity" mode="w" >
  28 +3
  29 +</property>
  30 +<property type="int" id="cycletime" mode="w" >
  31 +300
  32 +</property>
  33 +<property type="string" id="oid" mode="w" >
  34 +1.3.6.1.4.1.9.9.109.1.1.1.1.5.9
  35 +</property>
  36 +<property type="boolean" id="usessh" mode="w" >
  37 +False
  38 +</property>
  39 +<property type="string" id="parser" mode="w" >
  40 +Auto
  41 +</property>
  42 +<tomanycont id='datapoints'>
  43 +<object id='cpu5min' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
  44 +<property select_variable="rrdtypes" type="selection" id="rrdtype" mode="w" >
  45 +GAUGE
  46 +</property>
  47 +<property type="boolean" id="isrow" mode="w" >
  48 +True
  49 +</property>
  50 +</object>
  51 +</tomanycont>
  52 +</object>
  53 +<object id='mem5minFree' module='Products.ZenModel.BasicDataSource' class='BasicDataSource'>
  54 +<property select_variable="sourcetypes" type="selection" id="sourcetype" mode="w" >
  55 +SNMP
  56 +</property>
  57 +<property type="boolean" id="enabled" mode="w" >
  58 +True
  59 +</property>
  60 +<property type="string" id="eventClass" mode="w" >
  61 +/Cmd/Fail
  62 +</property>
  63 +<property type="int" id="severity" mode="w" >
  64 +3
  65 +</property>
  66 +<property type="int" id="cycletime" mode="w" >
  67 +300
  68 +</property>
  69 +<property type="string" id="oid" mode="w" >
  70 +1.3.6.1.4.1.9.9.48.1.1.1.6.1
  71 +</property>
  72 +<property type="boolean" id="usessh" mode="w" >
  73 +False
  74 +</property>
  75 +<property type="string" id="parser" mode="w" >
  76 +Auto
  77 +</property>
  78 +<tomanycont id='datapoints'>
  79 +<object id='mem5minFree' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
  80 +<property select_variable="rrdtypes" type="selection" id="rrdtype" mode="w" >
  81 +GAUGE
  82 +</property>
  83 +<property type="boolean" id="isrow" mode="w" >
  84 +True
  85 +</property>
  86 +</object>
  87 +</tomanycont>
  88 +</object>
  89 +<object id='mem5minUsed' module='Products.ZenModel.BasicDataSource' class='BasicDataSource'>
  90 +<property select_variable="sourcetypes" type="selection" id="sourcetype" mode="w" >
  91 +SNMP
  92 +</property>
  93 +<property type="boolean" id="enabled" mode="w" >
  94 +True
  95 +</property>
  96 +<property type="string" id="eventClass" mode="w" >
  97 +/Cmd/Fail
  98 +</property>
  99 +<property type="int" id="severity" mode="w" >
  100 +3
  101 +</property>
  102 +<property type="int" id="cycletime" mode="w" >
  103 +300
  104 +</property>
  105 +<property type="string" id="oid" mode="w" >
  106 +1.3.6.1.4.1.9.9.48.1.1.1.5.1
  107 +</property>
  108 +<property type="boolean" id="usessh" mode="w" >
  109 +False
  110 +</property>
  111 +<property type="string" id="parser" mode="w" >
  112 +Auto
  113 +</property>
  114 +<tomanycont id='datapoints'>
  115 +<object id='mem5minUsed' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
  116 +<property select_variable="rrdtypes" type="selection" id="rrdtype" mode="w" >
  117 +GAUGE
  118 +</property>
  119 +<property type="boolean" id="isrow" mode="w" >
  120 +True
  121 +</property>
  122 +</object>
  123 +</tomanycont>
  124 +</object>
  125 +<object id='sysUpTime' module='Products.ZenModel.BasicDataSource' class='BasicDataSource'>
  126 +<property select_variable="sourcetypes" type="selection" id="sourcetype" mode="w" >
  127 +SNMP
  128 +</property>
  129 +<property type="boolean" id="enabled" mode="w" >
  130 +True
  131 +</property>
  132 +<property type="string" id="eventClass" mode="w" >
  133 +/Cmd/Fail
  134 +</property>
  135 +<property type="int" id="severity" mode="w" >
  136 +3
  137 +</property>
  138 +<property type="int" id="cycletime" mode="w" >
  139 +300
  140 +</property>
  141 +<property type="string" id="oid" mode="w" >
  142 +1.3.6.1.2.1.1.3.0
  143 +</property>
  144 +<property type="boolean" id="usessh" mode="w" >
  145 +False
  146 +</property>
  147 +<property type="string" id="parser" mode="w" >
  148 +Auto
  149 +</property>
  150 +<tomanycont id='datapoints'>
  151 +<object id='sysUpTime' module='Products.ZenModel.RRDDataPoint' class='RRDDataPoint'>
  152 +<property select_variable="rrdtypes" type="selection" id="rrdtype" mode="w" >
  153 +GAUGE
  154 +</property>
  155 +<property type="boolean" id="isrow" mode="w" >
  156 +True
  157 +</property>
  158 +</object>
  159 +</tomanycont>
  160 +</object>
  161 +</tomanycont>
  162 +<tomanycont id='graphs'>
  163 +<object id='CPU Utilization' module='Products.ZenModel.RRDGraph' class='RRDGraph'>
  164 +<property type="lines" id="dsnames" mode="w" >
  165 +['cpu5min_cpu5min']
  166 +</property>
  167 +<property type="int" id="sequence" mode="w" >
  168 +0
  169 +</property>
  170 +<property type="int" id="height" mode="w" >
  171 +100
  172 +</property>
  173 +<property type="int" id="width" mode="w" >
  174 +500
  175 +</property>
  176 +<property type="string" id="units" mode="w" >
  177 +percentage
  178 +</property>
  179 +<property type="int" id="linewidth" mode="w" >
  180 +1
  181 +</property>
  182 +<property type="boolean" id="log" mode="w" >
  183 +False
  184 +</property>
  185 +<property type="boolean" id="base" mode="w" >
  186 +False
  187 +</property>
  188 +<property type="boolean" id="stacked" mode="w" >
  189 +False
  190 +</property>
  191 +<property type="boolean" id="summary" mode="w" >
  192 +True
  193 +</property>
  194 +<property type="int" id="miny" mode="w" >
  195 +-1
  196 +</property>
  197 +<property type="int" id="maxy" mode="w" >
  198 +-1
  199 +</property>
  200 +<property type="lines" id="colors" mode="w" >
  201 +('#00cc00', '#0000ff', '#00ffff', '#ff0000', '#ffff00', '#cc0000', '#0000cc', '#0080c0', '#8080c0', '#ff0080', '#800080', '#0000a0', '#408080', '#808000', '#000000', '#00ff00', '#fb31fb', '#0080ff', '#ff8000', '#800000')
  202 +</property>
  203 +<property type="boolean" id="hasSummary" mode="w" >
  204 +True
  205 +</property>
  206 +</object>
  207 +<object id='Free Memory' module='Products.ZenModel.RRDGraph' class='RRDGraph'>
  208 +<property type="lines" id="dsnames" mode="w" >
  209 +['mem5minFree_mem5minFree']
  210 +</property>
  211 +<property type="int" id="sequence" mode="w" >
  212 +1
  213 +</property>
  214 +<property type="int" id="height" mode="w" >
  215 +100
  216 +</property>
  217 +<property type="int" id="width" mode="w" >
  218 +500
  219 +</property>
  220 +<property type="string" id="units" mode="w" >
  221 +memory
  222 +</property>
  223 +<property type="int" id="linewidth" mode="w" >
  224 +1
  225 +</property>
  226 +<property type="boolean" id="log" mode="w" >
  227 +False
  228 +</property>
  229 +<property type="boolean" id="base" mode="w" >
  230 +True
  231 +</property>
  232 +<property type="boolean" id="stacked" mode="w" >
  233 +False
  234 +</property>
  235 +<property type="boolean" id="summary" mode="w" >
  236 +True
  237 +</property>
  238 +<property type="int" id="miny" mode="w" >
  239 +-1
  240 +</property>
  241 +<property type="int" id="maxy" mode="w" >
  242 +-1
  243 +</property>
  244 +<property type="lines" id="colors" mode="w" >
  245 +('#00cc00', '#0000ff', '#00ffff', '#ff0000', '#ffff00', '#cc0000', '#0000cc', '#0080c0', '#8080c0', '#ff0080', '#800080', '#0000a0', '#408080', '#808000', '#000000', '#00ff00', '#fb31fb', '#0080ff', '#ff8000', '#800000')
  246 +</property>
  247 +<property type="boolean" id="hasSummary" mode="w" >
  248 +True
  249 +</property>
  250 +</object>
  251 +</tomanycont>
  252 +<tomanycont id='thresholds'>
  253 +<object id='CPU' module='Products.ZenModel.MinMaxThreshold' class='MinMaxThreshold'>
  254 +<property type="lines" id="dsnames" mode="w" >
  255 +['cpu5min_cpu5min']
  256 +</property>
  257 +<property type="boolean" id="enabled" mode="w" >
  258 +True
  259 +</property>
  260 +<property type="string" id="maxval" mode="w" >
  261 +90
  262 +</property>
  263 +<property type="string" id="eventClass" mode="w" >
  264 +/Perf/CPU
  265 +</property>
  266 +<property type="int" id="severity" mode="w" >
  267 +3
  268 +</property>
  269 +<property type="int" id="escalateCount" mode="w" >
  270 +0
  271 +</property>
  272 +</object>
  273 +<object id='Memory' module='Products.ZenModel.MinMaxThreshold' class='MinMaxThreshold'>
  274 +<property type="lines" id="dsnames" mode="w" >
  275 +['mem5minUsed_mem5minUsed']
  276 +</property>
  277 +<property type="boolean" id="enabled" mode="w" >
  278 +True
  279 +</property>
  280 +<property type="string" id="maxval" mode="w" >
  281 +(here.getRRDValue('mem5minUsed') + here.getRRDValue('mem5minFree')) * 0.9
  282 +</property>
  283 +<property type="string" id="eventClass" mode="w" >
  284 +/Perf/Memory
  285 +</property>
  286 +<property type="int" id="severity" mode="w" >
  287 +3
  288 +</property>
  289 +<property type="int" id="escalateCount" mode="w" >
  290 +0
  291 +</property>
  292 +</object>
  293 +</tomanycont>
  294 +<tomanycont id='graphDefs'>
  295 +<object id='CPU Utilization' module='Products.ZenModel.GraphDefinition' class='GraphDefinition'>
  296 +<property type="int" id="height" mode="w" >
  297 +100
  298 +</property>
  299 +<property type="int" id="width" mode="w" >
  300 +500
  301 +</property>
  302 +<property type="string" id="units" mode="w" >
  303 +percentage
  304 +</property>
  305 +<property type="boolean" id="log" mode="w" >
  306 +False
  307 +</property>
  308 +<property type="boolean" id="base" mode="w" >
  309 +False
  310 +</property>
  311 +<property type="int" id="miny" mode="w" >
  312 +-1
  313 +</property>
  314 +<property type="int" id="maxy" mode="w" >
  315 +-1
  316 +</property>
  317 +<property type="boolean" id="hasSummary" mode="w" >
  318 +True
  319 +</property>
  320 +<tomanycont id='graphPoints'>
  321 +<object id='CPU Threshold' module='Products.ZenModel.ThresholdGraphPoint' class='ThresholdGraphPoint'>
  322 +<property type="string" id="threshId" mode="w" >
  323 +CPU
  324 +</property>
  325 +<property type="string" id="legend" mode="w" >
  326 +${graphPoint/id}
  327 +</property>
  328 +</object>
  329 +<object id='CPU Utilization' module='Products.ZenModel.DataPointGraphPoint' class='DataPointGraphPoint'>
  330 +<property type="long" id="sequence" mode="w" >
  331 +1
  332 +</property>
  333 +<property select_variable="lineTypes" type="selection" id="lineType" mode="w" >
  334 +AREA
  335 +</property>
  336 +<property type="long" id="lineWidth" mode="w" >
  337 +1
  338 +</property>
  339 +<property type="boolean" id="stacked" mode="w" >
  340 +False
  341 +</property>
  342 +<property type="string" id="format" mode="w" >
  343 +%0.2lf
  344 +</property>
  345 +<property type="string" id="legend" mode="w" >
  346 +${graphPoint/id}
  347 +</property>
  348 +<property type="long" id="limit" mode="w" >
  349 +-1
  350 +</property>
  351 +<property type="string" id="dpName" mode="w" >
  352 +cpu5min_cpu5min
  353 +</property>
  354 +<property type="string" id="cFunc" mode="w" >
  355 +AVERAGE
  356 +</property>
  357 +</object>
  358 +</tomanycont>
  359 +</object>
  360 +<object id='Memory Utilization' module='Products.ZenModel.GraphDefinition' class='GraphDefinition'>
  361 +<property type="int" id="height" mode="w" >
  362 +100
  363 +</property>
  364 +<property type="int" id="width" mode="w" >
  365 +500
  366 +</property>
  367 +<property type="string" id="units" mode="w" >
  368 +bytes
  369 +</property>
  370 +<property type="boolean" id="log" mode="w" >
  371 +False
  372 +</property>
  373 +<property type="boolean" id="base" mode="w" >
  374 +True
  375 +</property>
  376 +<property type="int" id="miny" mode="w" >
  377 +-1
  378 +</property>
  379 +<property type="int" id="maxy" mode="w" >
  380 +-1
  381 +</property>
  382 +<property type="boolean" id="hasSummary" mode="w" >
  383 +True
  384 +</property>
  385 +<property type="long" id="sequence" mode="w" >
  386 +1
  387 +</property>
  388 +<tomanycont id='graphPoints'>
  389 +<object id='Memory' module='Products.ZenModel.ThresholdGraphPoint' class='ThresholdGraphPoint'>
  390 +<property type="string" id="threshId" mode="w" >
  391 +Memory
  392 +</property>
  393 +<property type="string" id="legend" mode="w" >
  394 +Memory Threshold
  395 +</property>
  396 +</object>
  397 +<object id='Memory Utilization' module='Products.ZenModel.DataPointGraphPoint' class='DataPointGraphPoint'>
  398 +<property type="long" id="sequence" mode="w" >
  399 +1
  400 +</property>
  401 +<property select_variable="lineTypes" type="selection" id="lineType" mode="w" >
  402 +AREA
  403 +</property>
  404 +<property type="long" id="lineWidth" mode="w" >
  405 +1
  406 +</property>
  407 +<property type="boolean" id="stacked" mode="w" >
  408 +False
  409 +</property>
  410 +<property type="string" id="format" mode="w" >
  411 +%5.2lf%s
  412 +</property>
  413 +<property type="string" id="legend" mode="w" >
  414 +${graphPoint/id}
  415 +</property>
  416 +<property type="long" id="limit" mode="w" >
  417 +-1
  418 +</property>
  419 +<property type="string" id="dpName" mode="w" >
  420 +mem5minUsed_mem5minUsed
  421 +</property>
  422 +<property type="string" id="cFunc" mode="w" >
  423 +AVERAGE
  424 +</property>
  425 +</object>
  426 +<object id='Total Memory' module='Products.ZenModel.DataPointGraphPoint' class='DataPointGraphPoint'>
  427 +<property type="long" id="sequence" mode="w" >
  428 +2
  429 +</property>
  430 +<property select_variable="lineTypes" type="selection" id="lineType" mode="w" >
  431 +LINE
  432 +</property>
  433 +<property type="long" id="lineWidth" mode="w" >
  434 +1
  435 +</property>
  436 +<property type="boolean" id="stacked" mode="w" >
  437 +False
  438 +</property>
  439 +<property type="string" id="format" mode="w" >
  440 +%5.2lf%s
  441 +</property>
  442 +<property type="string" id="legend" mode="w" >
  443 +${graphPoint/id}
  444 +</property>
  445 +<property type="long" id="limit" mode="w" >
  446 +-1
  447 +</property>
  448 +<property type="string" id="rpn" mode="w" >
  449 +Memory_Utilization,+
  450 +</property>
  451 +<property type="string" id="dpName" mode="w" >
  452 +mem5minFree_mem5minFree
  453 +</property>
  454 +<property type="string" id="cFunc" mode="w" >
  455 +AVERAGE
  456 +</property>
  457 +</object>
  458 +</tomanycont>
  459 +</object>
  460 +</tomanycont>
  461 +</object>
  462 +</tomanycont>
  463 +</object>
  464 +</objects>
0  ZenPacks/Nova/Cisco/Catalyst/skins/ZenPacks.Nova.Cisco.Catalyst/placeholder.txt
No changes.
12 ZenPacks/Nova/Cisco/Catalyst/tests/__init__.py
... ... @@ -0,0 +1,12 @@
  1 +# ##########################################################################
  2 +#
  3 +# This program is part of Zenoss Core, an open source monitoring platform.
  4 +# Copyright (C) 2008, Zenoss Inc.
  5 +#
  6 +# This program is free software; you can redistribute it and/or modify it
  7 +# under the terms of the GNU General Public License version 2 as published by
  8 +# the Free Software Foundation.
  9 +#
  10 +# For complete information please visit: http://www.zenoss.com/oss/
  11 +#
  12 +# ##########################################################################
1  ZenPacks/Nova/Cisco/__init__.py
... ... @@ -0,0 +1 @@
  1 +__import__('pkg_resources').declare_namespace(__name__)
1  ZenPacks/Nova/__init__.py
... ... @@ -0,0 +1 @@
  1 +__import__('pkg_resources').declare_namespace(__name__)
1  ZenPacks/__init__.py
... ... @@ -0,0 +1 @@
  1 +__import__('pkg_resources').declare_namespace(__name__)
68 setup.py
... ... @@ -0,0 +1,68 @@
  1 +################################
  2 +# These variables are overwritten by Zenoss when the ZenPack is exported
  3 +# or saved. Do not modify them directly here.
  4 +NAME = "ZenPacks.Nova.Cisco.Catalyst"
  5 +VERSION = "1.0"
  6 +AUTHOR = "Ryan Matte"
  7 +LICENSE = "LGPL"
  8 +NAMESPACE_PACKAGES = ['ZenPacks', 'ZenPacks.Nova', 'ZenPacks.Nova.Cisco']
  9 +PACKAGES = ['ZenPacks', 'ZenPacks.Nova', 'ZenPacks.Nova.Cisco', 'ZenPacks.Nova.Cisco.Catalyst']
  10 +INSTALL_REQUIRES = []
  11 +COMPAT_ZENOSS_VERS = ">= 3.0"
  12 +PREV_ZENPACK_NAME = "Catalyst"
  13 +# STOP_REPLACEMENTS
  14 +################################
  15 +# Zenoss will not overwrite any changes you make below here.
  16 +
  17 +from setuptools import setup, find_packages
  18 +
  19 +setup(
  20 + # This ZenPack metadata should usually be edited with the Zenoss
  21 + # ZenPack edit page. Whenever the edit page is submitted it will
  22 + # overwrite the values below (the ones it knows about) with new values.
  23 + name = NAME,
  24 + version = VERSION,
  25 + author = AUTHOR,
  26 + license = LICENSE,
  27 +
  28 + # This is the version spec which indicates what versions of Zenoss
  29 + # this ZenPack is compatible with
  30 + compatZenossVers = COMPAT_ZENOSS_VERS,
  31 +
  32 + # previousZenPackName is a facility for telling Zenoss that the name
  33 + # of this ZenPack has changed. If no ZenPack with the current name is
  34 + # installed then a zenpack of this name if installed will be upgraded.
  35 + prevZenPackName = PREV_ZENPACK_NAME,
  36 +
  37 + # Indicate to setuptools which namespace packages the zenpack
  38 + # participates in
  39 + namespace_packages = NAMESPACE_PACKAGES,
  40 +
  41 + # Tell setuptools what packages this zenpack provides.
  42 + packages = find_packages(),
  43 +
  44 + # Tell setuptools to figure out for itself which files to include
  45 + # in the binary egg when it is built.
  46 + include_package_data = True,
  47 +
  48 + # The MANIFEST.in file is the recommended way of including additional files
  49 + # in your ZenPack. package_data is another.
  50 + #package_data = {}
  51 +
  52 + # Indicate dependencies on other python modules or ZenPacks. This line
  53 + # is modified by zenoss when the ZenPack edit page is submitted. Zenoss
  54 + # tries to put add/delete the names it manages at the beginning of this
  55 + # list, so any manual additions should be added to the end. Things will
  56 + # go poorly if this line is broken into multiple lines or modified to
  57 + # dramatically.
  58 + install_requires = INSTALL_REQUIRES,
  59 +
  60 + # Every ZenPack egg must define exactly one zenoss.zenpacks entry point
  61 + # of this form.
  62 + entry_points = {
  63 + 'zenoss.zenpacks': '%s = %s' % (NAME, NAME),
  64 + },
  65 +
  66 + # All ZenPack eggs must be installed in unzipped form.
  67 + zip_safe = False,
  68 +)

0 comments on commit 56067a2

Please sign in to comment.
Something went wrong with that request. Please try again.