From 2c3f1d1f1cf44d1202fa2dd7afd07d4412ad3baf Mon Sep 17 00:00:00 2001 From: Matt Ray Date: Fri, 19 Dec 2008 03:14:16 +0000 Subject: [PATCH] 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 --- ZenPacks/Imas/BlueCoat/__init__.py | 8 + .../Imas/BlueCoat/datasources/__init__.py | 2 + ZenPacks/Imas/BlueCoat/lib/__init__.py | 1 + ZenPacks/Imas/BlueCoat/migrate/__init__.py | 1 + ZenPacks/Imas/BlueCoat/objects/objects.xml | 1569 +++++++++++++++++ .../ZenPacks.Imas.BlueCoat/placeholder.txt | 0 ZenPacks/Imas/__init__.py | 1 + ZenPacks/__init__.py | 1 + setup.py | 85 + 9 files changed, 1668 insertions(+) create mode 100644 ZenPacks/Imas/BlueCoat/__init__.py create mode 100644 ZenPacks/Imas/BlueCoat/datasources/__init__.py create mode 100644 ZenPacks/Imas/BlueCoat/lib/__init__.py create mode 100644 ZenPacks/Imas/BlueCoat/migrate/__init__.py create mode 100644 ZenPacks/Imas/BlueCoat/objects/objects.xml create mode 100644 ZenPacks/Imas/BlueCoat/skins/ZenPacks.Imas.BlueCoat/placeholder.txt create mode 100644 ZenPacks/Imas/__init__.py create mode 100644 ZenPacks/__init__.py create mode 100644 setup.py diff --git a/ZenPacks/Imas/BlueCoat/__init__.py b/ZenPacks/Imas/BlueCoat/__init__.py new file mode 100644 index 0000000..09daab2 --- /dev/null +++ b/ZenPacks/Imas/BlueCoat/__init__.py @@ -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()) diff --git a/ZenPacks/Imas/BlueCoat/datasources/__init__.py b/ZenPacks/Imas/BlueCoat/datasources/__init__.py new file mode 100644 index 0000000..651585a --- /dev/null +++ b/ZenPacks/Imas/BlueCoat/datasources/__init__.py @@ -0,0 +1,2 @@ +# __init__.py + diff --git a/ZenPacks/Imas/BlueCoat/lib/__init__.py b/ZenPacks/Imas/BlueCoat/lib/__init__.py new file mode 100644 index 0000000..143f486 --- /dev/null +++ b/ZenPacks/Imas/BlueCoat/lib/__init__.py @@ -0,0 +1 @@ +# __init__.py diff --git a/ZenPacks/Imas/BlueCoat/migrate/__init__.py b/ZenPacks/Imas/BlueCoat/migrate/__init__.py new file mode 100644 index 0000000..143f486 --- /dev/null +++ b/ZenPacks/Imas/BlueCoat/migrate/__init__.py @@ -0,0 +1 @@ +# __init__.py diff --git a/ZenPacks/Imas/BlueCoat/objects/objects.xml b/ZenPacks/Imas/BlueCoat/objects/objects.xml new file mode 100644 index 0000000..abb41bc --- /dev/null +++ b/ZenPacks/Imas/BlueCoat/objects/objects.xml @@ -0,0 +1,1569 @@ + + + + + + + + + +SNMP + + +True + + +/Cmd/Fail + + +3 + + +300 + + +1.3.6.1.4.1.3417.2.1.1.1.1.1.5.2 + + +False + + + + +GAUGE + + +True + + + + + + +SNMP + + +True + + +/Cmd/Fail + + +3 + + +300 + + +1.3.6.1.3.25.17.3.2.1.2.0 + + +False + + + + +COUNTER + + +True + + + + + + +SNMP + + +True + + +/Cmd/Fail + + +3 + + +300 + + +1.3.6.1.3.25.17.3.2.1.1.0 + + +False + + + + +COUNTER + + +True + + + + + + +SNMP + + +True + + +/Cmd/Fail + + +3 + + +300 + + +1.3.6.1.3.25.17.3.2.1.4.0 + + +False + + + + +COUNTER + + +True + + + + + + +SNMP + + +True + + +/Cmd/Fail + + +3 + + +300 + + +1.3.6.1.3.25.17.3.2.1.5.0 + + +False + + + + +COUNTER + + +True + + + + + + +SNMP + + +True + + +/Cmd/Fail + + +3 + + +300 + + +1.3.6.1.4.1.3417.2.4.1.1.1.4.1 + + +False + + + + +GAUGE + + +True + + + + + + +SNMP + + +True + + +/Cmd/Fail + + +3 + + +300 + + +1.3.6.1.4.1.3417.2.4.1.1.1.4.2 + + +False + + + + +GAUGE + + +True + + + + + + +SNMP + + +True + + +/Cmd/Fail + + +3 + + +300 + + +1.3.6.1.4.1.3417.2.1.1.1.1.1.5.3 + + +False + + + + +GAUGE + + +True + + + + + + +SNMP + + +True + + +/Cmd/Fail + + +3 + + +300 + + +1.3.6.1.4.1.3417.2.1.1.1.1.1.5.4 + + +False + + + + +GAUGE + + +True + + + + + + +SNMP + + +True + + +/Cmd/Fail + + +3 + + +300 + + +1.3.6.1.4.1.3417.2.1.1.1.1.1.5.5 + + +False + + + + +GAUGE + + +True + + + + + + +SNMP + + +True + + +/Cmd/Fail + + +3 + + +300 + + +1.3.6.1.4.1.3417.2.1.1.1.1.1.5.1 + + +False + + + + +GAUGE + + +True + + + + + + +SNMP + + +True + + +/Cmd/Fail + + +3 + + +300 + + +1.3.6.1.3.25.17.3.1.2.0 + + +False + + + + +GAUGE + + +True + + + + + + +SNMP + + +True + + +/Cmd/Fail + + +3 + + +300 + + +1.3.6.1.3.25.17.3.2.2.2.0 + + +False + + + + +COUNTER + + +True + + + + + + +SNMP + + +True + + +/Cmd/Fail + + +3 + + +300 + + +1.3.6.1.3.25.17.3.2.2.1.0 + + +False + + + + +GAUGE + + +True + + + + + + +SNMP + + +True + + +/Cmd/Fail + + +3 + + +300 + + +1.3.6.1.3.25.17.3.2.2.3.0 + + +False + + + + +COUNTER + + +True + + + + + + +SNMP + + +True + + +/Cmd/Fail + + +3 + + +300 + + +1.3.6.1.3.25.17.3.2.2.4.0 + + +False + + + + +COUNTER + + +True + + + + + + + + +100 + + +500 + + +Percent + + +False + + +False + + +0 + + +100 + + +True + + +1 + + + + +LINE + + +1 + + +False + + +%5.2lf%s + + +${graphPoint/id} + + +-1 + + +CpuUsage_prct + + +AVERAGE + + + + + + +100 + + +500 + + +False + + +False + + +-1 + + +-1 + + +True + + +6 + + + + +1 + + +LINE + + +1 + + +False + + +%5.2lf%s + + +${graphPoint/id} + + +-1 + + +ClientHttpRequests_Requests + + +AVERAGE + + + + +LINE + + +1 + + +False + + +%5.2lf%s + + +${graphPoint/id} + + +-1 + + +ClientHttpHits_hits + + +AVERAGE + + + + + + +100 + + +500 + + +Kbps + + +False + + +False + + +-1 + + +-1 + + +True + + +2 + + + + +LINE + + +1 + + +False + + +%5.2lf%s + + +${graphPoint/id} + + +-1 + + +ClientHttpTrafficInbound_traffic + + +AVERAGE + + + + +1 + + +LINE + + +1 + + +False + + +%5.2lf%s + + +${graphPoint/id} + + +-1 + + +ClientHttpTrafficOutbound_traffic + + +AVERAGE + + + + + + +100 + + +500 + + +Percent + + +False + + +False + + +0 + + +100 + + +True + + + + +LINE + + +1 + + +False + + +%5.2lf%s + + +${graphPoint/id} + + +-1 + + +DiskUsage_prct + + +AVERAGE + + + + + + +100 + + +500 + + +RPM + + +False + + +False + + +-1 + + +-1 + + +True + + +7 + + + + +LINE + + +1 + + +False + + +%5.2lf%s + + +${graphPoint/id} + + +-1 + + +FanSpeed1_rpm + + +AVERAGE + + + + +1 + + +LINE + + +1 + + +False + + +%5.2lf%s + + +${graphPoint/id} + + +-1 + + +FanSpeed2_rpm + + +AVERAGE + + + + +2 + + +LINE + + +1 + + +False + + +%5.2lf%s + + +${graphPoint/id} + + +-1 + + +FanSpeed3_rpm + + +AVERAGE + + + + + + +100 + + +500 + + +False + + +False + + +-1 + + +-1 + + +True + + +4 + + + + +LINE + + +1 + + +False + + +%5.2lf%s + + +${graphPoint/id} + + +-1 + + +ObjectsInCache_cache + + +AVERAGE + + + + + + +100 + + +500 + + +kbps + + +False + + +False + + +-1 + + +-1 + + +True + + +3 + + + + +LINE + + +1 + + +False + + +%5.2lf%s + + +${graphPoint/id} + + +-1 + + +ServerHttpTrafficInbound_traffic + + +AVERAGE + + + + +1 + + +LINE + + +1 + + +False + + +%5.2lf%s + + +${graphPoint/id} + + +-1 + + +ServerHttpTrafficOutbound_traffic + + +AVERAGE + + + + + + +100 + + +500 + + +°C + + +False + + +False + + +-1 + + +-1 + + +True + + +5 + + + + +LINE + + +1 + + +False + + +%5.2lf%s + + +${graphPoint/id} + + +-1 + + +10,/ + + +CPUtemp_temp + + +AVERAGE + + + + +1 + + +LINE + + +1 + + +False + + +%5.2lf%s + + +${graphPoint/id} + + +-1 + + +10,/ + + +MotherboardTemp_temp + + +AVERAGE + + + + + + + + + +Device container for BlueCoat's Proxy AntiVirus appliances. + + +['Device', 'BlueCoatAntiVirus'] + + + + +This template will get all performance metrics for the Bluecoat AntiVirus appliance + + + + +SNMP + + +True + + +/Cmd/Fail + + +3 + + +300 + + +1.3.6.1.4.1.3417.2.10.1.2.0 + + +False + + + + +COUNTER + + +True + + + + + + +SNMP + + +True + + +/Cmd/Fail + + +3 + + +300 + + +1.3.6.1.4.1.3417.2.10.1.1.0 + + +False + + + + +COUNTER + + +True + + + + + + +SNMP + + +True + + +/Cmd/Fail + + +3 + + +300 + + +1.3.6.1.4.1.3417.2.10.1.7.0 + + +False + + + + +GAUGE + + +True + + + + + + +SNMP + + +True + + +/Cmd/Fail + + +3 + + +300 + + +1.3.6.1.4.1.3417.2.10.1.10.0 + + +False + + + + +GAUGE + + +True + + + + + + + + +['LicenceDaysRemaining_Days'] + + +True + + +14 + + +/Perf/Snmp + + +5 + + +0 + + + + + + +100 + + +500 + + +False + + +False + + +-1 + + +-1 + + +True + + +1 + + + + +LINE + + +1 + + +False + + +%5.2lf%s + + +${graphPoint/id} + + +-1 + + +FilesScanned_files + + +AVERAGE + + + + + + +100 + + +500 + + +Days + + +False + + +False + + +-1 + + +-1 + + +True + + + + +DaysRemaining + + +${graphPoint/id} + + + + +1 + + +LINE + + +1 + + +False + + +%5.2lf%s + + +${graphPoint/id} + + +-1 + + +LicenceDaysRemaining_Days + + +AVERAGE + + + + + + +100 + + +500 + + +False + + +False + + +-1 + + +-1 + + +True + + +2 + + + + +LINE + + +1 + + +False + + +%5.2lf%s + + +${graphPoint/id} + + +-1 + + +SlowICAPConnections_number + + +AVERAGE + + + + + + +100 + + +500 + + +False + + +False + + +-1 + + +-1 + + +True + + +3 + + + + +LINE + + +1 + + +False + + +%5.2lf%s + + +${graphPoint/id} + + +-1 + + +DetectedVirus_virus + + +AVERAGE + + + + + + + + + + diff --git a/ZenPacks/Imas/BlueCoat/skins/ZenPacks.Imas.BlueCoat/placeholder.txt b/ZenPacks/Imas/BlueCoat/skins/ZenPacks.Imas.BlueCoat/placeholder.txt new file mode 100644 index 0000000..e69de29 diff --git a/ZenPacks/Imas/__init__.py b/ZenPacks/Imas/__init__.py new file mode 100644 index 0000000..de40ea7 --- /dev/null +++ b/ZenPacks/Imas/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/ZenPacks/__init__.py b/ZenPacks/__init__.py new file mode 100644 index 0000000..de40ea7 --- /dev/null +++ b/ZenPacks/__init__.py @@ -0,0 +1 @@ +__import__('pkg_resources').declare_namespace(__name__) diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..f1c2076 --- /dev/null +++ b/setup.py @@ -0,0 +1,85 @@ +########################################################################### +# +# This program is part of Zenoss Core, an open source monitoring platform. +# Copyright (C) 2008, 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/ +# +########################################################################### + +################################ +# These variables are overwritten by Zenoss when the ZenPack is exported +# or saved. Do not modify them directly here. +NAME = 'ZenPacks.Imas.BlueCoat' +VERSION = '1.0' +AUTHOR = 'Wouter D\'Haeseleer' +LICENSE = '' +NAMESPACE_PACKAGES = ['ZenPacks', 'ZenPacks.Imas'] +PACKAGES = ['ZenPacks', 'ZenPacks.Imas', 'ZenPacks.Imas.BlueCoat'] +INSTALL_REQUIRES = [] +COMPAT_ZENOSS_VERS = '>=2.1' +PREV_ZENPACK_NAME = '' +# STOP_REPLACEMENTS +################################ +# Zenoss will not overwrite any changes you make below here. + +from setuptools import setup, find_packages + +setup( + # This ZenPack metadata should usually be edited with the Zenoss + # ZenPack edit page. Whenever the edit page is submitted it will + # overwrite the values below (the ones it knows about) with new values. + name = NAME, + version = VERSION, + author = AUTHOR, + license = LICENSE, + + # This is the version spec which indicates what versions of Zenoss + # this ZenPack is compatible with + compatZenossVers = COMPAT_ZENOSS_VERS, + + # previousZenPackName is a facility for telling Zenoss that the name + # of this ZenPack has changed. If no ZenPack with the current name is + # installed then a zenpack of this name if installed will be upgraded. + prevZenPackName = PREV_ZENPACK_NAME, + + # Indicate to setuptools which namespace packages the zenpack + # participates in + namespace_packages = NAMESPACE_PACKAGES, + + # Tell setuptools what packages this zenpack provides. + packages = find_packages(), + + # Tell setuptools to figure out for itself which files to include + # in the binary egg when it is built. + include_package_data = True, + + # Tell setuptools what non-python files should also be included + # with the binary egg. + package_data = { + '': ['*.txt'], + NAME: ['objects/*','skins/*/*','services/*', 'reports/*/*', + 'modeler/*/*', 'daemons/*', 'lib/*', 'libexec/*'], + }, + + # Indicate dependencies on other python modules or ZenPacks. This line + # is modified by zenoss when the ZenPack edit page is submitted. Zenoss + # tries to put add/delete the names it manages at the beginning of this + # list, so any manual additions should be added to the end. Things will + # go poorly if this line is broken into multiple lines or modified to + # dramatically. + install_requires = INSTALL_REQUIRES, + + # Every ZenPack egg must define exactly one zenoss.zenpacks entry point + # of this form. + entry_points = { + 'zenoss.zenpacks': '%s = %s' % (NAME, NAME), + }, + + # All ZenPack eggs must be installed in unzipped form. + zip_safe = False, +)