Giter VIP home page Giter VIP logo

zabbix-openvz's Introduction

Description

OpenVZ node monitoring through Zabbix.

OpenVZ containers monitoring through Zabbix.

Template "Template OpenVZ Node" finds all containers, creates new hosts and apply template "Template OpenVZ CT" on them.

Dependencies

perl, sudo, zabbix-agent.

Installation

  1. copy vzdiscover.pl, ubcfault.sh and vzlist.sh to /etc/zabbix/
  2. copy zabbix_agentd.d/openvz.conf to /etc/zabbix/zabbix_agentd.d/
  3. copy sudoers.d/zabbix to /etc/sudoers.d/
  4. chown root:root /etc/sudoers.d/zabbix ; chmod 440 /etc/sudoers.d/zabbix
  5. chmod 755 /etc/zabbix/vzdiscover.pl /etc/zabbix/ubcfault.sh /etc/zabbix/vzlist.sh
  6. restart zabbix-agent daemon.
  7. import "zbx_templates/Template OpenVZ CT.xml" (or Template OpenVZ CT (v 3.x).xml) and "zbx_templates/Template OpenVZ Node.xml" into your templates.
  8. apply template "Template OpenVZ Node" to OpenVZ hardware node (otherwise known as host system).
  9. enjoy.

You can tune macros (like {$PROC_CT_WARN}) in template "Template OpenVZ CT", or set macros to parent host (hardware node), it will be inherited to auto-discovered CT host. This is zabbix restriction.

Template Template OpenVZ CT (v 3.x).xml - new version with changed trigger "too many processes" to prevent flapps.

Install extend check inside CT

  1. copy ctextcheckdiscover.pl ctextcheck.sh to /etc/zabbix/
  2. create directory /etc/zabbix inside CT and copy ctextcheck/ct_check.sh there.
  3. edit ct_check.sh to realise custom checks.
  4. enable discovery rule "discover container external checks" in CT nodes.
  5. enjoy.

PS

If you have problem with import template "Template OpenVZ Node.xml", try use template without discovery rule and add it later manually. Lelik13a#2

zabbix-openvz's People

Contributors

lelik13a 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.