Coder Social home page Coder Social logo

zabbix-ovirt's Introduction

zabbix-ovirt

This is a template which can be used to monitor oVirt or libvirt virtualization hosts from within Zabbix.

The template was exported from Zabbix version 2.4.3 Tested with oVirt version 3.5.0.1 release 1.el6, libvirt version 0.10.2 release 46.el6_6.2 on CentOS 6.6

How to use:

  1. Enable SNMP on the oVirt or libvirt host
  • give direct access to libvirt for root (disabled by default for oVirt)
  • install and configure basic SNMP
  • install libvirt-snmp
  • create init-script or systemd service for libvirt-snmp
  • start and test the service

see my detailed blogpost for instructions on how to enable SNMP for oVirt or libvirt: Monitor oVirt or libvirt with SNMP and Zabbix

  1. Create a new value mapping in Zabbix:
  • On the Zabbix-server, go to: Afministration -> General -> Value Mapping (upper right corner)
  • Create value map
  • name: libvirt guest state
  • mappings:
1 -> running
2 -> blocked
3 -> paused
4 -> shutdown
5 -> shutoff
6 -> crashed
  1. Import the template in Zabbix:
  • On the Zabbix-server, go to Configuration - Templates
  • click on Import
  • choose the file and click on Import
  1. Add your oVirt or libvirt hosts to Zabbix:
  • On the Zabbix-server, go to Configuration - Hosts
  • for each host: click on Create Host
  • On the host tab:
  • enter a host name
    • add an SNMP-interface with your ovirt or libvirt host's IP and/or hostname
  • On the templates tab:
    • add template "Template SNMP oVirt"
  • On the Macros tab:
    • enter macro {$SNMP_COMMUNITY} with as value
    • enter macro {$SNMP_PORT} with your SNMP-port as value (default 161)
  • click Save
  1. Wait for the discovery to fire that creates all items, graphs and triggers
  • by default, this takes 3600s or one hour :)

zabbix-ovirt's People

Contributors

jensdepuydt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.