You are previewing Zabbix 1.8 Network Monitoring.
O'Reilly logo
Zabbix 1.8 Network Monitoring

Book Description

Monitor your network hardware, servers, and web performance effectively and efficiently

  • Start with the very basics of Zabbix, an enterprise-class open source network monitoring solution, and move up to more advanced tasks later

  • Efficiently manage your hosts, users, and permissions

  • Get alerts and react to changes in monitored parameters by sending out e-mails, SMSs, or even execute commands on remote machines

  • In-depth coverage for both beginners and advanced users with plenty of practical, working examples and clear explanations

  • In Detail

    Imagine you're celebrating the start of the weekend with Friday-night drinks with a few friends. And then suddenly your phone rings -- one of the servers you administer has gone down, and it needs to be back up before tomorrow morning. So you drag yourself back to the office, only to discover that some log files have been growing more than usual over the past few weeks and have filled up the hard drive.

    While the scenario above is very simplistic, something similar has happened to most IT workers at one or another point in their careers. To avoid such situations this book will teach you to monitor your network hardware, servers, and web performance using Zabbix- an open source system monitoring and reporting solution.

    The versatility of Zabbix allows monitoring virtually anything, but getting started with the new concepts can take some time. This book will take you through the most common tasks in a hands-on, step by step manner.

    Zabbix is a very flexible IT monitoring suite, but not every part of it is immediately clear to new users. Following the instructions in this book should allow you to set up monitoring of various metrics on various devices, including Linux and Windows machines, SNMP devices, IPMI enabled server,s and other network attached equipment. You will learn to define conditions – such a temperature being too high or service being down – and act upon them by notifying user by email, SMS, or even restarting service. You will learn to visualize the gathered data with graphs and the various tips and tricks that are provided will help to use Zabbix more efficiently and avoid common pitfalls.

    This book covers setting up Zabbix from the scratch and gradually introduces basic components of Zabbix, moving to more advanced topics later. Book's scope is based on the author's experience of working with Zabbix for many years, as well as on the questions users have asked on the Zabbix IRC channel and forums.

    Monitor your network with ease using the open source Zabbix suite with this hands-on, practical guide

    Table of Contents

    1. Zabbix 1.8 Network Monitoring
      1. Table of Contents
      2. Zabbix 1.8 Network Monitoring
      3. Credits
      4. About the Author
      5. About the Reviewers
      6. Preface
        1. What this book covers
        2. Who this book is for
        3. Conventions
        4. Reader feedback
        5. Customer support
          1. Errata
          2. Piracy
          3. Questions
      7. 1. Getting Started with Zabbix
        1. First steps in monitoring
        2. Zabbix features and architecture
        3. Installation
          1. Server and agent
            1. Software requirements
            2. Hardware requirements
        4. Getting the source
          1. Compilation
          2. Initial configuration
          3. Creating and populating the database
            1. Starting up
        5. SUSE Linux Enterprise Server
        6. Slackware
          1. Verifying the service's state
        7. The Web frontend
          1. Prerequisites and setting up the environment
          2. Installation of the web frontend
            1. Step 1 — Welcome
            2. Step 2 — Licence
            3. Step 3 — PHP prerequisites
            4. Step 4 — Database access.
            5. Step 5 — Zabbix server details
            6. Step 6 — Summary
            7. Step 7 — Writing the configuration file
            8. Step 8 — Configuration file in place
            9. Step 9 — Finishing the wizard
            10. Step 10 — Logging in
        8. Summary
      8. 2. Getting Your First Notification
        1. Exploring the frontend
        2. Monitoring quickstart
          1. Creating a host
          2. Creating an item
          3. Introducing simple graphs
          4. Creating triggers
          5. Configuring e-mail parameters
          6. Creating an action
        3. Information flow in Zabbix
        4. Let's create some load
        5. Basic item configuration
          1. Monitoring categories
            1. Availability
            2. Performance
            3. Security
            4. Management
            5. Efficiency
          2. Item types
          3. How items can be monitored
        6. Summary
      9. 3. Monitoring with Zabbix Agents and Basic Protocols
        1. Using Zabbix agent
          1. Passive items
            1. Cloning items
          2. Active items
          3. Supported items
        2. Simple checks
          1. Setting up ICMP checks
        3. Tying it all together
          1. Positional parameters for item descriptions
          2. Using mass update
          3. Value mapping
          4. Copying items
        4. Summary
      10. 4. Monitoring SNMP and IPMI Devices
        1. Simple Network Management Protocol
          1. Using Net-SNMP
            1. Using SNMPv3 with Net-SNMP
          2. Adding new MIBs
          3. Working with SNMP items in Zabbix
            1. Translating SNMP OIDs
            2. Dynamic indexes
            3. Receiving SNMP traps
            4. Trap handling schemes
              1. Custom mapping
              2. Database lookups
              3. SNMP Trap Translator
        2. Intelligent Platform Management Interface
          1. Dell Remote Access Controller
          2. Preparing Zabbix for IPMI querying
          3. Configuring DRAC IPMI access
          4. Setting up IPMI items
            1. Card attached to one of the already monitored hosts
            2. Card attached to a different host
            3. Creating IPMI item
        3. Summary
      11. 5. Managing Hosts, Users, and Permissions
        1. Host and host groups
        2. Users, user groups, and permissions
          1. Authentication methods
          2. Creating a user
          3. Creating user groups
        3. Summary
      12. 6. Acting Upon Monitored Conditions
        1. Triggers
          1. Trigger dependencies
          2. Constructing trigger expressions
            1. Triggers that time out
            2. Human-readable constants
          3. Event details
          4. Event generation and hysteresis
        2. Actions
          1. Limiting conditions when actions are sent
            1. Additional action conditions
            2. Dependencies and actions
            3. Per media limits
          2. Sending out notifications
            1. Using macros
          3. Escalating things
          4. Integration with issue management systems
            1. Bugzilla
            2. CA Unicenter Service Desk
          5. Using scripts as media
          6. Remote commands
        3. Summary
      13. 7. Simplifying Complex Configuration with Templates
        1. Identifying template candidates
        2. Creating a template
        3. Linking templates to hosts
          1. Changing configuration in template
          2. Macro usage
        4. Using multiple templates
          1. Unlinking templates from hosts
        5. Nested templates
        6. Summary
      14. 8. Visualizing the Data
        1. Visualize what?
        2. Single elements
          1. Graphs
            1. Simple graphs
            2. Custom graphs
              1. Working time and trigger line
              2. Two y-axis
              3. Sort order
              4. Custom y-axis scale
              5. Stacked graphs
              6. Pie graphs
          2. Maps
            1. Creating a map
            2. Linking map elements
            3. Further map customization
              1. Macros in labels
              2. Link labels
              3. Map element highlighting
              4. Global map options
              5. Available map elements
        3. Compound elements
          1. Screens
            1. Dynamic screens
          2. Slide shows
        4. Showing data on a big display
          1. Challenges
            1. Non-interactive display
            2. Information overload
            3. Displaying a specific section automatically
            4. Recent change flashing
        5. Summary
      15. 9. Creating Reports
        1. Simple reports
          1. Status of Zabbix
          2. Availability report
          3. Most busy triggers top 100
        2. Bar reports
          1. Distribution of values for multiple periods
          2. Distribution of values for multiple items
          3. Comparing values for multiple periods
        3. Summary
      16. 10. Advanced Item Monitoring
        1. Aggregate items
        2. External checks
        3. User parameters
          1. Just getting it to work
          2. Querying data that Zabbix agent does not support
          3. Flexible user parameters
          4. Level of the details monitored
          5. Environment trap
          6. Things to remember about user parameters
            1. Wrapper scripts
        4. Other methods to gather data
          1. Sending in the data
          2. Using custom agents
        5. Summary
      17. 11. Monitoring Windows and Web Pages
        1. Monitoring web pages
          1. Creating web monitoring scenario
        2. Windows-specific monitoring
          1. Installing Zabbix agent for Windows
          2. Querying performance counters
            1. Using numeric references to performance counters
            2. Using aliases for performance counters
          3. Monitoring Windows services
            1. Checking whether an automatic service has stopped
        3. Summary
      18. 12. Using Proxies to Monitor Remote Locations
        1. When proxies are useful
        2. Setting up the proxy
        3. Monitoring a host through a proxy
        4. Proxy benefits
        5. Proxy reliability
        6. Tweaking proxy configuration
        7. Summary
      19. 13. Working Closely with Data
        1. Getting raw data
          1. Extracting from the frontend
          2. Querying the database
            1. Using data in a remote site
        2. Diving further in the database
          1. Managing users
          2. Converting a host to a template
          3. Changing existing data
            1. Finding out "when"
            2. "When" in computer language
            3. Finding out what
            4. Performing the change
        3. Using XML import/export for configuration
          1. Exporting initial configuration
          2. Modifying configuration
            1. XML export format
            2. Script around the export
          3. Importing modified configuration
        4. Summary
      20. 14. Upgrading Zabbix
        1. General policy
          1. Zabbix versions
          2. Version upgrades
        2. Upgrading Zabbix
          1. Change level upgrade
            1. Adding the indexes
            2. Replacing frontend files
          2. Minor or major level upgrades
            1. Patching the database
              1. Gathering the data during the upgrade
            2. Frontend configuration file
        3. Compatibility
        4. Summary
      21. 15. Taking Care of Zabbix
        1. Internal items
        2. Performance considerations
          1. Reducing the query count
          2. Increasing write performance
        3. Who did that?
        4. Real men make no backups
          1. Backing up the database
          2. Restoring from backup
          3. Separating configuration and data backups
        5. Summary
      22. A. Troubleshooting
        1. Installation
          1. Compilation
          2. Frontend
          3. Starting services
        2. Frontend
          1. Locked out of the frontend
        3. Problems with monitoring
          1. General monitoring
          2. Monitoring with Zabbix agent
            1. User parameters
          3. Problems with SNMP devices
          4. Problems with IPMI monitoring
          5. Problems with ICMP checks
          6. General issues
        4. Triggers
        5. Actions
      23. B. Being Part of the Community
        1. Community and support
          1. Using the Zabbix forum
          2. Editing the wiki
          3. Chatting on IRC
          4. Filing issues on the tracker
        2. Following the development
          1. Getting the source
            1. Daily snapshots
            2. Accessing the version control system
              1. Looking at the changesets
        3. Commercial support options
        4. Summary
      24. Index