Giter Site home page Giter Site logo

zabbix_db_config_backup's Introduction

zabbix_db_config_backup

Zabbix DB Config Only Backup Tool

Zabbixの監視ログデータを含んだ重たいデータベースから、 ホスト、アイテム、トリガー等の、監視設定のみをバックアップするツールです。 cronで定期実行するようにしておくと何かあった際にロールバックが可能です。

ロールバックを実行すると、その日時までの各種監視ログは 不整合の発生を防ぐために消去されます。 監視設定の初期段階や、取り返しのつかない設定ミスを取り消す際にのみ利用すべきです。

また、データの損傷が起きても許容できる環境で、 実際の動作の確認を行った上でご利用ください。

ライセンス - License

MIT License.

実行環境 - Server Requirements

  • Zabbix Server 3.0.10 and 3.4.3 and 4.0.2 (Not Supported 3.2.x !)
  • MySQL or MariaDB
  • PHP 5.6 or later
    • php-pdo
    • php-mysqlnd
    • php-mbstring
  • zcat
  • mysqldump

使い方 - How to use

First set the script "User Configuration"

backup

php zabbix_config_backup.php --backup

rollback

php zabbix_config_backup.php --rollback ./config_backup/xxxxxx.sql.gz

注意点 - Important

rollback を実行すると、その日時までの監視ログは消失します。
If you execute rollback, the monitoring log until that datetime will be lost.

必ず動作検証を行ったうえで利用してください。
Be sure to perform operation verification before using.

zabbix_db_config_backup's People

Contributors

lf-uraku-yuki avatar

Stargazers

 avatar  avatar

Watchers

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