GithubHelp home page GithubHelp logo

aggre55or / zabbix-app-bind Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 152 KB

Zabbix 3.x template for stats collection from BIND, Nginx & PHP-FPM services

License: BSD 2-Clause "Simplified" License

Shell 100.00%

zabbix-app-bind's Introduction

App BIND

Zabbix 3.x template for stats collection from BIND 9 named service

How to install (tested on CentOS 6.8):

  • Import the xml template into Zabbix 3
  • Copy named-stats.sh to /usr/local/share/zabbix/externalscripts/ (or another dir & change path into named-stats.sh)
  • Copy userparameter_named.conf to /etc/zabbix/zabbix_agentd.d/
  • Configure Bind to export statistics in file /var/named/data/named_stats.txt by adding the following to your /var/named/chroot/etc/named.conf:
options {
    statistics-file "/var/named/data/named_stats.txt";
};
  • Restarting named and zabbix-agent daemons

Screenshots

ScreenShot

App Nginx

Zabbix 3.x template for stats collection from Nginx 1.x service

How to install (tested on CentOS 6.8):

        # Configure nginx status server
        server {
                listen          127.0.0.1:8885;
                server_name     monitor;
                server_name_in_redirect off;
                access_log      off;

                location  / {
                        stub_status on;
                        access_log   off;
                        allow 127.0.0.1;
                        deny all;
                }
        }

App PHP-FPM

Zabbix 3.x template for stats collection from PHP-FPM 5.6.x and later service

How to install (tested on CentOS 6.8):

  • Import the xml template into Zabbix 3
  • Copy php-fpm-stats.sh to /usr/local/share/zabbix/externalscripts/ (or another dir & change path into php-fpm-stats.sh)
  • Copy userparameter_php-fpm.conf to /etc/zabbix/zabbix_agentd.d/
  • Configure PHP-FPM status for your pool (ex. /etc/php-fpm.d/www.conf)
pm.status_path = /php
  • Configure PHP-FPM status page for your web-server (ex. /etc/nginx/nginx.conf)
        # php-fpm status page
        location ~ ^/(php)$ {
              access_log off;
              allow 127.0.0.1;
              allow 192.168.0/24;
              deny all;
              fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
              include fastcgi_params;
              fastcgi_pass socket;
        }

zabbix-app-bind's People

Contributors

aggre55or avatar

Stargazers

 avatar

Watchers

 avatar  avatar

zabbix-app-bind's Issues

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.