diff --git a/README.md b/README.md index e9e63b2..eedac9b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ Zenpack for monitoring Infoblox appliances. Models in DNS zones and DHCP ranges + +Tested on 4.x 5.x and should even work on 3.x. diff --git a/ZenPacks.community.Infoblox.egg-info/PKG-INFO b/ZenPacks.community.Infoblox.egg-info/PKG-INFO deleted file mode 100644 index 2c3ad10..0000000 --- a/ZenPacks.community.Infoblox.egg-info/PKG-INFO +++ /dev/null @@ -1,10 +0,0 @@ -Metadata-Version: 1.0 -Name: ZenPacks.community.Infoblox -Version: 0.0.1 -Summary: UNKNOWN -Home-page: UNKNOWN -Author: Bryan Irvine -Author-email: UNKNOWN -License: MIT -Description: UNKNOWN -Platform: UNKNOWN diff --git a/ZenPacks.community.Infoblox.egg-info/SOURCES.txt b/ZenPacks.community.Infoblox.egg-info/SOURCES.txt deleted file mode 100644 index cb61b21..0000000 --- a/ZenPacks.community.Infoblox.egg-info/SOURCES.txt +++ /dev/null @@ -1,48 +0,0 @@ -MANIFEST.in -setup.py -ZenPacks/__init__.py -ZenPacks/__init__.pyc -ZenPacks.community.Infoblox.egg-info/PKG-INFO -ZenPacks.community.Infoblox.egg-info/SOURCES.txt -ZenPacks.community.Infoblox.egg-info/dependency_links.txt -ZenPacks.community.Infoblox.egg-info/entry_points.txt -ZenPacks.community.Infoblox.egg-info/namespace_packages.txt -ZenPacks.community.Infoblox.egg-info/not-zip-safe -ZenPacks.community.Infoblox.egg-info/test_info.txt -ZenPacks.community.Infoblox.egg-info/top_level.txt -ZenPacks/community/__init__.py -ZenPacks/community/__init__.pyc -ZenPacks/community/Infoblox/Infoblox.py -ZenPacks/community/Infoblox/InfobloxDHCP.py -ZenPacks/community/Infoblox/InfobloxDHCP.pyc -ZenPacks/community/Infoblox/InfobloxDNS.py -ZenPacks/community/Infoblox/InfobloxDNS.pyc -ZenPacks/community/Infoblox/InfobloxDevice.py -ZenPacks/community/Infoblox/InfobloxDevice.pyc -ZenPacks/community/Infoblox/__init__.py -ZenPacks/community/Infoblox/__init__.pyc -ZenPacks/community/Infoblox/configure.zcml -ZenPacks/community/Infoblox/info.py -ZenPacks/community/Infoblox/info.pyc -ZenPacks/community/Infoblox/interfaces.py -ZenPacks/community/Infoblox/interfaces.pyc -ZenPacks/community/Infoblox/browser/__init__.py -ZenPacks/community/Infoblox/browser/__init__.pyc -ZenPacks/community/Infoblox/browser/configure.zcml -ZenPacks/community/Infoblox/browser/resources/css/placeholder.txt -ZenPacks/community/Infoblox/browser/resources/img/placeholder.txt -ZenPacks/community/Infoblox/browser/resources/js/InfobloxDevice.js -ZenPacks/community/Infoblox/datasources/__init__.py -ZenPacks/community/Infoblox/modeler/__init__.py -ZenPacks/community/Infoblox/modeler/__init__.pyc -ZenPacks/community/Infoblox/modeler/plugins/__init__.py -ZenPacks/community/Infoblox/modeler/plugins/__init__.pyc -ZenPacks/community/Infoblox/modeler/plugins/community/__init__.py -ZenPacks/community/Infoblox/modeler/plugins/community/__init__.pyc -ZenPacks/community/Infoblox/modeler/plugins/community/snmp/InfobloxDHCP.py -ZenPacks/community/Infoblox/modeler/plugins/community/snmp/InfobloxDHCP.pyc -ZenPacks/community/Infoblox/modeler/plugins/community/snmp/InfobloxDNS.py -ZenPacks/community/Infoblox/modeler/plugins/community/snmp/InfobloxDNS.pyc -ZenPacks/community/Infoblox/modeler/plugins/community/snmp/__init__.py -ZenPacks/community/Infoblox/modeler/plugins/community/snmp/__init__.pyc -ZenPacks/community/Infoblox/objects/objects.xml \ No newline at end of file diff --git a/ZenPacks.community.Infoblox.egg-info/dependency_links.txt b/ZenPacks.community.Infoblox.egg-info/dependency_links.txt deleted file mode 100644 index 8b13789..0000000 --- a/ZenPacks.community.Infoblox.egg-info/dependency_links.txt +++ /dev/null @@ -1 +0,0 @@ - diff --git a/ZenPacks.community.Infoblox.egg-info/entry_points.txt b/ZenPacks.community.Infoblox.egg-info/entry_points.txt deleted file mode 100644 index 397ed48..0000000 --- a/ZenPacks.community.Infoblox.egg-info/entry_points.txt +++ /dev/null @@ -1,3 +0,0 @@ -[zenoss.zenpacks] -ZenPacks.community.Infoblox = ZenPacks.community.Infoblox - diff --git a/ZenPacks.community.Infoblox.egg-info/namespace_packages.txt b/ZenPacks.community.Infoblox.egg-info/namespace_packages.txt deleted file mode 100644 index 2c732cd..0000000 --- a/ZenPacks.community.Infoblox.egg-info/namespace_packages.txt +++ /dev/null @@ -1,2 +0,0 @@ -ZenPacks -ZenPacks.community diff --git a/ZenPacks.community.Infoblox.egg-info/not-zip-safe b/ZenPacks.community.Infoblox.egg-info/not-zip-safe deleted file mode 100644 index 8b13789..0000000 --- a/ZenPacks.community.Infoblox.egg-info/not-zip-safe +++ /dev/null @@ -1 +0,0 @@ - diff --git a/ZenPacks.community.Infoblox.egg-info/test_info.txt b/ZenPacks.community.Infoblox.egg-info/test_info.txt deleted file mode 100644 index bfc2b1c..0000000 --- a/ZenPacks.community.Infoblox.egg-info/test_info.txt +++ /dev/null @@ -1,4 +0,0 @@ -test_module = None -test_suite = None -test_loader = None -tests_require = diff --git a/ZenPacks.community.Infoblox.egg-info/top_level.txt b/ZenPacks.community.Infoblox.egg-info/top_level.txt deleted file mode 100644 index 7b6739c..0000000 --- a/ZenPacks.community.Infoblox.egg-info/top_level.txt +++ /dev/null @@ -1 +0,0 @@ -ZenPacks diff --git a/build/lib/ZenPacks/__init__.py b/build/lib/ZenPacks/__init__.py deleted file mode 100644 index de40ea7..0000000 --- a/build/lib/ZenPacks/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__import__('pkg_resources').declare_namespace(__name__) diff --git a/build/lib/ZenPacks/community/Infoblox/Infoblox.py b/build/lib/ZenPacks/community/Infoblox/Infoblox.py deleted file mode 100644 index 1100c27..0000000 --- a/build/lib/ZenPacks/community/Infoblox/Infoblox.py +++ /dev/null @@ -1,34 +0,0 @@ -from Products.ZenModel.DeviceComponent import DeviceComponent -from Products.ZenModel.ManagedEntity import ManagedEntity -from Products.ZenModel.ZenossSecurity import ZEN_CHANGE_DEVICE -from Products.ZenRelations.RelSchema import ToManyCont, ToOne - - -class InfobloxDNS(DeviceComponent, ManagedEntity): - meta_type = portal_type = 'InfobloxInfobloxDNS' - -# _properties = ManagedEntity._properties + ( -# {}, -# ) - - _relations = ManagedEntity._relations + ( - ('bind_zone', ToOne(ToManyCont, - 'ZenPacks.community.Infoblox.InfobloxDevice', - 'bind_zones', - )), - ) - - factory_type_information = ({ - 'actions': ({ - 'id': 'perfConf', - 'name': 'Template', - 'action': 'objTemplates', - 'permissions': (ZEN_CHANGE_DEVICE,), - },), - },) - - def device(self): - return self.bind_zone() - - def getRRDTemplateName(self): - return 'InfobloxDNS' diff --git a/build/lib/ZenPacks/community/Infoblox/InfobloxDHCP.py b/build/lib/ZenPacks/community/Infoblox/InfobloxDHCP.py deleted file mode 100644 index 7732e37..0000000 --- a/build/lib/ZenPacks/community/Infoblox/InfobloxDHCP.py +++ /dev/null @@ -1,38 +0,0 @@ -from Products.ZenModel.DeviceComponent import DeviceComponent -from Products.ZenModel.ManagedEntity import ManagedEntity -from Products.ZenModel.ZenossSecurity import ZEN_CHANGE_DEVICE -from Products.ZenRelations.RelSchema import ToManyCont, ToOne - - -class InfobloxDHCP(DeviceComponent, ManagedEntity): - meta_type = portal_type = 'InfobloxInfobloxDHCP' - - dhcp_netmask = None - dhcp_used_percent = None - - _properties = ManagedEntity._properties + ( - {'id': 'dhcp_netmask', 'type': 'string'}, - {'id': 'dhcp_used_percent','type': 'int'}, - ) - - _relations = ManagedEntity._relations + ( - ('dhcp_network', ToOne(ToManyCont, - 'ZenPacks.community.Infoblox.InfobloxDevice', - 'dhcp_networks', - )), - ) - - factory_type_information = ({ - 'actions': ({ - 'id': 'perfConf', - 'name': 'Template', - 'action': 'objTemplates', - 'permissions': (ZEN_CHANGE_DEVICE,), - },), - },) - - def device(self): - return self.dhcp_network() - - def getRRDTemplateName(self): - return 'InfobloxDHCP' diff --git a/build/lib/ZenPacks/community/Infoblox/InfobloxDNS.py b/build/lib/ZenPacks/community/Infoblox/InfobloxDNS.py deleted file mode 100644 index 2d8bcdc..0000000 --- a/build/lib/ZenPacks/community/Infoblox/InfobloxDNS.py +++ /dev/null @@ -1,36 +0,0 @@ -from Products.ZenModel.DeviceComponent import DeviceComponent -from Products.ZenModel.ManagedEntity import ManagedEntity -from Products.ZenModel.ZenossSecurity import ZEN_CHANGE_DEVICE -from Products.ZenRelations.RelSchema import ToManyCont, ToOne - - -class InfobloxDNS(DeviceComponent, ManagedEntity): - meta_type = portal_type = 'InfobloxInfobloxDNS' - - dns_fqdn = None - - _properties = ManagedEntity._properties + ( - {'id': 'dns_fqdn', 'type': 'string'}, - ) - - _relations = ManagedEntity._relations + ( - ('bind_zone', ToOne(ToManyCont, - 'ZenPacks.community.Infoblox.InfobloxDevice', - 'bind_zones', - )), - ) - - factory_type_information = ({ - 'actions': ({ - 'id': 'perfConf', - 'name': 'Template', - 'action': 'objTemplates', - 'permissions': (ZEN_CHANGE_DEVICE,), - },), - },) - - def device(self): - return self.bind_zone() - - def getRRDTemplateName(self): - return 'InfobloxDNS' diff --git a/build/lib/ZenPacks/community/Infoblox/InfobloxDevice.py b/build/lib/ZenPacks/community/Infoblox/InfobloxDevice.py deleted file mode 100644 index 7c5877e..0000000 --- a/build/lib/ZenPacks/community/Infoblox/InfobloxDevice.py +++ /dev/null @@ -1,21 +0,0 @@ -from Products.ZenRelations.RelSchema import ToManyCont, ToOne -from Products.ZenModel.Device import Device - - -class InfobloxDevice(Device): - bind_zone_count = None - - _properties = Device._properties + ( - {'id': 'bind_zone_count', 'type': 'int'}, - ) - - _relations = Device._relations + ( - ('bind_zones', ToManyCont(ToOne, - 'ZenPacks.community.Infoblox.InfobloxDNS', - 'bind_zone', - )), - ('dhcp_networks', ToManyCont(ToOne, - 'ZenPacks.community.Infoblox.InfobloxDHCP', - 'dhcp_network', - )), - ) diff --git a/build/lib/ZenPacks/community/Infoblox/__init__.py b/build/lib/ZenPacks/community/Infoblox/__init__.py deleted file mode 100644 index 244f4f4..0000000 --- a/build/lib/ZenPacks/community/Infoblox/__init__.py +++ /dev/null @@ -1,5 +0,0 @@ -productNames = ( - 'InfobloxDevice', - 'InfobloxDNS', - 'InfobloxDHCP', -) diff --git a/build/lib/ZenPacks/community/Infoblox/browser/__init__.py b/build/lib/ZenPacks/community/Infoblox/browser/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/build/lib/ZenPacks/community/Infoblox/browser/configure.zcml b/build/lib/ZenPacks/community/Infoblox/browser/configure.zcml deleted file mode 100644 index afedae9..0000000 --- a/build/lib/ZenPacks/community/Infoblox/browser/configure.zcml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - diff --git a/build/lib/ZenPacks/community/Infoblox/browser/resources/css/placeholder.txt b/build/lib/ZenPacks/community/Infoblox/browser/resources/css/placeholder.txt deleted file mode 100644 index e69de29..0000000 diff --git a/build/lib/ZenPacks/community/Infoblox/browser/resources/img/placeholder.txt b/build/lib/ZenPacks/community/Infoblox/browser/resources/img/placeholder.txt deleted file mode 100644 index e69de29..0000000 diff --git a/build/lib/ZenPacks/community/Infoblox/browser/resources/js/InfobloxDevice.js b/build/lib/ZenPacks/community/Infoblox/browser/resources/js/InfobloxDevice.js deleted file mode 100644 index e2ce8cf..0000000 --- a/build/lib/ZenPacks/community/Infoblox/browser/resources/js/InfobloxDevice.js +++ /dev/null @@ -1,148 +0,0 @@ -(function(){ - -var ZC = Ext.ns('Zenoss.component'); - -ZC.registerName( - 'InfobloxInfobloxDNS', - _t('Infoblox BIND Zone'), - _t('Infoblox BIND Zones')); - -ZC.registerName( - 'InfobloxInfobloxDHCP', - _t('Infoblox DHCP Range'), - _t('Infoblox DHCP Ranges')); - -Ext.onReady(function() { - var DEVICE_OVERVIEW_ID = 'deviceoverviewpanel_summary'; - Ext.ComponentMgr.onAvailable(DEVICE_OVERVIEW_ID, function(){ - var overview = Ext.getCmp(DEVICE_OVERVIEW_ID); - - overview.addField({ - name: 'bind_zone_count', - fieldLabel: _t('# BIND Zones') - }); - }); -}); - -ZC.InfobloxInfobloxDHCPPanel = Ext.extend(ZC.ComponentGridPanel, { - constructor: function(config) { - config = Ext.applyIf(config||{}, { - componentType: 'InfobloxInfobloxDHCP', - autoExpandColumn: 'name', - sortInfo: { - field: 'name', - direction: 'ASC' - }, - fields: [ - {name: 'uid'}, - {name: 'name'}, - {name: 'status'}, - {name: 'severity'}, - {name: 'usesMonitorAttribute'}, - {name: 'monitor'}, - {name: 'monitored'}, - {name: 'locking'}, - {name: 'dhcp_netmask'}, - {name: 'dhcp_used_percent'} - ], - columns: [{ - id: 'severity', - dataIndex: 'severity', - header: _t('Events'), - renderer: Zenoss.render.severity, - sortable: true, - width: 50 - },{ - id: 'name', - dataIndex: 'name', - header: _t('Name'), - sortable: true - },{ - id: 'dhcp_netmask', - dataIndex: 'dhcp_netmask', - header: _t('Subnet Mask'), - sortable: true, - width: 120 - },{ - id: 'dhcp_used_percent', - dataIndex: 'dhcp_used_percent', - header: _t('Percent Used'), - sortable: true, - width: 120 - },{ - id: 'monitored', - dataIndex: 'monitored', - header: _t('Monitored'), - renderer: Zenoss.render.checkbox, - sortable: true, - width: 70 - },{ - id: 'locking', - dataIndex: 'locking', - header: _t('Locking'), - renderer: Zenoss.render.locking_icons, - width: 65 - }] - }); - - ZC.InfobloxInfobloxDHCPPanel.superclass.constructor.call( - this, config); - } -}); - -ZC.InfobloxInfobloxDNSPanel = Ext.extend(ZC.ComponentGridPanel, { - constructor: function(config) { - config = Ext.applyIf(config||{}, { - componentType: 'InfobloxInfobloxDNS', - autoExpandColumn: 'name', - sortInfo: { - field: 'name', - direction: 'ASC' - }, - fields: [ - {name: 'uid'}, - {name: 'name'}, - {name: 'status'}, - {name: 'severity'}, - {name: 'usesMonitorAttribute'}, - {name: 'monitor'}, - {name: 'monitored'}, - {name: 'locking'} - ], - columns: [{ - id: 'severity', - dataIndex: 'severity', - header: _t('Events'), - renderer: Zenoss.render.severity, - sortable: true, - width: 50 - },{ - id: 'name', - dataIndex: 'name', - header: _t('Name'), - sortable: true - },{ - id: 'monitored', - dataIndex: 'monitored', - header: _t('Monitored'), - renderer: Zenoss.render.checkbox, - sortable: true, - width: 70 - },{ - id: 'locking', - dataIndex: 'locking', - header: _t('Locking'), - renderer: Zenoss.render.locking_icons, - width: 65 - }] - }); - - ZC.InfobloxInfobloxDNSPanel.superclass.constructor.call( - this, config); - } -}); - -Ext.reg('InfobloxInfobloxDHCPPanel', ZC.InfobloxInfobloxDHCPPanel); -Ext.reg('InfobloxInfobloxDNSPanel', ZC.InfobloxInfobloxDNSPanel); - -})(); diff --git a/build/lib/ZenPacks/community/Infoblox/configure.zcml b/build/lib/ZenPacks/community/Infoblox/configure.zcml deleted file mode 100644 index 1b7fb15..0000000 --- a/build/lib/ZenPacks/community/Infoblox/configure.zcml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - diff --git a/build/lib/ZenPacks/community/Infoblox/datasources/__init__.py b/build/lib/ZenPacks/community/Infoblox/datasources/__init__.py deleted file mode 100644 index 651585a..0000000 --- a/build/lib/ZenPacks/community/Infoblox/datasources/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -# __init__.py - diff --git a/build/lib/ZenPacks/community/Infoblox/info.py b/build/lib/ZenPacks/community/Infoblox/info.py deleted file mode 100644 index 396bc4e..0000000 --- a/build/lib/ZenPacks/community/Infoblox/info.py +++ /dev/null @@ -1,27 +0,0 @@ -from zope.interface import implements - -from Products.Zuul.infos import ProxyProperty -from Products.Zuul.infos.device import DeviceInfo -from Products.Zuul.infos.component import ComponentInfo - -from ZenPacks.community.Infoblox.interfaces import ( - IInfobloxDeviceInfo, - IInfobloxDHCPInfo, - IInfobloxDNSInfo, - ) - -class InfobloxDeviceInfo(DeviceInfo): - implements(IInfobloxDeviceInfo) - - bind_zone_count = ProxyProperty('bind_zone_count') - -class InfobloxDHCPInfo(ComponentInfo): - implements(IInfobloxDHCPInfo) - - dhcp_netmask = ProxyProperty('dhcp_netmask') - dhcp_used_percent = ProxyProperty('dhcp_used_percent') - -class InfobloxDNSInfo(ComponentInfo): - implements(IInfobloxDNSInfo) - - dns_fqdn = ProxyProperty('dns_fqdn') diff --git a/build/lib/ZenPacks/community/Infoblox/interfaces.py b/build/lib/ZenPacks/community/Infoblox/interfaces.py deleted file mode 100644 index 91c106b..0000000 --- a/build/lib/ZenPacks/community/Infoblox/interfaces.py +++ /dev/null @@ -1,14 +0,0 @@ -from Products.Zuul.form import schema -from Products.Zuul.interfaces.device import IDeviceInfo -from Products.Zuul.interfaces.component import IComponentInfo -from Products.Zuul.utils import ZuulMessageFactory as _t - -class IInfobloxDeviceInfo(IDeviceInfo): - bind_zone_count = schema.Int(title=_t('Number of BIND Zones')) - -class IInfobloxDHCPInfo(IComponentInfo): - dhcp_netmask = schema.TextLine(title=_t('DHCP Netmask')) - dhcp_used_percent = schema.TextLine(title=_t('DHCP Percent Used')) - -class IInfobloxDNSInfo(IComponentInfo): - dns_fqdn = schema.TextLine(title=_t('DNS FQDN')) diff --git a/build/lib/ZenPacks/community/Infoblox/modeler/__init__.py b/build/lib/ZenPacks/community/Infoblox/modeler/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/build/lib/ZenPacks/community/Infoblox/modeler/plugins/__init__.py b/build/lib/ZenPacks/community/Infoblox/modeler/plugins/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/build/lib/ZenPacks/community/Infoblox/modeler/plugins/community/__init__.py b/build/lib/ZenPacks/community/Infoblox/modeler/plugins/community/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/build/lib/ZenPacks/community/Infoblox/modeler/plugins/community/snmp/InfobloxDHCP.py b/build/lib/ZenPacks/community/Infoblox/modeler/plugins/community/snmp/InfobloxDHCP.py deleted file mode 100644 index 117f0d4..0000000 --- a/build/lib/ZenPacks/community/Infoblox/modeler/plugins/community/snmp/InfobloxDHCP.py +++ /dev/null @@ -1,37 +0,0 @@ -from Products.DataCollector.plugins.CollectorPlugin import ( - SnmpPlugin, GetTableMap, - ) - - -class InfobloxDHCP(SnmpPlugin): - relname = 'dhcp_networks' - modname = 'ZenPacks.community.Infoblox.InfobloxDHCP' - - snmpGetTableMaps = ( - GetTableMap( - 'ibDHCPSubnetEntryTable', '1.3.6.1.4.1.7779.3.1.1.4.1.1.1', { - '.1': 'ibDHCPSubnetNetworkAddress', - '.2': 'ibDHCPSubnetNetworkMask', - '.3': 'ibDHCPSubnetNetworkPercentUsed', - } - ), - ) - - def process(self, device, results, log): - dhcp_networks = results[1].get('ibDHCPSubnetEntryTable', {}) - rm = self.relMap() - for snmpindex, row in dhcp_networks.items(): - name = row.get('ibDHCPSubnetNetworkAddress') - if not name: - log.warn('Skipping empty zone') - continue - - rm.append(self.objectMap({ - 'id': self.prepId(name), - 'title': name, - 'snmpindex': snmpindex.strip('.'), - 'dhcp_netmask': row.get('ibDHCPSubnetNetworkMask'), - 'dhcp_used_percent': row.get('ibDHCPSubnetNetworkPercentUsed'), - })) - - return rm diff --git a/build/lib/ZenPacks/community/Infoblox/modeler/plugins/community/snmp/InfobloxDNS.py b/build/lib/ZenPacks/community/Infoblox/modeler/plugins/community/snmp/InfobloxDNS.py deleted file mode 100644 index d63ea82..0000000 --- a/build/lib/ZenPacks/community/Infoblox/modeler/plugins/community/snmp/InfobloxDNS.py +++ /dev/null @@ -1,43 +0,0 @@ -from Products.DataCollector.plugins.CollectorPlugin import ( - SnmpPlugin, GetTableMap, - ) - - -class InfobloxDNS(SnmpPlugin): - relname = 'bind_zones' - modname = 'ZenPacks.community.Infoblox.InfobloxDNS' - - snmpGetTableMaps = ( - GetTableMap( - 'ibBindZoneNameTable', '1.3.6.1.4.1.7779.3.1.1.3.1.1.1', { - '.1': 'ibBindZoneName', -# '.2': 'ibBindZoneSuccess', -# '.3': 'ibBindZoneReferral', -# '.4': 'ibBindZoneNxRRset', -# '.5': 'ibBindZoneRecursion', -# '.6': 'ibBindZoneNxDomain', -# '.7': 'ibBindZoneFailure', - } - ), - ) - - def process(self, device, results, log): - bind_zones = results[1].get('ibBindZoneNameTable', {}) - zonelen = len(bind_zones.keys()) - rm = self.relMap() - for snmpindex, row in bind_zones.items(): - name = row.get('ibBindZoneName') - if not name: - log.warn('Skipping empty zone') - continue - - rm.append(self.objectMap({ - 'id': self.prepId(name), - 'title': name, - 'snmpindex': snmpindex.strip('.'), - })) - #rm.append(self.objectMap({ - # 'bind_zone_count': zonelen, - # })) - - return rm diff --git a/build/lib/ZenPacks/community/Infoblox/modeler/plugins/community/snmp/__init__.py b/build/lib/ZenPacks/community/Infoblox/modeler/plugins/community/snmp/__init__.py deleted file mode 100644 index e69de29..0000000 diff --git a/build/lib/ZenPacks/community/Infoblox/objects/objects.xml b/build/lib/ZenPacks/community/Infoblox/objects/objects.xml deleted file mode 100644 index 3a63297..0000000 --- a/build/lib/ZenPacks/community/Infoblox/objects/objects.xml +++ /dev/null @@ -1,2418 +0,0 @@ - - - - - -['Device', 'InfobloxDevice'] - - -ZenPacks.community.Infoblox.InfobloxDevice - - -['zenoss.snmp.NewDeviceMap', 'zenoss.snmp.DeviceMap', 'HPDeviceMap', 'DellDeviceMap', 'zenoss.snmp.InterfaceMap', 'zenoss.snmp.RouteMap', 'zenoss.snmp.IpServiceMap', 'zenoss.snmp.HRFileSystemMap', 'zenoss.snmp.HRSWRunMap', 'zenoss.snmp.CpuMap', 'HPCPUMap', 'DellCPUMap', 'DellPCIMap', 'community.snmp.InfobloxDHCP', 'community.snmp.InfobloxDNS'] - - - - -ZenPacks.community.Infoblox.InfobloxDevice - - - - -SNMP - - -True - - -/Cmd/Fail - - -3 - - -300 - - -1.3.6.1.4.1.7779.3.1.1.4.1.1.1.3 - - -False - - -Auto - - - - -GAUGE - - -True - - - - - - - - -/Perf/Snmp - - -3 - - -['bDHCPSubnetNetworkPercentUsed_bDHCPSubnetNetworkPercentUsed'] - - -True - - -95 - - -0 - - - - - - -100 - - -500 - - -percent - - -False - - -False - - -0 - - -100 - - -True - - -0 - - - - -0 - - -High DHCP Usage - - -${graphPoint/id} - - - - -1 - - -LINE - - -2 - - -False - - -%3.0lf%% - - -${graphPoint/id} - - --1 - - -bDHCPSubnetNetworkPercentUsed_bDHCPSubnetNetworkPercentUsed - - -AVERAGE - - - - - - - - -ZenPacks.community.Infoblox.InfobloxDevice - - - - -SNMP - - -True - - -/Cmd/Fail - - -3 - - -300 - - -1.3.6.1.4.1.7779.3.1.1.3.1.1.1.7 - - -False - - -Auto - - - - -DERIVE - - -True - - -0 - - - - - - -SNMP - - -True - - -/Cmd/Fail - - -3 - - -300 - - -1.3.6.1.4.1.7779.3.1.1.3.1.1.1.6 - - -False - - -Auto - - - - -DERIVE - - -True - - -0 - - - - - - -SNMP - - -True - - -/Cmd/Fail - - -3 - - -300 - - -1.3.6.1.4.1.7779.3.1.1.3.1.1.1.4 - - -False - - -Auto - - - - -DERIVE - - -True - - -0 - - - - - - -SNMP - - -True - - -/Cmd/Fail - - -3 - - -300 - - -1.3.6.1.4.1.7779.3.1.1.3.1.1.1.5 - - -False - - -Auto - - - - -DERIVE - - -True - - -0 - - - - - - -SNMP - - -True - - -/Cmd/Fail - - -3 - - -300 - - -1.3.6.1.4.1.7779.3.1.1.3.1.1.1.3 - - -False - - -Auto - - - - -DERIVE - - -True - - -0 - - - - - - -SNMP - - -True - - -/Cmd/Fail - - -3 - - -300 - - -1.3.6.1.4.1.7779.3.1.1.3.1.1.1.2 - - -False - - -Auto - - - - -DERIVE - - -True - - -0 - - - - - - - - -100 - - -500 - - -queries per min - - -False - - -False - - --1 - - --1 - - -True - - -0 - - - - -5 - - -LINE - - -1 - - -False - - -%5.2lf%s - - -${graphPoint/id} - - --1 - - -60,* - - -ibBindZoneFailure_ibBindZoneFailure - - -AVERAGE - - - - -4 - - -LINE - - -1 - - -False - - -%5.2lf%s - - -${graphPoint/id} - - --1 - - -60,* - - -ibBindZoneNxDomain_ibBindZoneNxDomain - - -AVERAGE - - - - -2 - - -LINE - - -1 - - -False - - -%5.2lf%s - - -${graphPoint/id} - - --1 - - -60,* - - -ibBindZoneNxRRset_ibBindZoneNxRRset - - -AVERAGE - - - - -3 - - -LINE - - -1 - - -False - - -%5.2lf%s - - -${graphPoint/id} - - --1 - - -60,* - - -ibBindZoneRecursion_ibBindZoneRecursion - - -AVERAGE - - - - -1 - - -LINE - - -1 - - -False - - -%5.2lf%s - - -${graphPoint/id} - - --1 - - -60,* - - -ibBindZoneReferral_ibBindZoneReferral - - -AVERAGE - - - - -0 - - -LINE - - -1 - - -False - - -%5.2lf%s - - -${graphPoint/id} - - --1 - - -60,* - - -ibBindZoneSuccess_ibBindZoneSuccess - - -AVERAGE - - - - - - - - -Products.ZenModel.Device - - - - -SNMP - - -True - - -/Cmd/Fail - - -3 - - -300 - - -1.3.6.1.4.1.7779.3.1.1.3.1.3.2.0 - - -False - - -Auto - - - - -DERIVE - - -True - - -0 - - - - - - -SNMP - - -True - - -/Cmd/Fail - - -3 - - -300 - - -1.3.6.1.4.1.7779.3.1.1.3.1.3.4.0 - - -False - - -Auto - - - - -DERIVE - - -True - - -0 - - - - - - -SNMP - - -True - - -/Cmd/Fail - - -3 - - -300 - - -1.3.6.1.4.1.7779.3.1.1.3.1.3.3.0 - - -False - - -Auto - - - - -DERIVE - - -True - - -0 - - - - - - -SNMP - - -True - - -/Cmd/Fail - - -3 - - -300 - - -1.3.6.1.4.1.7779.3.1.1.3.1.3.2.0 - - -False - - -Auto - - - - -DERIVE - - -True - - -0 - - - - - - -SNMP - - -True - - -/Cmd/Fail - - -3 - - -300 - - -1.3.6.1.4.1.7779.3.1.1.4.1.5.4.0 - - -False - - -Auto - - - - -DERIVE - - -True - - -0 - - - - - - -SNMP - - -True - - -/Cmd/Fail - - -3 - - -300 - - -1.3.6.1.4.1.7779.3.1.1.4.1.5.2.0 - - -False - - -Auto - - - - -DERIVE - - -True - - -0 - - - - - - -SNMP - - -True - - -/Cmd/Fail - - -3 - - -300 - - -1.3.6.1.4.1.7779.3.1.1.4.1.5.1.0 - - -False - - -Auto - - - - -DERIVE - - -True - - -0 - - - - - - -SNMP - - -True - - -/Cmd/Fail - - -3 - - -300 - - -1.3.6.1.4.1.7779.3.1.1.4.1.5.3.0 - - -False - - -Auto - - - - -DERIVE - - -True - - -0 - - - - - - -SNMP - - -True - - -/Cmd/Fail - - -3 - - -300 - - -1.3.6.1.4.1.7779.3.1.1.4.1.5.8.0 - - -False - - -Auto - - - - -DERIVE - - -True - - -0 - - - - - - -SNMP - - -True - - -/Cmd/Fail - - -3 - - -300 - - -1.3.6.1.4.1.7779.3.1.1.4.1.5.6.0 - - -False - - -Auto - - - - -DERIVE - - -True - - -0 - - - - - - -SNMP - - -True - - -/Cmd/Fail - - -3 - - -300 - - -1.3.6.1.4.1.7779.3.1.1.4.1.5.5.0 - - -False - - -Auto - - - - -DERIVE - - -True - - -0 - - - - - - -SNMP - - -True - - -/Cmd/Fail - - -3 - - -300 - - -1.3.6.1.4.1.7779.3.1.1.4.1.5.7.0 - - -False - - -Auto - - - - -DERIVE - - -True - - -0 - - - - - - -SNMP - - -True - - -/Cmd/Fail - - -3 - - -300 - - -1.3.6.1.4.1.7779.3.1.1.4.1.4.0 - - -False - - -Auto - - - - -GAUGE - - -True - - - - - - -SNMP - - -True - - -/Cmd/Fail - - -3 - - -300 - - -1.3.6.1.4.1.7779.3.1.1.4.1.3.5.0 - - -False - - -Auto - - - - -DERIVE - - -True - - -0 - - - - - - -SNMP - - -True - - -/Cmd/Fail - - -3 - - -300 - - -1.3.6.1.4.1.7779.3.1.1.4.1.3.7.0 - - -False - - -Auto - - - - -DERIVE - - -True - - -0 - - - - - - -SNMP - - -True - - -/Cmd/Fail - - -3 - - -300 - - -1.3.6.1.4.1.7779.3.1.1.4.1.3.1.0 - - -False - - -Auto - - - - -DERIVE - - -True - - -0 - - - - - - -SNMP - - -True - - -/Cmd/Fail - - -3 - - -300 - - -1.3.6.1.4.1.7779.3.1.1.4.1.3.8.0 - - -False - - -Auto - - - - -DERIVE - - -True - - -0 - - - - - - -SNMP - - -True - - -/Cmd/Fail - - -3 - - -300 - - -1.3.6.1.4.1.7779.3.1.1.4.1.3.6.0 - - -False - - -Auto - - - - -DERIVE - - -True - - -0 - - - - - - -SNMP - - -True - - -/Cmd/Fail - - -3 - - -300 - - -1.3.6.1.4.1.7779.3.1.1.4.1.3.4.0 - - -False - - -Auto - - - - -DERIVE - - -True - - -0 - - - - - - -SNMP - - -True - - -/Cmd/Fail - - -3 - - -300 - - -1.3.6.1.4.1.7779.3.1.1.4.1.3.9.0 - - -False - - -Auto - - - - -DERIVE - - -True - - -0 - - - - - - -SNMP - - -True - - -/Cmd/Fail - - -3 - - -300 - - -1.3.6.1.4.1.7779.3.1.1.4.1.3.3.0 - - -False - - -Auto - - - - -DERIVE - - -True - - -0 - - - - - - -SNMP - - -True - - -/Cmd/Fail - - -3 - - -300 - - -1.3.6.1.4.1.7779.3.1.1.4.1.3.2.0 - - -False - - -Auto - - - - -DERIVE - - -True - - -0 - - - - - - - - -/Perf/Snmp - - -3 - - -['ibDHCPDDNSAvgLatency5_ibDHCPDDNSAvgLatency5'] - - -True - - -100 - - -0 - - - - -/Perf/Snmp - - -3 - - -['ibDDNSUpdateFailure_ibDDNSUpdateFailure'] - - -True - - -100 - - -0 - - - - -/Perf/Snmp - - -3 - - -['ibDHCPDDNSTimeoutCount5_ibDHCPDDNSTimeoutCount5'] - - -True - - -100 - - -0 - - - - - - -100 - - -500 - - -False - - -False - - --1 - - --1 - - -True - - -2 - - - - -0 - - -AREA - - -1 - - -False - - -%5.2lf%s - - -${graphPoint/id} - - --1 - - -ibDhcpDeferredQueueSize_ibDhcpDeferredQueueSize - - -AVERAGE - - - - - - -100 - - -500 - - -microseconds - - -False - - -False - - --1 - - --1 - - -True - - -3 - - - - -4 - - -LINE - - -1 - - -False - - -%5.2lf%s - - -${graphPoint/id} - - --1 - - -ibDHCPDDNSAvgLatency1440_ibDHCPDDNSAvgLatency1440 - - -AVERAGE - - - - -2 - - -LINE - - -1 - - -False - - -%5.2lf%s - - -${graphPoint/id} - - --1 - - -ibDHCPDDNSAvgLatency15_ibDHCPDDNSAvgLatency15 - - -AVERAGE - - - - -1 - - -LINE - - -1 - - -False - - -%5.2lf%s - - -${graphPoint/id} - - --1 - - -ibDHCPDDNSAvgLatency5_ibDHCPDDNSAvgLatency5 - - -AVERAGE - - - - -3 - - -LINE - - -1 - - -False - - -%5.2lf%s - - -${graphPoint/id} - - --1 - - -ibDHCPDDNSAvgLatency60_ibDHCPDDNSAvgLatency60 - - -AVERAGE - - - - -0 - - -High Avg Latency - - -${graphPoint/id} - - - - - - -100 - - -500 - - -microseconds - - -False - - -False - - --1 - - --1 - - -True - - -4 - - - - -4 - - -LINE - - -1 - - -False - - -%5.2lf%s - - -${graphPoint/id} - - --1 - - -60,* - - -ibDHCPDDNSTimeoutCount1440_ibDHCPDDNSTimeoutCount1440 - - -AVERAGE - - - - -2 - - -LINE - - -1 - - -False - - -%5.2lf%s - - -${graphPoint/id} - - --1 - - -60,* - - -ibDHCPDDNSTimeoutCount15_ibDHCPDDNSTimeoutCount15 - - -AVERAGE - - - - -1 - - -LINE - - -1 - - -False - - -%5.2lf%s - - -${graphPoint/id} - - --1 - - -60,* - - -ibDHCPDDNSTimeoutCount5_ibDHCPDDNSTimeoutCount5 - - -AVERAGE - - - - -3 - - -LINE - - -1 - - -False - - -%5.2lf%s - - -${graphPoint/id} - - --1 - - -60,* - - -ibDHCPDDNSTimeoutCount60_ibDHCPDDNSTimeoutCount60 - - -AVERAGE - - - - -0 - - -High Timeouts - - -${graphPoint/id} - - - - - - -100 - - -500 - - -count per min - - -False - - -False - - --1 - - --1 - - -True - - -1 - - - - -4 - - -LINE - - -1 - - -False - - -%5.2lf%s - - -${graphPoint/id} - - --1 - - -60,* - - -ibDhcpTotalNoOfAcks_ibDhcpTotalNoOfAcks - - -AVERAGE - - - - -6 - - -LINE - - -1 - - -False - - -%5.2lf%s - - -${graphPoint/id} - - --1 - - -60,* - - -ibDhcpTotalNoOfDeclines_ibDhcpTotalNoOfDeclines - - -AVERAGE - - - - -0 - - -LINE - - -1 - - -False - - -%5.2lf%s - - -${graphPoint/id} - - --1 - - -60,* - - -ibDhcpTotalNoOfDiscovers_ibDhcpTotalNoOfDiscovers - - -AVERAGE - - - - -7 - - -LINE - - -1 - - -False - - -%5.2lf%s - - -${graphPoint/id} - - --1 - - -60,* - - -ibDhcpTotalNoOfInforms_ibDhcpTotalNoOfInforms - - -AVERAGE - - - - -5 - - -LINE - - -1 - - -False - - -%5.2lf%s - - -${graphPoint/id} - - --1 - - -60,* - - -ibDhcpTotalNoOfNacks_ibDhcpTotalNoOfNacks - - -AVERAGE - - - - -3 - - -LINE - - -1 - - -False - - -%5.2lf%s - - -${graphPoint/id} - - --1 - - -60,* - - -ibDhcpTotalNoOfOffers_ibDhcpTotalNoOfOffers - - -AVERAGE - - - - -8 - - -LINE - - -1 - - -False - - -%5.2lf%s - - -${graphPoint/id} - - --1 - - -60,* - - -ibDhcpTotalNoOfOthers_ibDhcpTotalNoOfOthers - - -AVERAGE - - - - -2 - - -LINE - - -1 - - -False - - -%5.2lf%s - - -${graphPoint/id} - - --1 - - -60,* - - -ibDhcpTotalNoOfReleases_ibDhcpTotalNoOfReleases - - -AVERAGE - - - - -1 - - -LINE - - -1 - - -False - - -%5.2lf%s - - -${graphPoint/id} - - --1 - - -60,* - - -ibDhcpTotalNoOfRequests_ibDhcpTotalNoOfRequests - - -AVERAGE - - - - - - -100 - - -500 - - -updates / min - - -False - - -False - - --1 - - --1 - - -True - - -0 - - - - -2 - - -LINE - - -1 - - -False - - -%5.2lf%s - - -${graphPoint/id} - - --1 - - -60,* - - -ibDDNSUpdateFailure_ibDDNSUpdateFailure - - -AVERAGE - - - - -0 - - -High Failures - - -${graphPoint/id} - - - - -4 - - -LINE - - -1 - - -False - - -%5.2lf%s - - -${graphPoint/id} - - --1 - - -ibDDNSUpdatePrerequisiteR eject_ibDDNSUpdatePrerequisiteR eject - - -AVERAGE - - - - -3 - - -LINE - - -1 - - -False - - -%5.2lf%s - - -${graphPoint/id} - - --1 - - -60,* - - -ibDDNSUpdateReject_ibDDNSUpdateReject - - -AVERAGE - - - - -1 - - -LINE - - -1 - - -False - - -%5.2lf%s - - -${graphPoint/id} - - --1 - - -60,* - - -ibDDNSUpdateSuccess_ibDDNSUpdateSuccess - - -AVERAGE - - - - - - - - - diff --git a/build/lib/ZenPacks/community/__init__.py b/build/lib/ZenPacks/community/__init__.py deleted file mode 100644 index de40ea7..0000000 --- a/build/lib/ZenPacks/community/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__import__('pkg_resources').declare_namespace(__name__) diff --git a/src/placeholder.txt b/src/placeholder.txt deleted file mode 100644 index e69de29..0000000