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
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Zabbix: Enterprise Network Montioring Made Easy

You're reading from   Zabbix: Enterprise Network Montioring Made Easy Ultimate open source, real-time monitoring tool

Arrow left icon
Product type Course
Published in Feb 2017
Publisher Packt
ISBN-13 9781787129047
Length 1327 pages
Edition 1st Edition
Tools
Concepts
Arrow right icon
Authors (3):
Arrow left icon
Rihards Olups Rihards Olups
Author Profile Icon Rihards Olups
Rihards Olups
Andrea Dalle Vacche Andrea Dalle Vacche
Author Profile Icon Andrea Dalle Vacche
Andrea Dalle Vacche
Patrik Uytterhoeven Patrik Uytterhoeven
Author Profile Icon Patrik Uytterhoeven
Patrik Uytterhoeven
Arrow right icon
View More author details
Toc

Table of Contents (51) Chapters Close

Zabbix: Enterprise Network Montioring Made Easy
Zabbix: Enterprise Network Montioring Made Easy
Credits
Preface
1. Getting Started with Zabbix FREE CHAPTER 2. Getting Your First Notification 3. Monitoring with Zabbix Agents and Basic Protocols 4. Monitoring SNMP Devices 5. Managing Hosts, Users, and Permissions 6. Detecting Problems with Triggers 7. Acting upon Monitored Conditions 8. Simplifying Complex Configurations with Templates 9. Visualizing Data with Graphs and Maps 10. Visualizing Data with Screens and Slideshows 11. Advanced Item Monitoring 12. Automating Configuration 13. Monitoring Web Pages 14. Monitoring Windows 15. High-Level Business Service Monitoring 16. Monitoring IPMI Devices 17. Monitoring Java Applications 18. Monitoring VMware 19. Using Proxies to Monitor Remote Locations 20. Encrypting Zabbix Traffic 21. Working Closely with Data 22. Zabbix Maintenance 23. Zabbix Configuration 24. Getting Around in Zabbix 25. Groups, Users, and Permissions 26. Monitoring with Zabbix 27. Testing with Triggers in Zabbix 28. Working with Templates 29. Data Visualization and Reporting in Zabbix 30. Monitoring VMware and Proxies 31. Autodiscovery 32. Zabbix Maintenance and API 33. Deploying Zabbix 34. Distributed Monitoring 35. High Availability and Failover 36. Collecting Data 37. Visualizing Data 38. Managing Alerts 39. Managing Templates 40. Handling External Scripts 41. Extending Zabbix 42. Integrating Zabbix Troubleshooting Being Part of the Community Upgrading and Troubleshooting Zabbix Bibliography
Index

Mass operations


Now it is time to see the Python Zabbix API in action. Another common use of the API facility is to automate certain operations that you can perform from the web frontend, but they may be cumbersome or prone to errors. Things such as adding many users or updating the host IP addresses after merging two different networks fall under this category. The following fragments will assume that you already have a Zabbix API handle just as shown in the previous paragraphs. In other words, from now on, it will be assumed that your code will start with something similar to the following (remember that the Zabbix URL and user credentials here are just examples! Use your own URL and credentials):

#!/usr/bin/python
from pyzabbix import ZabbixAPI
user='Admin'
pwd='password'
url = 'https://127.0.0.1/zabbix/'
zh = ZabbixAPI(url)
zh.login(user=user, password=pwd)

Redistributing hosts to proxies

We have seen in Chapter 2, Distributed Monitoring, that you can add hosts to a proxy through the proxy...

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