Zenoss Developer's Guide Copyright © 2010 Zenoss, Inc., 275 West St

Total Page:16

File Type:pdf, Size:1020Kb

Zenoss Developer's Guide Copyright © 2010 Zenoss, Inc., 275 West St Zenoss Developer's Guide Copyright © 2010 Zenoss, Inc., 275 West St. Suite 204, Annapolis, MD 21401, U.S.A. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http:// creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA. The Zenoss logo is a registered trademark of Zenoss, Inc. Zenoss and Open Enterprise Management are trademarks of Zenoss, Inc. in the U.S. and other countries. Flash is a registered trademark of Adobe Systems Incorporated. Java is a registered trademark of Oracle and/or its affiliates. Other names may be trademarks of their respective owners. Linux is a registered trademark of Linus Torvalds. Oracle and the Oracle logo are registered trademarks of the Oracle Corporation. SNMP Informant is a trademark of Garth K. Williams (Informant Systems, Inc.). Sybase is a registered trademark of Sybase, Inc. Tomcat is a trademark of the Apache Software Foundation. Windows is a registered trademark of Microsoft Corporation in the United States and other countries. All other companies and products mentioned are trademarks and property of their respective owners. Part Number: 08-102010-3.0-v01 1. Introduction ............................................................................................................................................. 1 1.1. Overview ...................................................................................................................................... 1 1.1.1. Key Tenets ........................................................................................................................ 1 1.2. Architecture and Technologies ....................................................................................................... 2 1.2.1. User Layer ......................................................................................................................... 3 1.2.2. Data Layer ......................................................................................................................... 3 1.2.3. Process Layer .................................................................................................................... 4 1.2.4. Collection Layer ................................................................................................................. 4 2. Getting Started ........................................................................................................................................ 5 2.1. Working with the Source Code ...................................................................................................... 5 2.1.1. Getting the Source Code .................................................................................................... 5 2.1.1.1. Getting Subversion for the Appliance ........................................................................ 5 2.1.2. Keeping Code Updated ...................................................................................................... 6 2.1.3. Getting Patches ................................................................................................................. 6 2.1.4. Style Guidelines ................................................................................................................. 6 2.1.4.1. Docstrings ............................................................................................................... 6 2.1.5. Generating Diffs for new Fixes ............................................................................................ 8 2.1.6. Submitting a Fix ................................................................................................................. 8 2.2. Development Toolchain Requirements ........................................................................................... 8 2.2.1. Appliance ........................................................................................................................... 8 2.3. Programming Techniques ............................................................................................................ 10 2.3.1. Calling Methods Using REST ............................................................................................ 10 2.3.1.1. How to Call Methods Using REST .......................................................................... 10 2.3.1.2. Sending an Event .................................................................................................. 11 2.3.2. Miscellaneous Notes ......................................................................................................... 13 2.3.2.1. pkg_resources ....................................................................................................... 13 2.3.2.2. urllib2 Workarounds ............................................................................................ 13 2.4. zendmd: Command-line Access to the Device Management Database (DMD) ................................. 14 2.5. Programming Documentation ....................................................................................................... 16 2.5.1. Python ............................................................................................................................. 16 2.5.2. Zenoss API ...................................................................................................................... 16 2.5.3. Other Resources .............................................................................................................. 16 2.5.4. Contributing to the Documentation .................................................................................... 16 3. ZenPacks .............................................................................................................................................. 17 3.1. Overview .................................................................................................................................... 17 3.2. Creating a ZenPack .................................................................................................................... 17 3.2.1. ZenPack Names ............................................................................................................... 17 3.2.2. Specifying Dependencies .................................................................................................. 18 3.2.3. Locating ZenPack Source Outside of Zenoss ..................................................................... 18 3.2.4. Community ZenPack Subversion Access ........................................................................... 18 3.3. ZenPack Structure and Contents ................................................................................................. 18 3.4. Developing the ZenPack ............................................................................................................. 21 3.4.1. Base ZenPack Class ........................................................................................................ 21 3.4.2. Storing Objects in the ZODB ............................................................................................. 21 3.4.3. Providing DataSource classes ........................................................................................... 21 3.4.4. Monitoring Template Checklist .......................................................................................... 22 3.4.4.1. Data Sources ........................................................................................................ 22 3.4.4.2. Data Points ........................................................................................................... 22 3.4.4.3. Thresholds ............................................................................................................ 23 3.4.4.4. Graph Definitions ................................................................................................... 23 3.4.4.5. Graph Points ......................................................................................................... 23 3.4.5. Providing Performance Collector Plugins ........................................................................... 23 3.4.6. Referencing Collector Plugins in ZenPacks ........................................................................ 23 3.4.7. Providing Daemons .......................................................................................................... 24 iii Zenoss Developer's Guide 3.4.8. setuptools and the zenpacksupport ................................................................................... 24 3.5. Building and Distributing ZenPacks .............................................................................................. 24 3.5.1. Migrating between versions ............................................................................................... 25 3.5.2. Converting older ZenPacks to ZenPack eggs ..................................................................... 25 3.6. Development Mode ..................................................................................................................... 25 3.6.1. Source ZenPacks ............................................................................................................. 25 3.6.2. Converting .egg Files to Development Mode ...................................................................... 25 3.7. Where to Get More Information
Recommended publications
  • Event Management for Zenoss Core 4
    Event Management for Zenoss Core 4 January 2013 Jane Curry Skills 1st Ltd www.skills-1st.co.uk Jane Curry Skills 1st Ltd 2 Cedar Chase Taplow Maidenhead SL6 0EU 01628 782565 [email protected] www.skills-1st.co.uk Synopsis This paper is intended as an intermediate-level discussion of the Zenoss event system in Zenoss Core 4. The event architecture has changed dramatically in Zenoss 4 from previous versions. It is assumed that the reader is already familiar with the Zenoss Event Console and with basic navigation around the Zenoss Graphical User Interface (GUI). It looks in some detail at the architecture behind the Zenoss event system ± the daemons and how they are inter-related ± and it looks at the structure of a Zenoss event and the event life cycle. Zenoss can receive events from many sources in addition to Zenoss itself. Events from Windows, Unix syslogs and Simple Networks Management Protocol (SNMP) TRAPs are all examined in detail. The process by which an incoming event is converted into a particular Zenoss event is known as event mapping and there are a number of different possible techniques for performing that conversion. These will all be explored along with the creation of new event classes. Once an event has been received, classified and stored by Zenoss, automation may be required. Alerting to users by email and page is discussed, as are background actions to run commands or generate TRAPs. Logging and debugging techniques are discussed in some details as is the JSON API for extracting data out of Zenoss.
    [Show full text]
  • Zenoss Core Release Notes
    Zenoss Core Release Notes Release 5.2.0 Zenoss, Inc. www.zenoss.com Zenoss Core Release Notes Copyright © 2016 Zenoss, Inc. All rights reserved. Zenoss and the Zenoss logo are trademarks or registered trademarks of Zenoss, Inc., in the United States and other countries. All other trademarks, logos, and service marks are the property of Zenoss or other third parties. Use of these marks is prohibited without the express written consent of Zenoss, Inc., or the third-party owner. Amazon Web Services, AWS, and EC2 are trademarks of Amazon.com, Inc. or its affiliates in the United States and/or other countries. Flash is a registered trademark of Adobe Systems Incorporated. Oracle, the Oracle logo, Java, and MySQL are registered trademarks of the Oracle Corporation and/or its affiliates. Linux is a registered trademark of Linus Torvalds. RabbitMQ is a trademark of Pivotal Software, Inc. SNMP Informant is a trademark of Garth K. Williams (Informant Systems, Inc.). Sybase is a registered trademark of Sybase, Inc. Tomcat is a trademark of the Apache Software Foundation. VMware is a registered trademark or trademark of VMware, Inc. in the United States and/or other jurisdictions. Windows is a registered trademark of Microsoft Corporation in the United States and other countries. All other companies and products mentioned are trademarks and property of their respective owners. Part Number: 1001.16.335.1 Zenoss, Inc. 11305 Four Points Drive Bldg 1 - Suite 300 Austin, Texas 78726 2 About this document About this document Zenoss Core Release Notes contains important information about minor and micro releases of Zenoss Core.
    [Show full text]
  • Zenoss Core Release Notes
    Zenoss Core Release Notes Release 5.2.2 Zenoss, Inc. www.zenoss.com Zenoss Core Release Notes Copyright © 2017 Zenoss, Inc. All rights reserved. Zenoss and the Zenoss logo are trademarks or registered trademarks of Zenoss, Inc., in the United States and other countries. All other trademarks, logos, and service marks are the property of Zenoss or other third parties. Use of these marks is prohibited without the express written consent of Zenoss, Inc., or the third-party owner. Amazon Web Services, AWS, and EC2 are trademarks of Amazon.com, Inc. or its affiliates in the United States and/or other countries. Flash is a registered trademark of Adobe Systems Incorporated. Oracle, the Oracle logo, Java, and MySQL are registered trademarks of the Oracle Corporation and/or its affiliates. Linux is a registered trademark of Linus Torvalds. RabbitMQ is a trademark of Pivotal Software, Inc. SNMP Informant is a trademark of Garth K. Williams (Informant Systems, Inc.). Sybase is a registered trademark of Sybase, Inc. Tomcat is a trademark of the Apache Software Foundation. VMware is a registered trademark or trademark of VMware, Inc. in the United States and/or other jurisdictions. Windows is a registered trademark of Microsoft Corporation in the United States and other countries. All other companies and products mentioned are trademarks and property of their respective owners. Part Number: 1001.17.074 Zenoss, Inc. 11305 Four Points Drive Bldg 1 - Suite 300 Austin, Texas 78726 2 About this document About this document Zenoss Core Release Notes contains important information about minor and micro releases of Zenoss Core.
    [Show full text]
  • Zenoss Core Release Notes
    Zenoss Core Release Notes Release 5.3.2 Zenoss, Inc. www.zenoss.com Zenoss Core Release Notes Copyright © 2017 Zenoss, Inc. All rights reserved. Zenoss, Own IT, and the Zenoss logo are trademarks or registered trademarks of Zenoss, Inc., in the United States and other countries. All other trademarks, logos, and service marks are the property of Zenoss or other third parties. Use of these marks is prohibited without the express written consent of Zenoss, Inc., or the third-party owner. Amazon Web Services, AWS, and EC2 are trademarks of Amazon.com, Inc. or its affiliates in the United States and/or other countries. Flash is a registered trademark of Adobe Systems Incorporated. Oracle, the Oracle logo, Java, and MySQL are registered trademarks of the Oracle Corporation and/or its affiliates. Linux is a registered trademark of Linus Torvalds. RabbitMQ is a trademark of Pivotal Software, Inc. SNMP Informant is a trademark of Garth K. Williams (Informant Systems, Inc.). Sybase is a registered trademark of Sybase, Inc. Tomcat is a trademark of the Apache Software Foundation. VMware is a registered trademark or trademark of VMware, Inc. in the United States and/or other jurisdictions. Windows is a registered trademark of Microsoft Corporation in the United States and other countries. All other companies and products mentioned are trademarks and property of their respective owners. Part Number: 1001.17.268 Zenoss, Inc. 11305 Four Points Drive Bldg 1 - Suite 300 Austin, Texas 78726 2 About this document About this document Zenoss Core Release Notes contains important information about minor and micro releases of Zenoss Core.
    [Show full text]
  • Zenoss Core Administration Guide
    Zenoss Core Administration Guide Release 5.1.x Zenoss, Inc. www.zenoss.com Zenoss Core Administration Guide Copyright © 2016 Zenoss, Inc. All rights reserved. Zenoss and the Zenoss logo are trademarks or registered trademarks of Zenoss, Inc., in the United States and other countries. All other trademarks, logos, and service marks are the property of Zenoss or other third parties. Use of these marks is prohibited without the express written consent of Zenoss, Inc., or the third-party owner. Amazon Web Services, AWS, and EC2 are trademarks of Amazon.com, Inc. or its affiliates in the United States and/or other countries. Flash is a registered trademark of Adobe Systems Incorporated. Oracle, the Oracle logo, Java, and MySQL are registered trademarks of the Oracle Corporation and/or its affiliates. Linux is a registered trademark of Linus Torvalds. RabbitMQ is a trademark of Pivotal Software, Inc. SNMP Informant is a trademark of Garth K. Williams (Informant Systems, Inc.). Sybase is a registered trademark of Sybase, Inc. Tomcat is a trademark of the Apache Software Foundation. VMware is a registered trademark or trademark of VMware, Inc. in the United States and/or other jurisdictions. Windows is a registered trademark of Microsoft Corporation in the United States and other countries. All other companies and products mentioned are trademarks and property of their respective owners. Part Number: 1011.16.319 Zenoss, Inc. 11305 Four Points Drive Bldg 1 - Suite 300 Austin, Texas 78726 2 Contents About this guide.................................................................................................................
    [Show full text]
  • Cloud Management with Open Source Tools Manish S
    Volume 4, No. 6, May 2013 (Special Issue) International Journal of Advanced Research in Computer Science REVIEW ARTICAL Available Online at www.ijarcs.info Cloud Management with Open Source Tools Manish S. Thakare*, Akash T. Kuratkar Dept.of computer sci. & engineering, jawaharlal darda insti.of engineering & tech. yavatmal-445001,India [email protected]*, [email protected] Abstract -Cloud computing has gained a lot of hype in the current world of I.T. Cloud computing is said to be the next big thing in the computer world after the internet. Cloud computing is the use of the Internet for the tasks performed on the computer and it is visualized as the next- generation architecture of IT Enterprise. The ‘Cloud’ represents the internet. Cloud computing is related to several technologies and the convergence of various technologies has emerged to be called cloud computing.Open source systems refer to software systems whose source code is available, allowing for immediate incorporation of improvements and adaptations of the system by its users. This seminar reports on an evaluation of open source management tools for cloud computing. Cloud computing is not a magical solution, planning and management of resources and the cloud in itself is pivotal. In this report, we compare and evaluate a number of open source tools used in the industry to manage and automate the cloud. We evaluate provisioning tools, orchestration tools, configuration tools and monitoring tools. Keyword: management of cloud with open source tools. I. INTRODUCTION Internet protocols, and it typically involves provisioning of dynamically scalable and often virtualized resources. It is a Cloud computing is the delivery of computing as a byproduct and consequence of the ease-of-access to remote service rather than a product, whereby shared resources, computing sites provided by the Internet.
    [Show full text]
  • Zenoss Core Upgrade Guide
    Zenoss Core Upgrade Guide Release 5.2.4 Zenoss, Inc. www.zenoss.com Zenoss Core Upgrade Guide Copyright © 2017 Zenoss, Inc. All rights reserved. Zenoss and the Zenoss logo are trademarks or registered trademarks of Zenoss, Inc., in the United States and other countries. All other trademarks, logos, and service marks are the property of Zenoss or other third parties. Use of these marks is prohibited without the express written consent of Zenoss, Inc., or the third-party owner. Amazon Web Services, AWS, and EC2 are trademarks of Amazon.com, Inc. or its affiliates in the United States and/or other countries. Flash is a registered trademark of Adobe Systems Incorporated. Oracle, the Oracle logo, Java, and MySQL are registered trademarks of the Oracle Corporation and/or its affiliates. Linux is a registered trademark of Linus Torvalds. RabbitMQ is a trademark of Pivotal Software, Inc. SNMP Informant is a trademark of Garth K. Williams (Informant Systems, Inc.). Sybase is a registered trademark of Sybase, Inc. Tomcat is a trademark of the Apache Software Foundation. VMware is a registered trademark or trademark of VMware, Inc. in the United States and/or other jurisdictions. Windows is a registered trademark of Microsoft Corporation in the United States and other countries. All other companies and products mentioned are trademarks and property of their respective owners. Part Number: 1091.17.122 Zenoss, Inc. 11305 Four Points Drive Bldg 1 - Suite 300 Austin, Texas 78726 2 Contents About this guide.......................................................................................................................4
    [Show full text]
  • Zenoss Core Installation Guide
    Zenoss Core Installation Guide Release 5.1.5 Zenoss, Inc. www.zenoss.com Zenoss Core Installation Guide Copyright © 2016 Zenoss, Inc. All rights reserved. Zenoss and the Zenoss logo are trademarks or registered trademarks of Zenoss, Inc., in the United States and other countries. All other trademarks, logos, and service marks are the property of Zenoss or other third parties. Use of these marks is prohibited without the express written consent of Zenoss, Inc., or the third-party owner. Amazon Web Services, AWS, and EC2 are trademarks of Amazon.com, Inc. or its affiliates in the United States and/or other countries. Flash is a registered trademark of Adobe Systems Incorporated. Oracle, the Oracle logo, Java, and MySQL are registered trademarks of the Oracle Corporation and/or its affiliates. Linux is a registered trademark of Linus Torvalds. RabbitMQ is a trademark of VMware, Inc. SNMP Informant is a trademark of Garth K. Williams (Informant Systems, Inc.). Sybase is a registered trademark of Sybase, Inc. Tomcat is a trademark of the Apache Software Foundation. VMware is a registered trademark or trademark of VMware, Inc. in the United States and/or other jurisdictions. Windows is a registered trademark of Microsoft Corporation in the United States and other countries. All other companies and products mentioned are trademarks and property of their respective owners. Part Number: 1051.16.207 Zenoss, Inc. 11305 Four Points Drive Bldg 1 - Suite 300 Austin, Texas 78726 2 Contents About this guide.................................................................................................................
    [Show full text]
  • Zenoss Community Edition (Core) Upgrade Guide
    Zenoss Community Edition (Core) Upgrade Guide Release 6.2.0 Zenoss, Inc. www.zenoss.com Zenoss Community Edition (Core) Upgrade Guide Copyright © 2018 Zenoss, Inc. All rights reserved. Zenoss, Own IT, and the Zenoss logo are trademarks or registered trademarks of Zenoss, Inc., in the United States and other countries. All other trademarks, logos, and service marks are the property of Zenoss or other third parties. Use of these marks is prohibited without the express written consent of Zenoss, Inc., or the third-party owner. Amazon Web Services, AWS, and EC2 are trademarks of Amazon.com, Inc. or its affiliates in the United States and/or other countries. Flash is a registered trademark of Adobe Systems Incorporated. Oracle, the Oracle logo, Java, and MySQL are registered trademarks of the Oracle Corporation and/or its affiliates. Linux is a registered trademark of Linus Torvalds. RabbitMQ is a trademark of Pivotal Software, Inc. SNMP Informant is a trademark of Garth K. Williams (Informant Systems, Inc.). Sybase is a registered trademark of Sybase, Inc. Tomcat is a trademark of the Apache Software Foundation. VMware is a registered trademark or trademark of VMware, Inc. in the United States and/or other jurisdictions. Windows is a registered trademark of Microsoft Corporation in the United States and other countries. All other companies and products mentioned are trademarks and property of their respective owners. Part Number: 1691.18.162.37 Zenoss, Inc. 11305 Four Points Drive Bldg 1 - Suite 300 Austin, Texas 78726 2 Contents About this
    [Show full text]
  • Zenoss Installation for Core Version
    Zenoss, Inc. www.zenoss.com Zenoss Installation for Core 2.4 Copyright © 2009 Zenoss, Inc., 275 West St. Suite 204, Annapolis, MD 21401, U.S.A. All rights reserved. This work is licensed under a Creative Commons Attribution Share Alike 3.0 License. To view a copy of this license, visit http:// creativecommons.org/licenses/by-sa/3.0/; or send a letter to Creative Commons, 171 2nd Street, Suite 300, San Francisco, California, 94105, USA. The Zenoss logo is a registered trademark of Zenoss, Inc. Zenoss and Open Enterprise Management are trademarks of Zenoss, Inc. in the U.S. and other countries. Flash is a registered trademark of Adobe Systems Incorporated. Java is a registered trademark of Sun Microsystems, Inc. Linux is a registered trademark of Linus Torvalds. Oracle and the Oracle logo are registered trademarks of the Oracle Corporation. SNMP Informant is a trademark of Garth K. Williams (Informant Systems, Inc.). Sybase is a registered trademark of Sybase, Inc. Tomcat is a trademark of the Apache Software Foundation. Windows is a registered trademark of Microsoft Corporation in the United States and other countries. All other companies and products mentioned are trademarks and property of their respective owners. 1. Installing Zenoss for RHEL 5 or CentOS 5 .......................................................................................... 1 1.1. Prerequisite Tasks ................................................................................................................... 1 1.2. Install the Zenoss Software .....................................................................................................
    [Show full text]
  • Zenoss Community Edition (Core) Administration Guide
    Zenoss Community Edition (Core) Administration Guide Release 6.2.0 Zenoss, Inc. www.zenoss.com Zenoss Community Edition (Core) Administration Guide Copyright © 2018 Zenoss, Inc. All rights reserved. Zenoss, Own IT, and the Zenoss logo are trademarks or registered trademarks of Zenoss, Inc., in the United States and other countries. All other trademarks, logos, and service marks are the property of Zenoss or other third parties. Use of these marks is prohibited without the express written consent of Zenoss, Inc., or the third-party owner. Amazon Web Services, AWS, and EC2 are trademarks of Amazon.com, Inc. or its affiliates in the United States and/or other countries. Flash is a registered trademark of Adobe Systems Incorporated. Oracle, the Oracle logo, Java, and MySQL are registered trademarks of the Oracle Corporation and/or its affiliates. Linux is a registered trademark of Linus Torvalds. RabbitMQ is a trademark of Pivotal Software, Inc. SNMP Informant is a trademark of Garth K. Williams (Informant Systems, Inc.). Sybase is a registered trademark of Sybase, Inc. Tomcat is a trademark of the Apache Software Foundation. VMware is a registered trademark or trademark of VMware, Inc. in the United States and/or other jurisdictions. Windows is a registered trademark of Microsoft Corporation in the United States and other countries. All other companies and products mentioned are trademarks and property of their respective owners. Part Number: 1611.18.162.37 Zenoss, Inc. 11305 Four Points Drive Bldg 1 - Suite 300 Austin, Texas 78726 2 Contents
    [Show full text]
  • Zenoss Core Upgrade Guide
    Zenoss Core Upgrade Guide Release 5.2.1 Zenoss, Inc. www.zenoss.com Zenoss Core Upgrade Guide Copyright © 2017 Zenoss, Inc. All rights reserved. Zenoss and the Zenoss logo are trademarks or registered trademarks of Zenoss, Inc., in the United States and other countries. All other trademarks, logos, and service marks are the property of Zenoss or other third parties. Use of these marks is prohibited without the express written consent of Zenoss, Inc., or the third-party owner. Amazon Web Services, AWS, and EC2 are trademarks of Amazon.com, Inc. or its affiliates in the United States and/or other countries. Flash is a registered trademark of Adobe Systems Incorporated. Oracle, the Oracle logo, Java, and MySQL are registered trademarks of the Oracle Corporation and/or its affiliates. Linux is a registered trademark of Linus Torvalds. RabbitMQ is a trademark of Pivotal Software, Inc. SNMP Informant is a trademark of Garth K. Williams (Informant Systems, Inc.). Sybase is a registered trademark of Sybase, Inc. Tomcat is a trademark of the Apache Software Foundation. VMware is a registered trademark or trademark of VMware, Inc. in the United States and/or other jurisdictions. Windows is a registered trademark of Microsoft Corporation in the United States and other countries. All other companies and products mentioned are trademarks and property of their respective owners. Part Number: 1091.17.044 Zenoss, Inc. 11305 Four Points Drive Bldg 1 - Suite 300 Austin, Texas 78726 2 Contents About this guide.......................................................................................................................4
    [Show full text]