Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Zenoss Core 3.x Network and System Monitoring

You're reading from   Zenoss Core 3.x Network and System Monitoring A step-by-step guide to configuring, using, and adapting this free Open Source network monitoring system

Arrow left icon
Product type Paperback
Published in Apr 2011
Publisher Packt
ISBN-13 9781849511582
Length 312 pages
Edition 1st Edition
Concepts
Arrow right icon
Author (1):
Arrow left icon
Michael Badger Michael Badger
Author Profile Icon Michael Badger
Michael Badger
Arrow right icon
View More author details
Toc

Table of Contents (21) Chapters Close

Zenoss Core 3.x Network and System Monitoring
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. Network and System Monitoring with Zenoss Core 2. Discovering Devices FREE CHAPTER 3. Device Setup and Administration 4. Monitor Status and Performance 5. Custom Monitoring Templates 6. Core Event Management 7. Collecting Events 8. Settings and Administration 9. Extending Zenoss Core with ZenPacks 10. Reviewing Built-in Reports 11. Writing Custom Device Reports Event Attributes
Device Attributes
Example snmpd.conf
Index

Programming in zendmd, an interactive shell


We can use zendmd to test our python statements and to access the methods and attributes available to us from Zenoss Core. From zendmd, we can write and test Python statements that manipulate the attributes of the devices:

You can use zendmd as a way to:

  • Test event transformations

  • Mass update device properties from a command line

  • Test programming expressions when writing plugins or zenpacks

This section introduces the environment and provides some basic commands to get us started.

To start the zendmd shell, you'll need to run the following command as the zenoss user:

zendmd

The Zenoss dmd command shell opens and displays with a >>> prompt. Enter the following statements at the shell (exclude the commented text that begins with #):

zhelp()             # Display a list of objects
pprint(dir(dmd))    # Display methods available to dmd object
dir(devices)    # Display methods available to devices object
find('Coyote')      # Find the device by name...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image