├── Dockerfile ├── zabbix-db-mariadb │ ├── container-files │ │ ├── etc │ │ │ ├── my.cnf.d │ │ │ │ ├── security.cnf │ │ │ │ ├── engine.cnf │ │ │ │ ├── charsets.cnf │ │ │ │ ├── logging.cnf │ │ │ │ ├── slowlog.cnf │ │ │ │ └── networking.cnf │ │ │ └── yum.repos.d │ │ │ │ └── mariadb.repo │ │ └── run.sh │ └── Dockerfile ├── zabbix-2.4 │ ├── container-files-base │ │ ├── etc │ │ │ ├── nginx │ │ │ │ ├── nginx.d │ │ │ │ │ ├── 20-logs.conf │ │ │ │ │ ├── 10-mime.conf │ │ │ │ │ ├── 90-misc.conf │ │ │ │ │ ├── 80-proxy-buffers.conf │ │ │ │ │ ├── 80-buffers.conf │ │ │ │ │ └── 30-gzip.conf │ │ │ │ ├── addon.d │ │ │ │ │ ├── php-upstream.conf │ │ │ │ │ ├── http_realip.conf │ │ │ │ │ └── fastcgi-cache.example │ │ │ │ ├── conf.d │ │ │ │ │ ├── stub-status.conf │ │ │ │ │ ├── php-location.conf │ │ │ │ │ ├── default-01-security.conf │ │ │ │ │ ├── default-20-common-files.conf │ │ │ │ │ ├── default-10-expires.conf │ │ │ │ │ └── fpm-status.conf │ │ │ │ ├── hosts.d │ │ │ │ │ └── default.conf │ │ │ │ ├── nginx.conf │ │ │ │ └── fastcgi_params │ │ │ ├── supervisor.d │ │ │ │ ├── php-fpm.conf │ │ │ │ └── nginx.conf │ │ │ ├── php-fpm.conf │ │ │ ├── php.d │ │ │ │ ├── zz-php-56.ini │ │ │ │ └── zz-php.ini │ │ │ ├── php-fpm.d │ │ │ │ └── www.conf │ │ │ └── supervisord.conf │ │ └── config │ │ │ ├── init │ │ │ ├── 10-nginx-stub-status.sh │ │ │ ├── 10-php-fpm-status.sh │ │ │ ├── vhost-proxy.conf │ │ │ ├── 10-nginx-cache-dirs.sh │ │ │ ├── vhost-proxy-https.conf │ │ │ ├── 10-nginx-data-dirs.sh │ │ │ └── 10-nginx-internal-proxy.sh │ │ │ └── bootstrap.sh │ ├── container-files-zabbix │ │ ├── usr │ │ │ └── local │ │ │ │ └── etc │ │ │ │ ├── zabbix_java_gateway.conf │ │ │ │ ├── zabbix_agentd.conf │ │ │ │ └── web │ │ │ │ └── zabbix.conf.php │ │ ├── etc │ │ │ ├── logrotate.d │ │ │ │ └── zabbix-traps │ │ │ ├── supervisor.d │ │ │ │ ├── zabbix-server.conf │ │ │ │ ├── snmptrapd.conf │ │ │ │ └── zabbix-agent.conf │ │ │ ├── sudoers.d │ │ │ │ └── zabbix │ │ │ ├── php.d │ │ │ │ └── zz-zabbix.ini │ │ │ ├── snmp │ │ │ │ ├── snmptrapd.conf │ │ │ │ └── snmptt.conf │ │ │ └── nginx │ │ │ │ └── hosts.d │ │ │ │ └── default.conf │ │ ├── config │ │ │ ├── pyzabbix.py │ │ │ └── ds.sh │ │ └── health │ │ │ └── index.php │ ├── docker-compose.yml │ └── retag.sh ├── zabbix-xxl │ ├── container-files-base │ │ ├── etc │ │ │ ├── nginx │ │ │ │ ├── nginx.d │ │ │ │ │ ├── 20-logs.conf │ │ │ │ │ ├── 10-mime.conf │ │ │ │ │ ├── 90-misc.conf │ │ │ │ │ ├── 80-proxy-buffers.conf │ │ │ │ │ ├── 80-buffers.conf │ │ │ │ │ └── 30-gzip.conf │ │ │ │ ├── addon.d │ │ │ │ │ ├── php-upstream.conf │ │ │ │ │ ├── http_realip.conf │ │ │ │ │ └── fastcgi-cache.example │ │ │ │ ├── conf.d │ │ │ │ │ ├── stub-status.conf │ │ │ │ │ ├── php-location.conf │ │ │ │ │ ├── default-01-security.conf │ │ │ │ │ ├── default-20-common-files.conf │ │ │ │ │ ├── default-10-expires.conf │ │ │ │ │ └── fpm-status.conf │ │ │ │ ├── hosts.d │ │ │ │ │ └── default.conf │ │ │ │ ├── nginx.conf │ │ │ │ └── fastcgi_params │ │ │ ├── supervisor.d │ │ │ │ ├── php-fpm.conf │ │ │ │ └── nginx.conf │ │ │ ├── php-fpm.conf │ │ │ ├── php.d │ │ │ │ ├── zz-php-56.ini │ │ │ │ └── zz-php.ini │ │ │ ├── php-fpm.d │ │ │ │ └── www.conf │ │ │ └── supervisord.conf │ │ └── config │ │ │ ├── init │ │ │ ├── 10-nginx-stub-status.sh │ │ │ ├── 10-php-fpm-status.sh │ │ │ ├── vhost-proxy.conf │ │ │ ├── 10-nginx-cache-dirs.sh │ │ │ ├── vhost-proxy-https.conf │ │ │ ├── 10-nginx-data-dirs.sh │ │ │ └── 10-nginx-internal-proxy.sh │ │ │ └── bootstrap.sh │ ├── container-files-zabbix-xxl │ │ ├── usr │ │ │ └── local │ │ │ │ └── src │ │ │ │ └── zabbix │ │ │ │ └── frontends │ │ │ │ └── php │ │ │ │ ├── grapher │ │ │ │ ├── index.php │ │ │ │ ├── chosen-sprite.png │ │ │ │ ├── chosen-sprite@2x.png │ │ │ │ └── grapher.css │ │ │ │ ├── zapix │ │ │ │ ├── assets │ │ │ │ │ ├── favicon.ico │ │ │ │ │ └── favicon.png │ │ │ │ └── css │ │ │ │ │ ├── img │ │ │ │ │ ├── glyphicons-halflings.png │ │ │ │ │ └── glyphicons-halflings-white.png │ │ │ │ │ ├── bootstrap │ │ │ │ │ └── LICENSE │ │ │ │ │ └── style.css │ │ │ │ ├── searcher │ │ │ │ ├── assets │ │ │ │ │ ├── donate-button.png │ │ │ │ │ ├── donate-button2.png │ │ │ │ │ ├── Monitoring-Artist-logo.jpg │ │ │ │ │ └── Monitoring-Artist-logo.png │ │ │ │ └── javascripts │ │ │ │ │ └── search.js │ │ │ │ ├── grapher.php │ │ │ │ └── updatechecker │ │ │ │ └── updatechecker.js │ │ ├── etc │ │ │ ├── zabbix │ │ │ │ └── api │ │ │ │ │ └── 01-enable-zabbix-server.api │ │ │ └── supervisor.d │ │ │ │ └── analytics.conf │ │ └── config │ │ │ └── init │ │ │ ├── 14-xxl-env-variables.sh │ │ │ └── 12-xxl-ping.sh │ ├── container-files-zabbix │ │ ├── usr │ │ │ └── local │ │ │ │ └── etc │ │ │ │ ├── zabbix_java_gateway.conf │ │ │ │ ├── logback.xml │ │ │ │ ├── zabbix_server.conf │ │ │ │ ├── zabbix_agentd.conf │ │ │ │ └── web │ │ │ │ └── zabbix.conf.php │ │ ├── etc │ │ │ ├── supervisor.d │ │ │ │ ├── zabbix-proxy.conf │ │ │ │ ├── snmptrapd.conf │ │ │ │ ├── zabbix-agent.conf │ │ │ │ ├── zabbix-server.conf │ │ │ │ └── zabbix-java-gateway.conf │ │ │ ├── sudoers.d │ │ │ │ └── zabbix │ │ │ ├── php.d │ │ │ │ └── zz-zabbix.ini │ │ │ ├── nginx │ │ │ │ └── hosts.d │ │ │ │ │ └── default.conf │ │ │ └── snmp │ │ │ │ ├── snmptrapd.conf │ │ │ │ └── snmptt.conf │ │ ├── config │ │ │ ├── pyzabbix.py │ │ │ └── ds.sh │ │ └── health │ │ │ └── index.php │ ├── docker-compose.yml │ ├── docker-compose-v2.yml │ └── retag.sh ├── dockbix-xxl-3.4 │ ├── container-files-base │ │ ├── etc │ │ │ ├── nginx │ │ │ │ ├── nginx.d │ │ │ │ │ ├── 20-logs.conf │ │ │ │ │ ├── 10-mime.conf │ │ │ │ │ ├── 90-misc.conf │ │ │ │ │ ├── 80-proxy-buffers.conf │ │ │ │ │ ├── 80-buffers.conf │ │ │ │ │ └── 30-gzip.conf │ │ │ │ ├── addon.d │ │ │ │ │ ├── php-upstream.conf │ │ │ │ │ ├── http_realip.conf │ │ │ │ │ └── fastcgi-cache.example │ │ │ │ ├── conf.d │ │ │ │ │ ├── stub-status.conf │ │ │ │ │ ├── php-location.conf │ │ │ │ │ ├── default-01-security.conf │ │ │ │ │ ├── default-20-common-files.conf │ │ │ │ │ ├── default-10-expires.conf │ │ │ │ │ └── fpm-status.conf │ │ │ │ ├── hosts.d │ │ │ │ │ └── default.conf │ │ │ │ ├── nginx.conf │ │ │ │ └── fastcgi_params │ │ │ ├── supervisor.d │ │ │ │ ├── php-fpm.conf │ │ │ │ └── nginx.conf │ │ │ ├── php-fpm.conf │ │ │ ├── php.d │ │ │ │ ├── zz-php-56.ini │ │ │ │ └── zz-php.ini │ │ │ ├── php-fpm.d │ │ │ │ └── www.conf │ │ │ └── supervisord.conf │ │ └── config │ │ │ ├── init │ │ │ ├── vhost-proxy.conf │ │ │ ├── 10-nginx-cache-dirs.sh │ │ │ ├── vhost-proxy-https.conf │ │ │ ├── 10-nginx-data-dirs.sh │ │ │ ├── 10-nginx-stub-status.sh │ │ │ ├── 10-php-fpm-status.sh │ │ │ └── 10-nginx-internal-proxy.sh │ │ │ └── bootstrap.sh │ ├── container-files-dockbix-xxl │ │ ├── usr │ │ │ └── local │ │ │ │ └── src │ │ │ │ └── zabbix │ │ │ │ ├── frontends │ │ │ │ └── php │ │ │ │ │ ├── grapher │ │ │ │ │ ├── index.php │ │ │ │ │ ├── chosen-sprite.png │ │ │ │ │ ├── chosen-sprite@2x.png │ │ │ │ │ └── grapher.css │ │ │ │ │ ├── zapix │ │ │ │ │ ├── assets │ │ │ │ │ │ ├── favicon.ico │ │ │ │ │ │ └── favicon.png │ │ │ │ │ └── css │ │ │ │ │ │ ├── img │ │ │ │ │ │ ├── glyphicons-halflings.png │ │ │ │ │ │ └── glyphicons-halflings-white.png │ │ │ │ │ │ ├── bootstrap │ │ │ │ │ │ └── LICENSE │ │ │ │ │ │ └── style.css │ │ │ │ │ ├── searcher │ │ │ │ │ ├── assets │ │ │ │ │ │ ├── donate-button.png │ │ │ │ │ │ ├── donate-button2.png │ │ │ │ │ │ ├── Monitoring-Artist-logo.jpg │ │ │ │ │ │ └── Monitoring-Artist-logo.png │ │ │ │ │ └── javascripts │ │ │ │ │ │ └── search.js │ │ │ │ │ ├── grapher.php │ │ │ │ │ └── updatechecker │ │ │ │ │ └── updatechecker.js │ │ │ │ └── supervisord-listener.py │ │ ├── etc │ │ │ ├── zabbix │ │ │ │ └── api │ │ │ │ │ ├── 01-enable-zabbix-server.api │ │ │ │ │ ├── 06-enable-dockbix-agent-auto-registration.api │ │ │ │ │ └── 02-create-regular-expressions.sql │ │ │ └── supervisor.d │ │ │ │ └── analytics.conf │ │ └── config │ │ │ └── init │ │ │ ├── 14-xxl-env-variables.sh │ │ │ └── 12-xxl-ping.sh │ ├── container-files-zabbix │ │ ├── usr │ │ │ └── local │ │ │ │ └── etc │ │ │ │ ├── zabbix_java_gateway.conf │ │ │ │ ├── logback.xml │ │ │ │ ├── zabbix_server.conf │ │ │ │ ├── zabbix_agentd.conf │ │ │ │ └── web │ │ │ │ └── zabbix.conf.php │ │ ├── etc │ │ │ ├── sudoers.d │ │ │ │ └── zabbix │ │ │ ├── php.d │ │ │ │ └── zz-zabbix.ini │ │ │ ├── supervisor.d │ │ │ │ ├── snmptrapd.conf │ │ │ │ ├── zabbix-proxy.conf │ │ │ │ ├── zabbix-agent.conf │ │ │ │ ├── zabbix-server.conf │ │ │ │ └── zabbix-java-gateway.conf │ │ │ ├── nginx │ │ │ │ └── hosts.d │ │ │ │ │ ├── default.conf │ │ │ │ │ └── ssl-nginx.conf │ │ │ └── snmp │ │ │ │ ├── snmptrapd.conf │ │ │ │ └── snmptt.conf │ │ ├── config │ │ │ ├── pyzabbix.py │ │ │ └── ds.sh │ │ └── health │ │ │ └── index.php │ ├── docker-compose.yml │ ├── docker-compose-v2.yml │ └── retag.sh └── dockbix-xxl-4.0 │ ├── container-files-base │ ├── etc │ │ ├── nginx │ │ │ ├── nginx.d │ │ │ │ ├── 20-logs.conf │ │ │ │ ├── 10-mime.conf │ │ │ │ ├── 90-misc.conf │ │ │ │ ├── 80-proxy-buffers.conf │ │ │ │ ├── 80-buffers.conf │ │ │ │ └── 30-gzip.conf │ │ │ ├── addon.d │ │ │ │ ├── php-upstream.conf │ │ │ │ ├── http_realip.conf │ │ │ │ └── fastcgi-cache.example │ │ │ ├── conf.d │ │ │ │ ├── stub-status.conf │ │ │ │ ├── php-location.conf │ │ │ │ ├── default-01-security.conf │ │ │ │ ├── default-20-common-files.conf │ │ │ │ ├── default-10-expires.conf │ │ │ │ └── fpm-status.conf │ │ │ ├── hosts.d │ │ │ │ └── default.conf │ │ │ ├── nginx.conf │ │ │ └── fastcgi_params │ │ ├── supervisor.d │ │ │ ├── php-fpm.conf │ │ │ └── nginx.conf │ │ ├── php-fpm.conf │ │ ├── php.d │ │ │ ├── zz-php-56.ini │ │ │ └── zz-php.ini │ │ ├── php-fpm.d │ │ │ └── www.conf │ │ └── supervisord.conf │ └── config │ │ ├── init │ │ ├── vhost-proxy.conf │ │ ├── 10-nginx-cache-dirs.sh │ │ ├── vhost-proxy-https.conf │ │ ├── 10-nginx-data-dirs.sh │ │ ├── 10-nginx-stub-status.sh │ │ ├── 10-php-fpm-status.sh │ │ └── 10-nginx-internal-proxy.sh │ │ └── bootstrap.sh │ ├── container-files-dockbix-xxl │ ├── usr │ │ └── local │ │ │ └── src │ │ │ └── zabbix │ │ │ ├── frontends │ │ │ └── php │ │ │ │ ├── grapher │ │ │ │ ├── index.php │ │ │ │ ├── chosen-sprite.png │ │ │ │ ├── chosen-sprite@2x.png │ │ │ │ └── grapher.css │ │ │ │ ├── zapix │ │ │ │ ├── assets │ │ │ │ │ ├── favicon.ico │ │ │ │ │ └── favicon.png │ │ │ │ └── css │ │ │ │ │ ├── img │ │ │ │ │ ├── glyphicons-halflings.png │ │ │ │ │ └── glyphicons-halflings-white.png │ │ │ │ │ ├── bootstrap │ │ │ │ │ └── LICENSE │ │ │ │ │ └── style.css │ │ │ │ ├── searcher │ │ │ │ ├── assets │ │ │ │ │ ├── donate-button.png │ │ │ │ │ ├── donate-button2.png │ │ │ │ │ ├── Monitoring-Artist-logo.jpg │ │ │ │ │ └── Monitoring-Artist-logo.png │ │ │ │ └── javascripts │ │ │ │ │ └── search.js │ │ │ │ ├── grapher.php │ │ │ │ └── updatechecker │ │ │ │ └── updatechecker.js │ │ │ └── supervisord-listener.py │ ├── etc │ │ ├── zabbix │ │ │ └── api │ │ │ │ ├── 01-enable-zabbix-server.api │ │ │ │ ├── 06-enable-dockbix-agent-auto-registration.api │ │ │ │ └── 02-create-regular-expressions.sql │ │ └── supervisor.d │ │ │ └── analytics.conf │ └── config │ │ └── init │ │ ├── 14-xxl-env-variables.sh │ │ └── 12-xxl-ping.sh │ ├── container-files-zabbix │ ├── usr │ │ └── local │ │ │ └── etc │ │ │ ├── zabbix_java_gateway.conf │ │ │ ├── logback.xml │ │ │ ├── zabbix_server.conf │ │ │ ├── zabbix_agentd.conf │ │ │ └── web │ │ │ └── zabbix.conf.php │ ├── etc │ │ ├── sudoers.d │ │ │ └── zabbix │ │ ├── php.d │ │ │ └── zz-zabbix.ini │ │ ├── supervisor.d │ │ │ ├── snmptrapd.conf │ │ │ ├── zabbix-proxy.conf │ │ │ ├── zabbix-agent.conf │ │ │ ├── zabbix-server.conf │ │ │ └── zabbix-java-gateway.conf │ │ ├── nginx │ │ │ └── hosts.d │ │ │ │ ├── default.conf │ │ │ │ └── ssl-nginx.conf │ │ └── snmp │ │ │ ├── snmptrapd.conf │ │ │ └── snmptt.conf │ ├── config │ │ ├── pyzabbix.py │ │ └── ds.sh │ └── health │ │ └── index.php │ ├── docker-compose.yml │ ├── docker-compose-v2.yml │ └── retag.sh ├── artifacts ├── deploy_key.enc └── deploy.sh ├── doc ├── dockbix-xxl-zapix.png ├── dockbix-xxl-grapher.png ├── dockbix-docker-playground.gif ├── dockbix-xxl-updatechecker.png └── dockbix-xxl-zabbix-searcher.png ├── latest ├── .travis.yml ├── stack-play-with-docker-dev.yml ├── stack-play-with-docker.yml ├── ISSUE_TEMPLATE.md └── circle.yml /Dockerfile/zabbix-db-mariadb/container-files/etc/my.cnf.d/security.cnf: -------------------------------------------------------------------------------- 1 | [mysqld] 2 | skip_show_database 3 | -------------------------------------------------------------------------------- /artifacts/deploy_key.enc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/artifacts/deploy_key.enc -------------------------------------------------------------------------------- /doc/dockbix-xxl-zapix.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/doc/dockbix-xxl-zapix.png -------------------------------------------------------------------------------- /doc/dockbix-xxl-grapher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/doc/dockbix-xxl-grapher.png -------------------------------------------------------------------------------- /doc/dockbix-docker-playground.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/doc/dockbix-docker-playground.gif -------------------------------------------------------------------------------- /doc/dockbix-xxl-updatechecker.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/doc/dockbix-xxl-updatechecker.png -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/etc/nginx/nginx.d/20-logs.conf: -------------------------------------------------------------------------------- 1 | access_log off; 2 | error_log /data/logs/nginx-error.log; 3 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/etc/nginx/nginx.d/20-logs.conf: -------------------------------------------------------------------------------- 1 | access_log off; 2 | error_log /data/logs/nginx-error.log; 3 | -------------------------------------------------------------------------------- /doc/dockbix-xxl-zabbix-searcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/doc/dockbix-xxl-zabbix-searcher.png -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/etc/nginx/nginx.d/20-logs.conf: -------------------------------------------------------------------------------- 1 | access_log off; 2 | error_log /data/logs/nginx-error.log; 3 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/etc/nginx/nginx.d/20-logs.conf: -------------------------------------------------------------------------------- 1 | access_log off; 2 | error_log /data/logs/nginx-error.log; 3 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-zabbix/usr/local/etc/zabbix_java_gateway.conf: -------------------------------------------------------------------------------- 1 | LISTEN_IP="0.0.0.0" 2 | PID_FILE="/var/run/zabbix_java.pid" -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix-xxl/usr/local/src/zabbix/frontends/php/grapher/index.php: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix/usr/local/etc/zabbix_java_gateway.conf: -------------------------------------------------------------------------------- 1 | LISTEN_IP="0.0.0.0" 2 | PID_FILE="/var/run/zabbix_java.pid" 3 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/grapher/index.php: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-zabbix/usr/local/etc/zabbix_java_gateway.conf: -------------------------------------------------------------------------------- 1 | LISTEN_IP="0.0.0.0" 2 | PID_FILE="/var/run/zabbix_java.pid" 3 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/grapher/index.php: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-zabbix/usr/local/etc/zabbix_java_gateway.conf: -------------------------------------------------------------------------------- 1 | LISTEN_IP="0.0.0.0" 2 | PID_FILE="/var/run/zabbix_java.pid" 3 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/etc/nginx/nginx.d/10-mime.conf: -------------------------------------------------------------------------------- 1 | include /etc/nginx/mime.types; 2 | default_type application/octet-stream; 3 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/etc/nginx/nginx.d/10-mime.conf: -------------------------------------------------------------------------------- 1 | include /etc/nginx/mime.types; 2 | default_type application/octet-stream; 3 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/etc/nginx/nginx.d/10-mime.conf: -------------------------------------------------------------------------------- 1 | include /etc/nginx/mime.types; 2 | default_type application/octet-stream; 3 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/etc/nginx/nginx.d/10-mime.conf: -------------------------------------------------------------------------------- 1 | include /etc/nginx/mime.types; 2 | default_type application/octet-stream; 3 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/etc/nginx/addon.d/php-upstream.conf: -------------------------------------------------------------------------------- 1 | upstream php-upstream { 2 | server unix:/var/run/php-fpm-www.sock; 3 | } 4 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-db-mariadb/container-files/etc/my.cnf.d/engine.cnf: -------------------------------------------------------------------------------- 1 | [mysqld] 2 | default-storage-engine = InnoDB 3 | innodb = FORCE 4 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/etc/nginx/addon.d/php-upstream.conf: -------------------------------------------------------------------------------- 1 | upstream php-upstream { 2 | server unix:/var/run/php-fpm-www.sock; 3 | } 4 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/etc/nginx/addon.d/php-upstream.conf: -------------------------------------------------------------------------------- 1 | upstream php-upstream { 2 | server unix:/var/run/php-fpm-www.sock; 3 | } 4 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/etc/nginx/addon.d/php-upstream.conf: -------------------------------------------------------------------------------- 1 | upstream php-upstream { 2 | server unix:/var/run/php-fpm-www.sock; 3 | } 4 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/etc/nginx/conf.d/stub-status.conf: -------------------------------------------------------------------------------- 1 | location /nginx_status { 2 | stub_status; 3 | allow 127.0.0.1; 4 | deny all; 5 | } -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/etc/nginx/conf.d/stub-status.conf: -------------------------------------------------------------------------------- 1 | location /nginx_status { 2 | stub_status; 3 | allow 127.0.0.1; 4 | deny all; 5 | } -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/etc/nginx/conf.d/stub-status.conf: -------------------------------------------------------------------------------- 1 | location /nginx_status { 2 | stub_status; 3 | allow 127.0.0.1; 4 | deny all; 5 | } -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/etc/nginx/conf.d/stub-status.conf: -------------------------------------------------------------------------------- 1 | location /nginx_status { 2 | stub_status; 3 | allow 127.0.0.1; 4 | deny all; 5 | } -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/etc/nginx/addon.d/http_realip.conf: -------------------------------------------------------------------------------- 1 | set_real_ip_from 127.0.0.1; 2 | real_ip_header X-Forwarded-For; 3 | real_ip_recursive off; 4 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/etc/nginx/addon.d/http_realip.conf: -------------------------------------------------------------------------------- 1 | set_real_ip_from 127.0.0.1; 2 | real_ip_header X-Forwarded-For; 3 | real_ip_recursive off; 4 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/etc/nginx/addon.d/http_realip.conf: -------------------------------------------------------------------------------- 1 | set_real_ip_from 127.0.0.1; 2 | real_ip_header X-Forwarded-For; 3 | real_ip_recursive off; 4 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/etc/nginx/addon.d/http_realip.conf: -------------------------------------------------------------------------------- 1 | set_real_ip_from 127.0.0.1; 2 | real_ip_header X-Forwarded-For; 3 | real_ip_recursive off; 4 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/etc/nginx/conf.d/php-location.conf: -------------------------------------------------------------------------------- 1 | location ~ \.php$ { 2 | include fastcgi_params; 3 | fastcgi_pass php-upstream; 4 | } 5 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/etc/nginx/conf.d/php-location.conf: -------------------------------------------------------------------------------- 1 | location ~ \.php$ { 2 | include fastcgi_params; 3 | fastcgi_pass php-upstream; 4 | } 5 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/etc/nginx/conf.d/php-location.conf: -------------------------------------------------------------------------------- 1 | location ~ \.php$ { 2 | include fastcgi_params; 3 | fastcgi_pass php-upstream; 4 | } 5 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/etc/nginx/conf.d/php-location.conf: -------------------------------------------------------------------------------- 1 | location ~ \.php$ { 2 | include fastcgi_params; 3 | fastcgi_pass php-upstream; 4 | } 5 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/etc/nginx/conf.d/default-01-security.conf: -------------------------------------------------------------------------------- 1 | # no access to .hidden files (eg .htaccess) 2 | location ~ /\. { 3 | deny all; 4 | log_not_found off; 5 | } 6 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/etc/nginx/conf.d/default-01-security.conf: -------------------------------------------------------------------------------- 1 | # no access to .hidden files (eg .htaccess) 2 | location ~ /\. { 3 | deny all; 4 | log_not_found off; 5 | } 6 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix-xxl/etc/zabbix/api/01-enable-zabbix-server.api: -------------------------------------------------------------------------------- 1 | {"jsonrpc":"2.0","method":"host.update","id":,"auth":"","params":{"hostid":"10084","status":0}} -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/etc/nginx/conf.d/default-01-security.conf: -------------------------------------------------------------------------------- 1 | # no access to .hidden files (eg .htaccess) 2 | location ~ /\. { 3 | deny all; 4 | log_not_found off; 5 | } 6 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/etc/nginx/conf.d/default-01-security.conf: -------------------------------------------------------------------------------- 1 | # no access to .hidden files (eg .htaccess) 2 | location ~ /\. { 3 | deny all; 4 | log_not_found off; 5 | } 6 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/etc/zabbix/api/01-enable-zabbix-server.api: -------------------------------------------------------------------------------- 1 | {"jsonrpc":"2.0","method":"host.update","id":,"auth":"","params":{"hostid":"10084","status":0}} 2 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/etc/zabbix/api/01-enable-zabbix-server.api: -------------------------------------------------------------------------------- 1 | {"jsonrpc":"2.0","method":"host.update","id":,"auth":"","params":{"hostid":"10084","status":0}} 2 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-zabbix/etc/logrotate.d/zabbix-traps: -------------------------------------------------------------------------------- 1 | /tmp/zabbix_traps.tmp { 2 | daily 3 | notifempty 4 | missingok 5 | rotate 7 6 | compress 7 | delaycompress 8 | } 9 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/etc/supervisor.d/php-fpm.conf: -------------------------------------------------------------------------------- 1 | [program:php-fpm] 2 | command = php-fpm 3 | autorestart = true 4 | stdout_logfile = /data/logs/php-fpm.log 5 | stderr_logfile = /data/logs/php-fpm.log 6 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/etc/supervisor.d/php-fpm.conf: -------------------------------------------------------------------------------- 1 | [program:php-fpm] 2 | command = php-fpm 3 | autorestart = true 4 | stdout_logfile = /data/logs/php-fpm.log 5 | stderr_logfile = /data/logs/php-fpm.log 6 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/etc/supervisor.d/php-fpm.conf: -------------------------------------------------------------------------------- 1 | [program:php-fpm] 2 | command = php-fpm 3 | autorestart = true 4 | stdout_logfile = /data/logs/php-fpm.log 5 | stderr_logfile = /data/logs/php-fpm.log 6 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/etc/supervisor.d/php-fpm.conf: -------------------------------------------------------------------------------- 1 | [program:php-fpm] 2 | command = php-fpm 3 | autorestart = true 4 | stdout_logfile = /data/logs/php-fpm.log 5 | stderr_logfile = /data/logs/php-fpm.log 6 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/etc/nginx/conf.d/default-20-common-files.conf: -------------------------------------------------------------------------------- 1 | location = /favicon.ico { 2 | log_not_found off; 3 | } 4 | 5 | location = /robots.txt { 6 | allow all; 7 | log_not_found off; 8 | } 9 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/etc/php-fpm.conf: -------------------------------------------------------------------------------- 1 | include=/etc/php-fpm.d/*.conf 2 | 3 | [global] 4 | daemonize = no 5 | pid = /var/run/php-fpm.pid 6 | error_log = /data/logs/php-fpm-daemon.log 7 | log_level = warning 8 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/etc/nginx/conf.d/default-20-common-files.conf: -------------------------------------------------------------------------------- 1 | location = /favicon.ico { 2 | log_not_found off; 3 | } 4 | 5 | location = /robots.txt { 6 | allow all; 7 | log_not_found off; 8 | } 9 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/etc/php-fpm.conf: -------------------------------------------------------------------------------- 1 | include=/etc/php-fpm.d/*.conf 2 | 3 | [global] 4 | daemonize = no 5 | pid = /var/run/php-fpm.pid 6 | error_log = /data/logs/php-fpm-daemon.log 7 | log_level = warning 8 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/etc/nginx/conf.d/default-20-common-files.conf: -------------------------------------------------------------------------------- 1 | location = /favicon.ico { 2 | log_not_found off; 3 | } 4 | 5 | location = /robots.txt { 6 | allow all; 7 | log_not_found off; 8 | } 9 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/etc/php-fpm.conf: -------------------------------------------------------------------------------- 1 | include=/etc/php-fpm.d/*.conf 2 | 3 | [global] 4 | daemonize = no 5 | pid = /var/run/php-fpm.pid 6 | error_log = /data/logs/php-fpm-daemon.log 7 | log_level = warning 8 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/etc/nginx/conf.d/default-20-common-files.conf: -------------------------------------------------------------------------------- 1 | location = /favicon.ico { 2 | log_not_found off; 3 | } 4 | 5 | location = /robots.txt { 6 | allow all; 7 | log_not_found off; 8 | } 9 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/etc/php-fpm.conf: -------------------------------------------------------------------------------- 1 | include=/etc/php-fpm.d/*.conf 2 | 3 | [global] 4 | daemonize = no 5 | pid = /var/run/php-fpm.pid 6 | error_log = /data/logs/php-fpm-daemon.log 7 | log_level = warning 8 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-zabbix/etc/supervisor.d/zabbix-server.conf: -------------------------------------------------------------------------------- 1 | [program:zabbix-server] 2 | command = /config/ds.sh /var/run/zabbix_server.pid zabbix_server -c /usr/local/etc/zabbix_server.conf 3 | autorestart = true 4 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix/etc/supervisor.d/zabbix-proxy.conf: -------------------------------------------------------------------------------- 1 | [program:zabbix-proxy] 2 | command = sudo -u %(ENV_ZP_User)s /usr/local/sbin/zabbix_proxy -f -c /usr/local/etc/zabbix_proxy.conf 3 | autorestart = true 4 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-zabbix/etc/supervisor.d/snmptrapd.conf: -------------------------------------------------------------------------------- 1 | [program:snmptrapd] 2 | command = /usr/sbin/snmptrapd -f -Lo -n -M+/etc/zabbix/snmp/mibs -m+ALL 3 | #command = /usr/sbin/snmptrapd -Lsd -f 4 | autorestart = true 5 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix-xxl/etc/supervisor.d/analytics.conf: -------------------------------------------------------------------------------- 1 | [eventlistener:analytics] 2 | command = /usr/bin/bash -c 'while true; do sleep 3600; /usr/bin/bash /config/init/12-xxl-ping.sh; done' 3 | events = TICK_3600 4 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix/etc/supervisor.d/snmptrapd.conf: -------------------------------------------------------------------------------- 1 | [program:snmptrapd] 2 | command = /usr/sbin/snmptrapd -f -Lo -n -M+/etc/zabbix/snmp/mibs -m+ALL 3 | #command = /usr/sbin/snmptrapd -Lsd -f 4 | autorestart = true 5 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-zabbix/etc/sudoers.d/zabbix: -------------------------------------------------------------------------------- 1 | # Zabbix Sudoer configuration required to provide OS Discovery through `nmap` 2 | zabbix ALL=(ALL) NOPASSWD:ALL 3 | Defaults!/usr/bin/nmap !requiretty 4 | Defaults:zabbix !requiretty 5 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix/etc/sudoers.d/zabbix: -------------------------------------------------------------------------------- 1 | # Zabbix Sudoer configuration required to provide OS Discovery through `nmap` 2 | zabbix ALL=(ALL) NOPASSWD:ALL 3 | Defaults!/usr/bin/nmap !requiretty 4 | Defaults:zabbix !requiretty 5 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-zabbix/etc/sudoers.d/zabbix: -------------------------------------------------------------------------------- 1 | # Zabbix Sudoer configuration required to provide OS Discovery through `nmap` 2 | zabbix ALL=(ALL) NOPASSWD:ALL 3 | Defaults!/usr/bin/nmap !requiretty 4 | Defaults:zabbix !requiretty 5 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-zabbix/etc/sudoers.d/zabbix: -------------------------------------------------------------------------------- 1 | # Zabbix Sudoer configuration required to provide OS Discovery through `nmap` 2 | zabbix ALL=(ALL) NOPASSWD:ALL 3 | Defaults!/usr/bin/nmap !requiretty 4 | Defaults:zabbix !requiretty 5 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/etc/nginx/conf.d/default-10-expires.conf: -------------------------------------------------------------------------------- 1 | # static content: 2 | # - images 3 | # - flash 4 | # - fonts 5 | # - css/js 6 | location ~* \.(?:jpe?g|gif|png|ico|swf|svg|eot|ttf|otf|woff|htc|css|js)$ { 7 | expires max; 8 | } 9 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/etc/nginx/conf.d/default-10-expires.conf: -------------------------------------------------------------------------------- 1 | # static content: 2 | # - images 3 | # - flash 4 | # - fonts 5 | # - css/js 6 | location ~* \.(?:jpe?g|gif|png|ico|swf|svg|eot|ttf|otf|woff|htc|css|js)$ { 7 | expires max; 8 | } 9 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/etc/nginx/conf.d/default-10-expires.conf: -------------------------------------------------------------------------------- 1 | # static content: 2 | # - images 3 | # - flash 4 | # - fonts 5 | # - css/js 6 | location ~* \.(?:jpe?g|gif|png|ico|swf|svg|eot|ttf|otf|woff|htc|css|js)$ { 7 | expires max; 8 | } 9 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/etc/nginx/conf.d/default-10-expires.conf: -------------------------------------------------------------------------------- 1 | # static content: 2 | # - images 3 | # - flash 4 | # - fonts 5 | # - css/js 6 | location ~* \.(?:jpe?g|gif|png|ico|swf|svg|eot|ttf|otf|woff|htc|css|js)$ { 7 | expires max; 8 | } 9 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-zabbix/etc/php.d/zz-zabbix.ini: -------------------------------------------------------------------------------- 1 | date.timezone = PHP_date_timezone 2 | max_execution_time = PHP_max_execution_time 3 | max_input_time = PHP_max_input_time 4 | memory_limit = PHP_memory_limit 5 | error_reporting = PHP_error_reporting 6 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-db-mariadb/container-files/etc/my.cnf.d/charsets.cnf: -------------------------------------------------------------------------------- 1 | [mysqld] 2 | character_set_server = utf8 3 | collation_server = utf8_unicode_ci 4 | skip-character-set-client-handshake 5 | 6 | [client] 7 | default_character_set = utf8 8 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix/etc/php.d/zz-zabbix.ini: -------------------------------------------------------------------------------- 1 | date.timezone = PHP_date_timezone 2 | max_execution_time = PHP_max_execution_time 3 | max_input_time = PHP_max_input_time 4 | memory_limit = PHP_memory_limit 5 | error_reporting = PHP_error_reporting 6 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix/etc/supervisor.d/zabbix-agent.conf: -------------------------------------------------------------------------------- 1 | [program:zabbix-agent] 2 | command = /config/ds.sh %(ENV_ZA_PidFile)s sudo -u %(ENV_ZA_User)s /usr/local/sbin/zabbix_agentd -f -c /usr/local/etc/zabbix_agentd.conf 3 | autorestart = true 4 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix/etc/supervisor.d/zabbix-server.conf: -------------------------------------------------------------------------------- 1 | [program:zabbix-server] 2 | command = /config/ds.sh %(ENV_ZS_PidFile)s sudo -u %(ENV_ZS_User)s /usr/local/sbin/zabbix_server -f -c /usr/local/etc/zabbix_server.conf 3 | autorestart = true 4 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-zabbix/etc/php.d/zz-zabbix.ini: -------------------------------------------------------------------------------- 1 | date.timezone = PHP_date_timezone 2 | max_execution_time = PHP_max_execution_time 3 | max_input_time = PHP_max_input_time 4 | memory_limit = PHP_memory_limit 5 | error_reporting = PHP_error_reporting 6 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-zabbix/etc/php.d/zz-zabbix.ini: -------------------------------------------------------------------------------- 1 | date.timezone = PHP_date_timezone 2 | max_execution_time = PHP_max_execution_time 3 | max_input_time = PHP_max_input_time 4 | memory_limit = PHP_memory_limit 5 | error_reporting = PHP_error_reporting 6 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-zabbix/etc/supervisor.d/snmptrapd.conf: -------------------------------------------------------------------------------- 1 | [program:snmptrapd] 2 | command = /usr/sbin/snmptrapd -f -Lo -n -M+/etc/zabbix/snmp/mibs -m+ALL 3 | autorestart = true 4 | auto_start = true 5 | 6 | stderr_logfile = NONE 7 | stdout_logfile = NONE 8 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-zabbix/etc/supervisor.d/snmptrapd.conf: -------------------------------------------------------------------------------- 1 | [program:snmptrapd] 2 | command = /usr/sbin/snmptrapd -f -Lo -n -M+/etc/zabbix/snmp/mibs -m+ALL 3 | autorestart = true 4 | auto_start = true 5 | 6 | stderr_logfile = NONE 7 | stdout_logfile = NONE 8 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix-xxl/usr/local/src/zabbix/frontends/php/zapix/assets/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/Dockerfile/zabbix-xxl/container-files-zabbix-xxl/usr/local/src/zabbix/frontends/php/zapix/assets/favicon.ico -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix-xxl/usr/local/src/zabbix/frontends/php/zapix/assets/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/Dockerfile/zabbix-xxl/container-files-zabbix-xxl/usr/local/src/zabbix/frontends/php/zapix/assets/favicon.png -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix-xxl/usr/local/src/zabbix/frontends/php/grapher/chosen-sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/Dockerfile/zabbix-xxl/container-files-zabbix-xxl/usr/local/src/zabbix/frontends/php/grapher/chosen-sprite.png -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix-xxl/usr/local/src/zabbix/frontends/php/grapher/chosen-sprite@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/Dockerfile/zabbix-xxl/container-files-zabbix-xxl/usr/local/src/zabbix/frontends/php/grapher/chosen-sprite@2x.png -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/grapher/chosen-sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/grapher/chosen-sprite.png -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/zapix/assets/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/zapix/assets/favicon.ico -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/zapix/assets/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/zapix/assets/favicon.png -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/grapher/chosen-sprite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/grapher/chosen-sprite.png -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/zapix/assets/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/zapix/assets/favicon.ico -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/zapix/assets/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/zapix/assets/favicon.png -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/etc/php.d/zz-php-56.ini: -------------------------------------------------------------------------------- 1 | ; Completely switch off populating $HTTP_RAW_POST_DATA 2 | ; to remove the warning about deprecated usage. 3 | ; http://php.net/manual/en/ini.core.php#ini.always-populate-raw-post-data 4 | always_populate_raw_post_data = -1 5 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/etc/php.d/zz-php-56.ini: -------------------------------------------------------------------------------- 1 | ; Completely switch off populating $HTTP_RAW_POST_DATA 2 | ; to remove the warning about deprecated usage. 3 | ; http://php.net/manual/en/ini.core.php#ini.always-populate-raw-post-data 4 | always_populate_raw_post_data = -1 5 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/etc/php.d/zz-php-56.ini: -------------------------------------------------------------------------------- 1 | ; Completely switch off populating $HTTP_RAW_POST_DATA 2 | ; to remove the warning about deprecated usage. 3 | ; http://php.net/manual/en/ini.core.php#ini.always-populate-raw-post-data 4 | always_populate_raw_post_data = -1 5 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/grapher/chosen-sprite@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/grapher/chosen-sprite@2x.png -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/etc/php.d/zz-php-56.ini: -------------------------------------------------------------------------------- 1 | ; Completely switch off populating $HTTP_RAW_POST_DATA 2 | ; to remove the warning about deprecated usage. 3 | ; http://php.net/manual/en/ini.core.php#ini.always-populate-raw-post-data 4 | always_populate_raw_post_data = -1 5 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/grapher/chosen-sprite@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/grapher/chosen-sprite@2x.png -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix-xxl/usr/local/src/zabbix/frontends/php/searcher/assets/donate-button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/Dockerfile/zabbix-xxl/container-files-zabbix-xxl/usr/local/src/zabbix/frontends/php/searcher/assets/donate-button.png -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix-xxl/usr/local/src/zabbix/frontends/php/searcher/assets/donate-button2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/Dockerfile/zabbix-xxl/container-files-zabbix-xxl/usr/local/src/zabbix/frontends/php/searcher/assets/donate-button2.png -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-zabbix/etc/supervisor.d/zabbix-agent.conf: -------------------------------------------------------------------------------- 1 | # not implemented for now - it needs custom source code patching 2 | #[program:zabbix-agent] 3 | #command = /config/ds.sh /var/run/zabbix_agentd.pid zabbix_agentd -c /usr/local/etc/zabbix_agentd.conf 4 | #autorestart = true 5 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/searcher/assets/donate-button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/searcher/assets/donate-button.png -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/searcher/assets/donate-button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/searcher/assets/donate-button.png -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/etc/nginx/conf.d/fpm-status.conf: -------------------------------------------------------------------------------- 1 | location /fpm_status { 2 | access_log off; 3 | allow 127.0.0.1; 4 | deny all; 5 | include fastcgi_params; 6 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 7 | fastcgi_pass php-upstream; 8 | } -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/etc/nginx/nginx.d/90-misc.conf: -------------------------------------------------------------------------------- 1 | server_tokens off; 2 | 3 | sendfile on; 4 | 5 | server_names_hash_bucket_size 128; 6 | types_hash_max_size 2048; 7 | types_hash_bucket_size 64; 8 | 9 | tcp_nopush on; 10 | tcp_nodelay on; 11 | 12 | keepalive_timeout 15; 13 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/etc/nginx/conf.d/fpm-status.conf: -------------------------------------------------------------------------------- 1 | location /fpm_status { 2 | access_log off; 3 | allow 127.0.0.1; 4 | deny all; 5 | include fastcgi_params; 6 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 7 | fastcgi_pass php-upstream; 8 | } -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/etc/nginx/nginx.d/90-misc.conf: -------------------------------------------------------------------------------- 1 | server_tokens off; 2 | 3 | sendfile on; 4 | 5 | server_names_hash_bucket_size 128; 6 | types_hash_max_size 2048; 7 | types_hash_bucket_size 64; 8 | 9 | tcp_nopush on; 10 | tcp_nodelay on; 11 | 12 | keepalive_timeout 15; 13 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix-xxl/usr/local/src/zabbix/frontends/php/zapix/css/img/glyphicons-halflings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/Dockerfile/zabbix-xxl/container-files-zabbix-xxl/usr/local/src/zabbix/frontends/php/zapix/css/img/glyphicons-halflings.png -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/etc/nginx/conf.d/fpm-status.conf: -------------------------------------------------------------------------------- 1 | location /fpm_status { 2 | access_log off; 3 | allow 127.0.0.1; 4 | deny all; 5 | include fastcgi_params; 6 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 7 | fastcgi_pass php-upstream; 8 | } -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/etc/nginx/nginx.d/90-misc.conf: -------------------------------------------------------------------------------- 1 | server_tokens off; 2 | 3 | sendfile on; 4 | 5 | server_names_hash_bucket_size 128; 6 | types_hash_max_size 2048; 7 | types_hash_bucket_size 64; 8 | 9 | tcp_nopush on; 10 | tcp_nodelay on; 11 | 12 | keepalive_timeout 15; 13 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/searcher/assets/donate-button2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/searcher/assets/donate-button2.png -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/etc/nginx/conf.d/fpm-status.conf: -------------------------------------------------------------------------------- 1 | location /fpm_status { 2 | access_log off; 3 | allow 127.0.0.1; 4 | deny all; 5 | include fastcgi_params; 6 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 7 | fastcgi_pass php-upstream; 8 | } -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/etc/nginx/nginx.d/90-misc.conf: -------------------------------------------------------------------------------- 1 | server_tokens off; 2 | 3 | sendfile on; 4 | 5 | server_names_hash_bucket_size 128; 6 | types_hash_max_size 2048; 7 | types_hash_bucket_size 64; 8 | 9 | tcp_nopush on; 10 | tcp_nodelay on; 11 | 12 | keepalive_timeout 15; 13 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/searcher/assets/donate-button2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/searcher/assets/donate-button2.png -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/etc/nginx/nginx.d/80-proxy-buffers.conf: -------------------------------------------------------------------------------- 1 | # Increase slightly proxy buffer size and amount so it can 2 | # handle up to 512KB into the memory (vs. default 32|64kB). 3 | # Only used when proxy_pass directive is in place. 4 | proxy_buffer_size 32k; 5 | proxy_buffers 16 32k; 6 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/etc/nginx/nginx.d/80-proxy-buffers.conf: -------------------------------------------------------------------------------- 1 | # Increase slightly proxy buffer size and amount so it can 2 | # handle up to 512KB into the memory (vs. default 32|64kB). 3 | # Only used when proxy_pass directive is in place. 4 | proxy_buffer_size 32k; 5 | proxy_buffers 16 32k; 6 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix-xxl/usr/local/src/zabbix/frontends/php/searcher/assets/Monitoring-Artist-logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/Dockerfile/zabbix-xxl/container-files-zabbix-xxl/usr/local/src/zabbix/frontends/php/searcher/assets/Monitoring-Artist-logo.jpg -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix-xxl/usr/local/src/zabbix/frontends/php/searcher/assets/Monitoring-Artist-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/Dockerfile/zabbix-xxl/container-files-zabbix-xxl/usr/local/src/zabbix/frontends/php/searcher/assets/Monitoring-Artist-logo.png -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/etc/nginx/nginx.d/80-proxy-buffers.conf: -------------------------------------------------------------------------------- 1 | # Increase slightly proxy buffer size and amount so it can 2 | # handle up to 512KB into the memory (vs. default 32|64kB). 3 | # Only used when proxy_pass directive is in place. 4 | proxy_buffer_size 32k; 5 | proxy_buffers 16 32k; 6 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/zapix/css/img/glyphicons-halflings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/zapix/css/img/glyphicons-halflings.png -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/etc/nginx/nginx.d/80-proxy-buffers.conf: -------------------------------------------------------------------------------- 1 | # Increase slightly proxy buffer size and amount so it can 2 | # handle up to 512KB into the memory (vs. default 32|64kB). 3 | # Only used when proxy_pass directive is in place. 4 | proxy_buffer_size 32k; 5 | proxy_buffers 16 32k; 6 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/zapix/css/img/glyphicons-halflings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/zapix/css/img/glyphicons-halflings.png -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix-xxl/usr/local/src/zabbix/frontends/php/zapix/css/img/glyphicons-halflings-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/Dockerfile/zabbix-xxl/container-files-zabbix-xxl/usr/local/src/zabbix/frontends/php/zapix/css/img/glyphicons-halflings-white.png -------------------------------------------------------------------------------- /Dockerfile/zabbix-db-mariadb/container-files/etc/yum.repos.d/mariadb.repo: -------------------------------------------------------------------------------- 1 | # MariaDB 10.0 CentOS repository list 2 | # http://mariadb.org/mariadb/repositories/ 3 | [mariadb] 4 | name = MariaDB 5 | baseurl = http://yum.mariadb.org/10.0/centos7-amd64 6 | gpgkey = https://yum.mariadb.org/RPM-GPG-KEY-MariaDB 7 | gpgcheck = 1 8 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/searcher/assets/Monitoring-Artist-logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/searcher/assets/Monitoring-Artist-logo.jpg -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/searcher/assets/Monitoring-Artist-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/searcher/assets/Monitoring-Artist-logo.png -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/searcher/assets/Monitoring-Artist-logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/searcher/assets/Monitoring-Artist-logo.jpg -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/searcher/assets/Monitoring-Artist-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/searcher/assets/Monitoring-Artist-logo.png -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/zapix/css/img/glyphicons-halflings-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/zapix/css/img/glyphicons-halflings-white.png -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/zapix/css/img/glyphicons-halflings-white.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/zapix/css/img/glyphicons-halflings-white.png -------------------------------------------------------------------------------- /latest: -------------------------------------------------------------------------------- 1 | { 2 | "display": 1, 3 | "version": "4.0.6 Dockbix XXL (2019-03-31)", 4 | "text": "

New Dockbix Docker image version 4.0.6 Dockbix XXL (2019-03-31) is available!. See monitoringartist/dockbix-xxl:latest.

" 5 | } 6 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-zabbix/config/pyzabbix.py: -------------------------------------------------------------------------------- 1 | from zabbix.api import ZabbixAPI 2 | zapi = ZabbixAPI(url='http://localhost/', user='Admin', password='zabbix') 3 | hosts = zapi.host.getobjects(status=1) 4 | for host in hosts: 5 | print 'Enabling host: %s' % host['name'] 6 | zapi.host.update(hostid=host['hostid'],status=0) 7 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix/config/pyzabbix.py: -------------------------------------------------------------------------------- 1 | from zabbix.api import ZabbixAPI 2 | zapi = ZabbixAPI(url='http://localhost/', user='Admin', password='zabbix') 3 | hosts = zapi.host.getobjects(status=1) 4 | for host in hosts: 5 | print 'Enabling host: %s' % host['name'] 6 | zapi.host.update(hostid=host['hostid'],status=0) 7 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-zabbix/config/pyzabbix.py: -------------------------------------------------------------------------------- 1 | from zabbix.api import ZabbixAPI 2 | zapi = ZabbixAPI(url='http://localhost/', user='Admin', password='zabbix') 3 | hosts = zapi.host.getobjects(status=1) 4 | for host in hosts: 5 | print 'Enabling host: %s' % host['name'] 6 | zapi.host.update(hostid=host['hostid'],status=0) 7 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-zabbix/config/pyzabbix.py: -------------------------------------------------------------------------------- 1 | from zabbix.api import ZabbixAPI 2 | zapi = ZabbixAPI(url='http://localhost/', user='Admin', password='zabbix') 3 | hosts = zapi.host.getobjects(status=1) 4 | for host in hosts: 5 | print 'Enabling host: %s' % host['name'] 6 | zapi.host.update(hostid=host['hostid'],status=0) 7 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/config/init/10-nginx-stub-status.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Configure access IP address for nginx status page under /nginx_status 4 | # 5 | sed -i "s|allow 127.0.0.1|allow ${STATUS_PAGE_ALLOWED_IP}|g" /etc/nginx/conf.d/stub-status.conf 6 | echo "Nginx status page: allowed address set to $STATUS_PAGE_ALLOWED_IP." 7 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/config/init/10-php-fpm-status.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Configure access IP address for PHP-FPM satus page under /fpm_status 4 | # 5 | sed -i "s|allow 127.0.0.1|allow ${STATUS_PAGE_ALLOWED_IP}|g" /etc/nginx/conf.d/fpm-status.conf 6 | echo "PHP-FPM status page: allowed address set to $STATUS_PAGE_ALLOWED_IP." 7 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/config/init/10-nginx-stub-status.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Configure access IP address for nginx status page under /nginx_status 4 | # 5 | sed -i "s|allow 127.0.0.1|allow ${STATUS_PAGE_ALLOWED_IP}|g" /etc/nginx/conf.d/stub-status.conf 6 | echo "Nginx status page: allowed address set to $STATUS_PAGE_ALLOWED_IP." 7 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/config/init/10-php-fpm-status.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Configure access IP address for PHP-FPM satus page under /fpm_status 4 | # 5 | sed -i "s|allow 127.0.0.1|allow ${STATUS_PAGE_ALLOWED_IP}|g" /etc/nginx/conf.d/fpm-status.conf 6 | echo "PHP-FPM status page: allowed address set to $STATUS_PAGE_ALLOWED_IP." 7 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix-xxl/config/init/14-xxl-env-variables.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Save env variables and then source them in alertscripts 3 | 4 | # source /etc/zabbix/environment_variables_declare 5 | declare -p > /etc/zabbix/environment_variables_declare 6 | 7 | # key=value format 8 | printenv > /etc/zabbix/environment_variables_printenv 9 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/config/init/14-xxl-env-variables.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Save env variables and then source them in alertscripts 3 | 4 | # source /etc/zabbix/environment_variables_declare 5 | declare -p > /etc/zabbix/environment_variables_declare 6 | 7 | # key=value format 8 | printenv > /etc/zabbix/environment_variables_printenv 9 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/config/init/14-xxl-env-variables.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Save env variables and then source them in alertscripts 3 | 4 | # source /etc/zabbix/environment_variables_declare 5 | declare -p > /etc/zabbix/environment_variables_declare 6 | 7 | # key=value format 8 | printenv > /etc/zabbix/environment_variables_printenv 9 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-db-mariadb/container-files/etc/my.cnf.d/logging.cnf: -------------------------------------------------------------------------------- 1 | [mysqld] 2 | pid_file = /var/lib/mysql/mysql.pid 3 | log_error = /var/lib/mysql/error.log 4 | log_warnings = 2 5 | 6 | # General logging has huge performance penalty therefore is disabled by default 7 | general_log = off 8 | general_log_file = /var/lib/mysql/error.log 9 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/etc/nginx/nginx.d/80-buffers.conf: -------------------------------------------------------------------------------- 1 | # Increase buffer size for client requests (incl. file uploads) 2 | # so uploading the file up to xMB won't result with Nginx warning: 3 | # "a client request body is buffered to a temporary file ..." 4 | client_body_buffer_size 5M; 5 | 6 | # Set max upload size 7 | client_max_body_size 256M; 8 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/etc/nginx/nginx.d/80-buffers.conf: -------------------------------------------------------------------------------- 1 | # Increase buffer size for client requests (incl. file uploads) 2 | # so uploading the file up to xMB won't result with Nginx warning: 3 | # "a client request body is buffered to a temporary file ..." 4 | client_body_buffer_size 5M; 5 | 6 | # Set max upload size 7 | client_max_body_size 256M; 8 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/etc/nginx/nginx.d/80-buffers.conf: -------------------------------------------------------------------------------- 1 | # Increase buffer size for client requests (incl. file uploads) 2 | # so uploading the file up to xMB won't result with Nginx warning: 3 | # "a client request body is buffered to a temporary file ..." 4 | client_body_buffer_size 5M; 5 | 6 | # Set max upload size 7 | client_max_body_size 256M; 8 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-zabbix/etc/supervisor.d/zabbix-proxy.conf: -------------------------------------------------------------------------------- 1 | [supervisord] 2 | nodaemon = true 3 | 4 | [program:zabbix-proxy] 5 | command = sudo -u %(ENV_ZP_User)s /usr/local/sbin/zabbix_proxy --foreground -c /usr/local/etc/zabbix_proxy.conf 6 | autorestart = true 7 | auto_start = true 8 | 9 | stderr_logfile = NONE 10 | stdout_logfile = NONE 11 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/etc/nginx/nginx.d/80-buffers.conf: -------------------------------------------------------------------------------- 1 | # Increase buffer size for client requests (incl. file uploads) 2 | # so uploading the file up to xMB won't result with Nginx warning: 3 | # "a client request body is buffered to a temporary file ..." 4 | client_body_buffer_size 5M; 5 | 6 | # Set max upload size 7 | client_max_body_size 256M; 8 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-zabbix/etc/supervisor.d/zabbix-proxy.conf: -------------------------------------------------------------------------------- 1 | [supervisord] 2 | nodaemon = true 3 | 4 | [program:zabbix-proxy] 5 | command = sudo -u %(ENV_ZP_User)s /usr/local/sbin/zabbix_proxy --foreground -c /usr/local/etc/zabbix_proxy.conf 6 | autorestart = true 7 | auto_start = true 8 | 9 | stderr_logfile = NONE 10 | stdout_logfile = NONE 11 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-zabbix/etc/supervisor.d/zabbix-agent.conf: -------------------------------------------------------------------------------- 1 | [supervisord] 2 | nodaemon = true 3 | 4 | [program:zabbix-agent] 5 | command = /config/ds.sh %(ENV_ZA_PidFile)s sudo -u %(ENV_ZA_User)s /usr/local/sbin/zabbix_agentd --foreground -c /usr/local/etc/zabbix_agentd.conf 6 | autorestart = true 7 | auto_start = true 8 | 9 | stderr_logfile = NONE 10 | stdout_logfile = NONE 11 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-zabbix/etc/supervisor.d/zabbix-agent.conf: -------------------------------------------------------------------------------- 1 | [supervisord] 2 | nodaemon = true 3 | 4 | [program:zabbix-agent] 5 | command = /config/ds.sh %(ENV_ZA_PidFile)s sudo -u %(ENV_ZA_User)s /usr/local/sbin/zabbix_agentd --foreground -c /usr/local/etc/zabbix_agentd.conf 6 | autorestart = true 7 | auto_start = true 8 | 9 | stderr_logfile = NONE 10 | stdout_logfile = NONE 11 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: required 2 | 3 | services: 4 | - docker 5 | 6 | language: go 7 | 8 | install: echo "OK" 9 | 10 | script: echo "OK" 11 | 12 | after_success: 13 | - docker version 14 | - "cd /home/travis/build/monitoringartist/zabbix-xxl/" 15 | - "bash ./artifacts/deploy.sh" 16 | 17 | env: 18 | global: 19 | - ENCRYPTION_LABEL: "42099b4af021" 20 | - COMMIT_AUTHOR_EMAIL: "jan.garaj@gmail.com" 21 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-zabbix/etc/supervisor.d/zabbix-server.conf: -------------------------------------------------------------------------------- 1 | [supervisord] 2 | nodaemon = true 3 | 4 | [program:zabbix-server] 5 | command = /config/ds.sh %(ENV_ZS_PidFile)s sudo -u %(ENV_ZS_User)s /usr/local/sbin/zabbix_server --foreground -c /usr/local/etc/zabbix_server.conf 6 | autorestart = true 7 | auto_start = true 8 | 9 | stderr_logfile = NONE 10 | stdout_logfile = NONE 11 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-zabbix/etc/supervisor.d/zabbix-server.conf: -------------------------------------------------------------------------------- 1 | [supervisord] 2 | nodaemon = true 3 | 4 | [program:zabbix-server] 5 | command = /config/ds.sh %(ENV_ZS_PidFile)s sudo -u %(ENV_ZS_User)s /usr/local/sbin/zabbix_server --foreground -c /usr/local/etc/zabbix_server.conf 6 | autorestart = true 7 | auto_start = true 8 | 9 | stderr_logfile = NONE 10 | stdout_logfile = NONE 11 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/config/init/vhost-proxy.conf: -------------------------------------------------------------------------------- 1 | # Internal proxy, HTTP version 2 | server { 3 | listen %proxy_port%; 4 | location / { 5 | proxy_set_header Host $host; 6 | proxy_set_header X-Forwarded-Port $server_port; 7 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 8 | proxy_redirect off; 9 | proxy_pass http://127.0.0.1:80; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-zabbix/usr/local/etc/zabbix_agentd.conf: -------------------------------------------------------------------------------- 1 | PidFile=/var/run/zabbix_agentd.pid 2 | LogFile=/var/log/zabbix/zabbix_agentd.log 3 | LogFileSize=1 4 | DebugLevel=3 5 | Server=127.0.0.1 6 | ListenIP=127.0.0.1 7 | StartAgents=1 8 | ServerActive=127.0.0.1 9 | Hostname=Zabbix server 10 | RefreshActiveChecks=60 11 | BufferSend=1 12 | Include=/usr/local/etc/zabbix_agentd.conf.d/ 13 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/config/init/vhost-proxy.conf: -------------------------------------------------------------------------------- 1 | # Internal proxy, HTTP version 2 | server { 3 | listen %proxy_port%; 4 | location / { 5 | proxy_set_header Host $host; 6 | proxy_set_header X-Forwarded-Port $server_port; 7 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 8 | proxy_redirect off; 9 | proxy_pass http://127.0.0.1:80; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/config/init/vhost-proxy.conf: -------------------------------------------------------------------------------- 1 | # Internal proxy, HTTP version 2 | server { 3 | listen %proxy_port%; 4 | location / { 5 | proxy_set_header Host $host; 6 | proxy_set_header X-Forwarded-Port $server_port; 7 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 8 | proxy_redirect off; 9 | proxy_pass http://127.0.0.1:80; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/config/init/vhost-proxy.conf: -------------------------------------------------------------------------------- 1 | # Internal proxy, HTTP version 2 | server { 3 | listen %proxy_port%; 4 | location / { 5 | proxy_set_header Host $host; 6 | proxy_set_header X-Forwarded-Port $server_port; 7 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 8 | proxy_redirect off; 9 | proxy_pass http://127.0.0.1:80; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-db-mariadb/container-files/etc/my.cnf.d/slowlog.cnf: -------------------------------------------------------------------------------- 1 | # 2 | # Pre-configure slow logging. 3 | # Disabled it by default, but it can be switched on during runtime 4 | # and the log entries simply appear in the error.log 5 | # 6 | [mysqld] 7 | slow_query_log = off 8 | slow_query_log_file = /var/lib/mysql/error.log 9 | long_query_time = 3 10 | log_queries_not_using_indexes = on 11 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/etc/supervisor.d/analytics.conf: -------------------------------------------------------------------------------- 1 | [supervisord] 2 | nodaemon = true 3 | 4 | [program:analytics] 5 | command = /usr/bin/bash -c 'while true; do sleep 3600; /usr/bin/bash /config/init/12-xxl-ping.sh; done' 6 | autorestart = true 7 | auto_start = true 8 | 9 | stdout_logfile = /dev/null 10 | stdout_logfile_maxbytes = 0 11 | stderr_logfile = /dev/null 12 | stderr_logfile_maxbytes = 0 13 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/etc/supervisor.d/analytics.conf: -------------------------------------------------------------------------------- 1 | [supervisord] 2 | nodaemon = true 3 | 4 | [program:analytics] 5 | command = /usr/bin/bash -c 'while true; do sleep 3600; /usr/bin/bash /config/init/12-xxl-ping.sh; done' 6 | autorestart = true 7 | auto_start = true 8 | 9 | stdout_logfile = /dev/null 10 | stdout_logfile_maxbytes = 0 11 | stderr_logfile = /dev/null 12 | stderr_logfile_maxbytes = 0 13 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/etc/php-fpm.d/www.conf: -------------------------------------------------------------------------------- 1 | [www] 2 | user = www 3 | listen = /var/run/php-fpm-www.sock 4 | listen.owner = www 5 | 6 | pm = ondemand 7 | pm.max_children = 10 8 | pm.max_requests = 500 9 | pm.process_idle_timeout = 10s 10 | pm.status_path = /fpm_status 11 | 12 | ping.path = /ping 13 | 14 | slowlog = /data/logs/php-fpm-slow.log 15 | request_slowlog_timeout = 60 16 | catch_workers_output = yes 17 | 18 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/etc/php-fpm.d/www.conf: -------------------------------------------------------------------------------- 1 | [www] 2 | user = www 3 | listen = /var/run/php-fpm-www.sock 4 | listen.owner = www 5 | 6 | pm = ondemand 7 | pm.max_children = 10 8 | pm.max_requests = 500 9 | pm.process_idle_timeout = 10s 10 | pm.status_path = /fpm_status 11 | 12 | ping.path = /ping 13 | 14 | slowlog = /data/logs/php-fpm-slow.log 15 | request_slowlog_timeout = 60 16 | catch_workers_output = yes 17 | 18 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/etc/php-fpm.d/www.conf: -------------------------------------------------------------------------------- 1 | [www] 2 | user = www 3 | listen = /var/run/php-fpm-www.sock 4 | listen.owner = www 5 | 6 | pm = ondemand 7 | pm.max_children = 10 8 | pm.max_requests = 500 9 | pm.process_idle_timeout = 10s 10 | pm.status_path = /fpm_status 11 | 12 | ping.path = /ping 13 | 14 | slowlog = /data/logs/php-fpm-slow.log 15 | request_slowlog_timeout = 60 16 | catch_workers_output = yes 17 | 18 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/etc/php-fpm.d/www.conf: -------------------------------------------------------------------------------- 1 | [www] 2 | user = www 3 | listen = /var/run/php-fpm-www.sock 4 | listen.owner = www 5 | 6 | pm = ondemand 7 | pm.max_children = 10 8 | pm.max_requests = 500 9 | pm.process_idle_timeout = 10s 10 | pm.status_path = /fpm_status 11 | 12 | ping.path = /ping 13 | 14 | slowlog = /data/logs/php-fpm-slow.log 15 | request_slowlog_timeout = 60 16 | catch_workers_output = yes 17 | 18 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/config/init/10-nginx-cache-dirs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # This script will be placed in /config/init/ and run when container starts. 5 | # It creates (if they're not exist yet) necessary Nginx directories 6 | # @see /etc/nginx/addon.d/fastcgi-cache.example 7 | # 8 | 9 | set -e 10 | 11 | mkdir -p /run/user/nginx-cache 12 | mkdir -p /run/user/nginx-cache-tmp 13 | chown -R www:www /run/user/nginx-cache* 14 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/config/init/10-nginx-cache-dirs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # This script will be placed in /config/init/ and run when container starts. 5 | # It creates (if they're not exist yet) necessary Nginx directories 6 | # @see /etc/nginx/addon.d/fastcgi-cache.example 7 | # 8 | 9 | set -e 10 | 11 | mkdir -p /run/user/nginx-cache 12 | mkdir -p /run/user/nginx-cache-tmp 13 | chown -R www:www /run/user/nginx-cache* 14 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix-xxl/config/init/12-xxl-ping.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | export ZABBIX_VERSIONP=$(echo $ZABBIX_VERSION | tr -d '/') 4 | if $XXL_analytics; then 5 | curl --connect-timeout 20 --max-time 30 -ks -o /dev/null "http://www.google-analytics.com/r/collect?v=1&tid=UA-72810204-2&cid=${cid}&t=event&ec=Ping&ea=Version&el=${ZABBIX_VERSIONP}&ev=1&dp=%2F&dl=http%3A%2F%2Fgithub.com%2Fmonitoringartist%2Fzabbix-xxl" &> /dev/null & 6 | fi 7 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/config/init/10-nginx-cache-dirs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # This script will be placed in /config/init/ and run when container starts. 5 | # It creates (if they're not exist yet) necessary Nginx directories 6 | # @see /etc/nginx/addon.d/fastcgi-cache.example 7 | # 8 | 9 | set -e 10 | 11 | mkdir -p /run/user/nginx-cache 12 | mkdir -p /run/user/nginx-cache-tmp 13 | chown -R www:www /run/user/nginx-cache* 14 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/config/init/10-nginx-cache-dirs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # This script will be placed in /config/init/ and run when container starts. 5 | # It creates (if they're not exist yet) necessary Nginx directories 6 | # @see /etc/nginx/addon.d/fastcgi-cache.example 7 | # 8 | 9 | set -e 10 | 11 | mkdir -p /run/user/nginx-cache 12 | mkdir -p /run/user/nginx-cache-tmp 13 | chown -R www:www /run/user/nginx-cache* 14 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/etc/nginx/nginx.d/30-gzip.conf: -------------------------------------------------------------------------------- 1 | gzip on; 2 | gzip_http_version 1.0; 3 | gzip_comp_level 4; 4 | gzip_min_length 1024; 5 | gzip_proxied any; 6 | gzip_vary off; 7 | gzip_types text/plain text/css application/x-javascript text/xml application/xml application/rss+xml application/atom+xml text/javascript application/javascript application/json text/mathml; 8 | 9 | gzip_static on; 10 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/etc/nginx/nginx.d/30-gzip.conf: -------------------------------------------------------------------------------- 1 | gzip on; 2 | gzip_http_version 1.0; 3 | gzip_comp_level 4; 4 | gzip_min_length 1024; 5 | gzip_proxied any; 6 | gzip_vary off; 7 | gzip_types text/plain text/css application/x-javascript text/xml application/xml application/rss+xml application/atom+xml text/javascript application/javascript application/json text/mathml; 8 | 9 | gzip_static on; 10 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/etc/nginx/nginx.d/30-gzip.conf: -------------------------------------------------------------------------------- 1 | gzip on; 2 | gzip_http_version 1.0; 3 | gzip_comp_level 4; 4 | gzip_min_length 1024; 5 | gzip_proxied any; 6 | gzip_vary off; 7 | gzip_types text/plain text/css application/x-javascript text/xml application/xml application/rss+xml application/atom+xml text/javascript application/javascript application/json text/mathml; 8 | 9 | gzip_static on; 10 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/etc/nginx/nginx.d/30-gzip.conf: -------------------------------------------------------------------------------- 1 | gzip on; 2 | gzip_http_version 1.0; 3 | gzip_comp_level 4; 4 | gzip_min_length 1024; 5 | gzip_proxied any; 6 | gzip_vary off; 7 | gzip_types text/plain text/css application/x-javascript text/xml application/xml application/rss+xml application/atom+xml text/javascript application/javascript application/json text/mathml; 8 | 9 | gzip_static on; 10 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-zabbix/config/ds.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | pidfile="$1" 3 | shift 4 | command=$@ 5 | 6 | # Proxy signals 7 | function kill_app(){ 8 | kill $(cat $pidfile) 9 | exit 0 # exit okay 10 | } 11 | trap "kill_app" SIGINT SIGTERM 12 | 13 | # Launch daemon 14 | $command 15 | sleep 2 16 | 17 | # Loop while the pidfile and the process exist 18 | while [ -f $pidfile ] && kill -0 $(cat $pidfile) ; do 19 | sleep 0.5 20 | done 21 | exit 1000 -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix/config/ds.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | pidfile="$1" 3 | shift 4 | command=$@ 5 | 6 | # Proxy signals 7 | function kill_app(){ 8 | kill $(cat $pidfile) 9 | exit 0 # exit okay 10 | } 11 | trap "kill_app" SIGINT SIGTERM 12 | 13 | # Launch daemon 14 | $command 15 | sleep 2 16 | 17 | # Loop while the pidfile and the process exist 18 | while [ -f $pidfile ] && kill -0 $(cat $pidfile) ; do 19 | sleep 0.5 20 | done 21 | exit 1000 -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-zabbix/config/ds.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | pidfile="$1" 3 | shift 4 | command=$@ 5 | 6 | # Proxy signals 7 | function kill_app(){ 8 | kill $(cat $pidfile) 9 | exit 0 # exit okay 10 | } 11 | trap "kill_app" SIGINT SIGTERM 12 | 13 | # Launch daemon 14 | $command 15 | sleep 2 16 | 17 | # Loop while the pidfile and the process exist 18 | while [ -f $pidfile ] && kill -0 $(cat $pidfile) ; do 19 | sleep 0.5 20 | done 21 | exit 1000 -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-zabbix/config/ds.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | pidfile="$1" 3 | shift 4 | command=$@ 5 | 6 | # Proxy signals 7 | function kill_app(){ 8 | kill $(cat $pidfile) 9 | exit 0 # exit okay 10 | } 11 | trap "kill_app" SIGINT SIGTERM 12 | 13 | # Launch daemon 14 | $command 15 | sleep 2 16 | 17 | # Loop while the pidfile and the process exist 18 | while [ -f $pidfile ] && kill -0 $(cat $pidfile) ; do 19 | sleep 0.5 20 | done 21 | exit 1000 -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/etc/supervisor.d/nginx.conf: -------------------------------------------------------------------------------- 1 | [program:nginx] 2 | command = /usr/sbin/nginx 3 | autorestart = true 4 | stderr_logfile = NONE 5 | stdout_logfile = NONE 6 | 7 | # Watch for changes in Nginx conf directories and restart Nginx when a config change occured 8 | [program:nginx-reload] 9 | command=bash -c 'while inotifywait -q -r -e create,delete,modify,move,attrib --exclude "/\." /etc/nginx/ /data/conf/nginx/; do nginx -t && nginx -s reload; done' 10 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/etc/supervisor.d/nginx.conf: -------------------------------------------------------------------------------- 1 | [program:nginx] 2 | command = /usr/sbin/nginx 3 | autorestart = true 4 | stderr_logfile = NONE 5 | stdout_logfile = NONE 6 | 7 | # Watch for changes in Nginx conf directories and restart Nginx when a config change occured 8 | [program:nginx-reload] 9 | command=bash -c 'while inotifywait -q -r -e create,delete,modify,move,attrib --exclude "/\." /etc/nginx/ /data/conf/nginx/; do nginx -t && nginx -s reload; done' 10 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/etc/supervisor.d/nginx.conf: -------------------------------------------------------------------------------- 1 | [program:nginx] 2 | command = /usr/sbin/nginx 3 | autorestart = true 4 | stderr_logfile = NONE 5 | stdout_logfile = NONE 6 | 7 | # Watch for changes in Nginx conf directories and restart Nginx when a config change occured 8 | [program:nginx-reload] 9 | command=bash -c 'while inotifywait -q -r -e create,delete,modify,move,attrib --exclude "/\." /etc/nginx/ /data/conf/nginx/; do nginx -t && nginx -s reload; done' 10 | 11 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/config/init/12-xxl-ping.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if $XXL_analytics; then 4 | export ZABBIX_VERSION_FULL=$(zabbix_server -V | grep "(Zabbix)" | awk '{print $3"-"$4}') 5 | curl --connect-timeout 20 --max-time 30 -ks -o /dev/null "http://www.google-analytics.com/r/collect?v=1&tid=UA-72810204-2&cid=${cid}&t=event&ec=Ping&ea=Version&el=${ZABBIX_VERSION_FULL}&ev=1&dp=%2F&dl=http%3A%2F%2Fgithub.com%2Fmonitoringartist%2Fdockbix-xxl" &> /dev/null & 6 | fi 7 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/etc/supervisor.d/nginx.conf: -------------------------------------------------------------------------------- 1 | [program:nginx] 2 | command = /usr/sbin/nginx 3 | autorestart = true 4 | stderr_logfile = NONE 5 | stdout_logfile = NONE 6 | 7 | # Watch for changes in Nginx conf directories and restart Nginx when a config change occured 8 | [program:nginx-reload] 9 | command=bash -c 'while inotifywait -q -r -e create,delete,modify,move,attrib --exclude "/\." /etc/nginx/ /data/conf/nginx/; do nginx -t && nginx -s reload; done' 10 | 11 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/config/init/12-xxl-ping.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if $XXL_analytics; then 4 | export ZABBIX_VERSION_FULL=$(zabbix_server -V | grep "(Zabbix)" | awk '{print $3"-"$4}') 5 | curl --connect-timeout 20 --max-time 30 -ks -o /dev/null "http://www.google-analytics.com/r/collect?v=1&tid=UA-72810204-2&cid=${cid}&t=event&ec=Ping&ea=Version&el=${ZABBIX_VERSION_FULL}&ev=1&dp=%2F&dl=http%3A%2F%2Fgithub.com%2Fmonitoringartist%2Fdockbix-xxl" &> /dev/null & 6 | fi 7 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix/etc/nginx/hosts.d/default.conf: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80 default; 3 | root /usr/local/src/zabbix/frontends/php; 4 | index index.php index.html; 5 | 6 | include /etc/nginx/conf.d/default-*.conf; 7 | include /data/conf/nginx/conf.d/default-*.conf; 8 | 9 | # PHP backend is not in the default-*.conf file set, 10 | # as some vhost might not want to include it. 11 | include /etc/nginx/conf.d/php-location.conf; 12 | } -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-zabbix/etc/nginx/hosts.d/default.conf: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80 default; 3 | root /usr/local/src/zabbix/frontends/php; 4 | index index.php index.html; 5 | 6 | include /etc/nginx/conf.d/default-*.conf; 7 | include /data/conf/nginx/conf.d/default-*.conf; 8 | 9 | # PHP backend is not in the default-*.conf file set, 10 | # as some vhost might not want to include it. 11 | include /etc/nginx/conf.d/php-location.conf; 12 | } -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-zabbix/etc/nginx/hosts.d/default.conf: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80 default; 3 | root /usr/local/src/zabbix/frontends/php; 4 | index index.php index.html; 5 | 6 | include /etc/nginx/conf.d/default-*.conf; 7 | include /data/conf/nginx/conf.d/default-*.conf; 8 | 9 | # PHP backend is not in the default-*.conf file set, 10 | # as some vhost might not want to include it. 11 | include /etc/nginx/conf.d/php-location.conf; 12 | } -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/config/init/vhost-proxy-https.conf: -------------------------------------------------------------------------------- 1 | # Internal proxy, HTTPS version 2 | server { 3 | listen %proxy_port% ssl; 4 | ssl_certificate /etc/nginx/ssl/dummy.crt; 5 | ssl_certificate_key /etc/nginx/ssl/dummy.key; 6 | 7 | location / { 8 | proxy_set_header Host $host; 9 | proxy_set_header X-Forwarded-Port $server_port; 10 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 11 | proxy_redirect off; 12 | proxy_pass https://127.0.0.1:443; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-db-mariadb/container-files/etc/my.cnf.d/networking.cnf: -------------------------------------------------------------------------------- 1 | [mysqld] 2 | bind_address = 0.0.0.0 3 | 4 | # When a client connects, the server will perform hostname resolution, 5 | # and when DNS is slow, establishing the connection will become slow as well. 6 | # It is therefore recommended to start the server with skip-name-resolve to 7 | # disable all DNS lookups. The only limitation is that the GRANT statements 8 | # must then use IP addresses only. 9 | skip_name_resolve 10 | 11 | [client] 12 | protocol = tcp 13 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/config/init/vhost-proxy-https.conf: -------------------------------------------------------------------------------- 1 | # Internal proxy, HTTPS version 2 | server { 3 | listen %proxy_port% ssl; 4 | ssl_certificate /etc/nginx/ssl/dummy.crt; 5 | ssl_certificate_key /etc/nginx/ssl/dummy.key; 6 | 7 | location / { 8 | proxy_set_header Host $host; 9 | proxy_set_header X-Forwarded-Port $server_port; 10 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 11 | proxy_redirect off; 12 | proxy_pass https://127.0.0.1:443; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/config/init/vhost-proxy-https.conf: -------------------------------------------------------------------------------- 1 | # Internal proxy, HTTPS version 2 | server { 3 | listen %proxy_port% ssl; 4 | ssl_certificate /etc/nginx/ssl/dummy.crt; 5 | ssl_certificate_key /etc/nginx/ssl/dummy.key; 6 | 7 | location / { 8 | proxy_set_header Host $host; 9 | proxy_set_header X-Forwarded-Port $server_port; 10 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 11 | proxy_redirect off; 12 | proxy_pass https://127.0.0.1:443; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/config/init/vhost-proxy-https.conf: -------------------------------------------------------------------------------- 1 | # Internal proxy, HTTPS version 2 | server { 3 | listen %proxy_port% ssl; 4 | ssl_certificate /etc/nginx/ssl/dummy.crt; 5 | ssl_certificate_key /etc/nginx/ssl/dummy.key; 6 | 7 | location / { 8 | proxy_set_header Host $host; 9 | proxy_set_header X-Forwarded-Port $server_port; 10 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 11 | proxy_redirect off; 12 | proxy_pass https://127.0.0.1:443; 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/etc/php.d/zz-php.ini: -------------------------------------------------------------------------------- 1 | ; Basic configuration override 2 | expose_php = Off 3 | memory_limit = 512M 4 | post_max_size = 128M 5 | upload_max_filesize = 128M 6 | date.timezone = GMT 7 | max_execution_time = 120 8 | 9 | ; Error reporting 10 | display_errors = On 11 | display_startup_errors = On 12 | 13 | ; A bit of performance tuning 14 | realpath_cache_size = 128k 15 | 16 | ; OpCache tuning 17 | opcache.max_accelerated_files = 32000 18 | opcache.memory_consumption = 128 19 | opcache.fast_shutdown = 0 20 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/etc/php.d/zz-php.ini: -------------------------------------------------------------------------------- 1 | ; Basic configuration override 2 | expose_php = Off 3 | memory_limit = 512M 4 | post_max_size = 128M 5 | upload_max_filesize = 128M 6 | date.timezone = GMT 7 | max_execution_time = 120 8 | 9 | ; Error reporting 10 | display_errors = On 11 | display_startup_errors = On 12 | 13 | ; A bit of performance tuning 14 | realpath_cache_size = 128k 15 | 16 | ; OpCache tuning 17 | opcache.max_accelerated_files = 32000 18 | opcache.memory_consumption = 128 19 | opcache.fast_shutdown = 0 20 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/etc/php.d/zz-php.ini: -------------------------------------------------------------------------------- 1 | ; Basic configuration override 2 | expose_php = Off 3 | memory_limit = 512M 4 | post_max_size = 128M 5 | upload_max_filesize = 128M 6 | date.timezone = GMT 7 | max_execution_time = 120 8 | 9 | ; Error reporting 10 | display_errors = On 11 | display_startup_errors = On 12 | 13 | ; A bit of performance tuning 14 | realpath_cache_size = 128k 15 | 16 | ; OpCache tuning 17 | opcache.max_accelerated_files = 32000 18 | opcache.memory_consumption = 128 19 | opcache.fast_shutdown = 0 20 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/etc/php.d/zz-php.ini: -------------------------------------------------------------------------------- 1 | ; Basic configuration override 2 | expose_php = Off 3 | memory_limit = 512M 4 | post_max_size = 128M 5 | upload_max_filesize = 128M 6 | date.timezone = GMT 7 | max_execution_time = 120 8 | 9 | ; Error reporting 10 | display_errors = On 11 | display_startup_errors = On 12 | 13 | ; A bit of performance tuning 14 | realpath_cache_size = 128k 15 | 16 | ; OpCache tuning 17 | opcache.max_accelerated_files = 32000 18 | opcache.memory_consumption = 128 19 | opcache.fast_shutdown = 0 20 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix/usr/local/etc/logback.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | System.err 4 | 5 | %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-zabbix/usr/local/etc/logback.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | System.err 4 | 5 | %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-zabbix/usr/local/etc/logback.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | System.err 4 | 5 | %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix/usr/local/etc/zabbix_server.conf: -------------------------------------------------------------------------------- 1 | # This is a configuration file for Zabbix Server process 2 | # To get more information about Zabbix, 3 | # visit http://www.zabbix.com 4 | 5 | # Specify value by using environment variables with prefix ZS_ 6 | # For example: ZS_AllowRoot=1 means AllowRoot=1 for zabbix-server 7 | # If you don't specify envirotnment variable, then default value from Dockerfile 8 | # will be used, or default Zabbix setting value will be used. See: 9 | # https://www.zabbix.com/documentation/3.0/manual/appendix/config/zabbix_server -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-zabbix/usr/local/etc/zabbix_server.conf: -------------------------------------------------------------------------------- 1 | # This is a configuration file for Zabbix Server process 2 | # To get more information about Zabbix, 3 | # visit http://www.zabbix.com 4 | 5 | # Specify value by using environment variables with prefix ZS_ 6 | # For example: ZS_AllowRoot=1 means AllowRoot=1 for zabbix-server 7 | # If you don't specify envirotnment variable, then default value from Dockerfile 8 | # will be used, or default Zabbix setting value will be used. See: 9 | # https://www.zabbix.com/documentation/3.0/manual/appendix/config/zabbix_server -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-zabbix/usr/local/etc/zabbix_server.conf: -------------------------------------------------------------------------------- 1 | # This is a configuration file for Zabbix Server process 2 | # To get more information about Zabbix, 3 | # visit http://www.zabbix.com 4 | 5 | # Specify value by using environment variables with prefix ZS_ 6 | # For example: ZS_AllowRoot=1 means AllowRoot=1 for zabbix-server 7 | # If you don't specify envirotnment variable, then default value from Dockerfile 8 | # will be used, or default Zabbix setting value will be used. See: 9 | # https://www.zabbix.com/documentation/3.0/manual/appendix/config/zabbix_server -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix/usr/local/etc/zabbix_agentd.conf: -------------------------------------------------------------------------------- 1 | # This is a configuration file for Zabbix agent daemon (Unix) 2 | # To get more information about Zabbix, visit http://www.zabbix.com 3 | 4 | # Specify value by using environment variables with prefix ZA_ 5 | # For example: ZA_AllowRoot=1 means AllowRoot=1 for zabbix-agent 6 | # If you don't specify envirotnment variable, then default value from Dockerfile 7 | # will be used, or default Zabbix setting value will be used. See: 8 | # https://www.zabbix.com/documentation/3.0/manual/appendix/config/zabbix_agentd 9 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-zabbix/usr/local/etc/zabbix_agentd.conf: -------------------------------------------------------------------------------- 1 | # This is a configuration file for Zabbix agent daemon (Unix) 2 | # To get more information about Zabbix, visit http://www.zabbix.com 3 | 4 | # Specify value by using environment variables with prefix ZA_ 5 | # For example: ZA_AllowRoot=1 means AllowRoot=1 for zabbix-agent 6 | # If you don't specify envirotnment variable, then default value from Dockerfile 7 | # will be used, or default Zabbix setting value will be used. See: 8 | # https://www.zabbix.com/documentation/3.0/manual/appendix/config/zabbix_agentd 9 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-zabbix/usr/local/etc/zabbix_agentd.conf: -------------------------------------------------------------------------------- 1 | # This is a configuration file for Zabbix agent daemon (Unix) 2 | # To get more information about Zabbix, visit http://www.zabbix.com 3 | 4 | # Specify value by using environment variables with prefix ZA_ 5 | # For example: ZA_AllowRoot=1 means AllowRoot=1 for zabbix-agent 6 | # If you don't specify envirotnment variable, then default value from Dockerfile 7 | # will be used, or default Zabbix setting value will be used. See: 8 | # https://www.zabbix.com/documentation/3.0/manual/appendix/config/zabbix_agentd 9 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-zabbix/etc/snmp/snmptrapd.conf: -------------------------------------------------------------------------------- 1 | # Ref: ZBXNEXT-747 2 | authCommunity execute public 3 | # snmptt as standalone app - estimated performance 5 traps/second 4 | traphandle default snmptt 5 | 6 | # TODO log traps directly to zabbix_traps file 7 | #logoption f /tmp/zabbix_traps2.tmp 8 | #format1 %H:%M:%S %Y/%m/%d %N %W %W %B - ZBXTRAP %A %A 9 | #format2 %H:%M:%S %Y/%m/%d %N %W %W %B - ZBXTRAP %A %A 10 | 11 | # TODO 12 | #perl do "/usr/share/snmptt/snmptthandler-embedded"; 13 | 14 | # TODO 15 | # perl do "/usr/local/src/zabbix/misc/snmptrap/zabbix_trap_receiver.pl"; 16 | 17 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix/etc/snmp/snmptrapd.conf: -------------------------------------------------------------------------------- 1 | # Ref: ZBXNEXT-747 2 | authCommunity execute public 3 | # snmptt as standalone app - estimated performance 5 traps/second 4 | traphandle default snmptt 5 | 6 | # TODO log traps directly to zabbix_traps file 7 | #logoption f /tmp/zabbix_traps2.tmp 8 | #format1 %H:%M:%S %Y/%m/%d %N %W %W %B - ZBXTRAP %A %A 9 | #format2 %H:%M:%S %Y/%m/%d %N %W %W %B - ZBXTRAP %A %A 10 | 11 | # TODO 12 | #perl do "/usr/share/snmptt/snmptthandler-embedded"; 13 | 14 | # TODO 15 | # perl do "/usr/local/src/zabbix/misc/snmptrap/zabbix_trap_receiver.pl"; 16 | 17 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-zabbix/etc/snmp/snmptrapd.conf: -------------------------------------------------------------------------------- 1 | # Ref: ZBXNEXT-747 2 | authCommunity execute public 3 | # snmptt as standalone app - estimated performance 5 traps/second 4 | traphandle default snmptt 5 | 6 | # TODO log traps directly to zabbix_traps file 7 | #logoption f /tmp/zabbix_traps2.tmp 8 | #format1 %H:%M:%S %Y/%m/%d %N %W %W %B - ZBXTRAP %A %A 9 | #format2 %H:%M:%S %Y/%m/%d %N %W %W %B - ZBXTRAP %A %A 10 | 11 | # TODO 12 | #perl do "/usr/share/snmptt/snmptthandler-embedded"; 13 | 14 | # TODO 15 | # perl do "/usr/local/src/zabbix/misc/snmptrap/zabbix_trap_receiver.pl"; 16 | 17 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-zabbix/etc/snmp/snmptrapd.conf: -------------------------------------------------------------------------------- 1 | # Ref: ZBXNEXT-747 2 | authCommunity execute public 3 | # snmptt as standalone app - estimated performance 5 traps/second 4 | traphandle default snmptt 5 | 6 | # TODO log traps directly to zabbix_traps file 7 | #logoption f /tmp/zabbix_traps2.tmp 8 | #format1 %H:%M:%S %Y/%m/%d %N %W %W %B - ZBXTRAP %A %A 9 | #format2 %H:%M:%S %Y/%m/%d %N %W %W %B - ZBXTRAP %A %A 10 | 11 | # TODO 12 | #perl do "/usr/share/snmptt/snmptthandler-embedded"; 13 | 14 | # TODO 15 | # perl do "/usr/local/src/zabbix/misc/snmptrap/zabbix_trap_receiver.pl"; 16 | 17 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-zabbix/usr/local/etc/web/zabbix.conf.php: -------------------------------------------------------------------------------- 1 | 21 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix/usr/local/etc/web/zabbix.conf.php: -------------------------------------------------------------------------------- 1 | 21 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-zabbix/usr/local/etc/web/zabbix.conf.php: -------------------------------------------------------------------------------- 1 | 21 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-zabbix/usr/local/etc/web/zabbix.conf.php: -------------------------------------------------------------------------------- 1 | 21 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-zabbix/etc/nginx/hosts.d/default.conf: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80 default; 3 | root /usr/local/src/zabbix/frontends/php; 4 | index index.php index.html; 5 | 6 | # alias can be still useful for loadbalancing 7 | location /zabbix { 8 | alias /usr/local/src/zabbix/frontends/php; 9 | } 10 | 11 | include /etc/nginx/conf.d/default-*.conf; 12 | include /data/conf/nginx/conf.d/default-*.conf; 13 | 14 | # PHP backend is not in the default-*.conf file set, 15 | # as some vhost might not want to include it. 16 | include /etc/nginx/conf.d/php-location.conf; 17 | } 18 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/etc/nginx/hosts.d/default.conf: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80 default; 3 | root /data/www/default; 4 | index index.php index.html; 5 | 6 | include /etc/nginx/conf.d/default-*.conf; 7 | include /data/conf/nginx/conf.d/default-*.conf; 8 | 9 | # PHP backend is not in the default-*.conf file set, 10 | # as some vhost might not want to include it. 11 | include /etc/nginx/conf.d/php-location.conf; 12 | 13 | # Import configuration files for status pages for Nginx and PHP-FPM 14 | include /etc/nginx/conf.d/stub-status.conf; 15 | include /etc/nginx/conf.d/fpm-status.conf; 16 | 17 | } 18 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/etc/nginx/hosts.d/default.conf: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80 default; 3 | root /data/www/default; 4 | index index.php index.html; 5 | 6 | include /etc/nginx/conf.d/default-*.conf; 7 | include /data/conf/nginx/conf.d/default-*.conf; 8 | 9 | # PHP backend is not in the default-*.conf file set, 10 | # as some vhost might not want to include it. 11 | include /etc/nginx/conf.d/php-location.conf; 12 | 13 | # Import configuration files for status pages for Nginx and PHP-FPM 14 | include /etc/nginx/conf.d/stub-status.conf; 15 | include /etc/nginx/conf.d/fpm-status.conf; 16 | 17 | } 18 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/etc/nginx/hosts.d/default.conf: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80 default; 3 | root /data/www/default; 4 | index index.php index.html; 5 | 6 | include /etc/nginx/conf.d/default-*.conf; 7 | include /data/conf/nginx/conf.d/default-*.conf; 8 | 9 | # PHP backend is not in the default-*.conf file set, 10 | # as some vhost might not want to include it. 11 | include /etc/nginx/conf.d/php-location.conf; 12 | 13 | # Import configuration files for status pages for Nginx and PHP-FPM 14 | include /etc/nginx/conf.d/stub-status.conf; 15 | include /etc/nginx/conf.d/fpm-status.conf; 16 | 17 | } 18 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/etc/nginx/hosts.d/default.conf: -------------------------------------------------------------------------------- 1 | server { 2 | listen 80 default; 3 | root /data/www/default; 4 | index index.php index.html; 5 | 6 | include /etc/nginx/conf.d/default-*.conf; 7 | include /data/conf/nginx/conf.d/default-*.conf; 8 | 9 | # PHP backend is not in the default-*.conf file set, 10 | # as some vhost might not want to include it. 11 | include /etc/nginx/conf.d/php-location.conf; 12 | 13 | # Import configuration files for status pages for Nginx and PHP-FPM 14 | include /etc/nginx/conf.d/stub-status.conf; 15 | include /etc/nginx/conf.d/fpm-status.conf; 16 | 17 | } 18 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-zabbix/health/index.php: -------------------------------------------------------------------------------- 1 | 27 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix/health/index.php: -------------------------------------------------------------------------------- 1 | 27 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-zabbix/health/index.php: -------------------------------------------------------------------------------- 1 | 27 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-zabbix/health/index.php: -------------------------------------------------------------------------------- 1 | 27 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/config/init/10-nginx-data-dirs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # This script will be placed in /config/init/ and run when container starts. 5 | # It creates (if they're not exist yet) necessary directories 6 | # from where custom Nginx configs can be loaded (from mounted /data volumes). 7 | # 8 | 9 | set -e 10 | 11 | mkdir -p /data/conf/nginx/addon.d 12 | mkdir -p /data/conf/nginx/conf.d 13 | mkdir -p /data/conf/nginx/hosts.d 14 | mkdir -p /data/conf/nginx/nginx.d 15 | chmod 711 /data/conf/nginx 16 | 17 | mkdir -p /data/www/default 18 | echo "default vhost # created on $(date)" > /data/www/default/index.html 19 | 20 | chown -R www:www /data/www 21 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/config/init/10-nginx-data-dirs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # This script will be placed in /config/init/ and run when container starts. 5 | # It creates (if they're not exist yet) necessary directories 6 | # from where custom Nginx configs can be loaded (from mounted /data volumes). 7 | # 8 | 9 | set -e 10 | 11 | mkdir -p /data/conf/nginx/addon.d 12 | mkdir -p /data/conf/nginx/conf.d 13 | mkdir -p /data/conf/nginx/hosts.d 14 | mkdir -p /data/conf/nginx/nginx.d 15 | chmod 711 /data/conf/nginx 16 | 17 | mkdir -p /data/www/default 18 | echo "default vhost # created on $(date)" > /data/www/default/index.html 19 | 20 | chown -R www:www /data/www 21 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/config/init/10-nginx-data-dirs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # This script will be placed in /config/init/ and run when container starts. 5 | # It creates (if they're not exist yet) necessary directories 6 | # from where custom Nginx configs can be loaded (from mounted /data volumes). 7 | # 8 | 9 | set -e 10 | 11 | mkdir -p /data/conf/nginx/addon.d 12 | mkdir -p /data/conf/nginx/conf.d 13 | mkdir -p /data/conf/nginx/hosts.d 14 | mkdir -p /data/conf/nginx/nginx.d 15 | chmod 711 /data/conf/nginx 16 | 17 | mkdir -p /data/www/default 18 | echo "default vhost # created on $(date)" > /data/www/default/index.html 19 | 20 | chown -R www:www /data/www 21 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/config/init/10-nginx-data-dirs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # This script will be placed in /config/init/ and run when container starts. 5 | # It creates (if they're not exist yet) necessary directories 6 | # from where custom Nginx configs can be loaded (from mounted /data volumes). 7 | # 8 | 9 | set -e 10 | 11 | mkdir -p /data/conf/nginx/addon.d 12 | mkdir -p /data/conf/nginx/conf.d 13 | mkdir -p /data/conf/nginx/hosts.d 14 | mkdir -p /data/conf/nginx/nginx.d 15 | chmod 711 /data/conf/nginx 16 | 17 | mkdir -p /data/www/default 18 | echo "default vhost # created on $(date)" > /data/www/default/index.html 19 | 20 | chown -R www:www /data/www 21 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix-xxl/usr/local/src/zabbix/frontends/php/zapix/css/bootstrap/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2012 Twitter, Inc. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/zapix/css/bootstrap/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2012 Twitter, Inc. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/zapix/css/bootstrap/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright 2012 Twitter, Inc. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. -------------------------------------------------------------------------------- /stack-play-with-docker-dev.yml: -------------------------------------------------------------------------------- 1 | version: '3.1' 2 | 3 | services: 4 | 5 | zabbixdb: 6 | image: monitoringartist/zabbix-db-mariadb:latest 7 | volumes: 8 | - /etc/localtime:/etc/localtime:ro 9 | environment: 10 | - MARIADB_USER=zabbix 11 | - MARIADB_PASS=my_password 12 | 13 | zabbixserver: 14 | image: monitoringartist/dockbix-xxl:dev 15 | depends_on: 16 | - zabbixdb 17 | ports: 18 | - "80:80" 19 | - "10051:10051" 20 | volumes: 21 | - /etc/localtime:/etc/localtime:ro 22 | environment: 23 | - ZS_DBHost=zabbixdb 24 | - ZS_DBUser=zabbix 25 | - ZS_DBPassword=my_password 26 | - XXL_zapix=true 27 | - XXL_grapher=true 28 | -------------------------------------------------------------------------------- /stack-play-with-docker.yml: -------------------------------------------------------------------------------- 1 | version: '3.1' 2 | 3 | services: 4 | 5 | zabbixdb: 6 | image: monitoringartist/zabbix-db-mariadb:latest 7 | volumes: 8 | - /etc/localtime:/etc/localtime:ro 9 | environment: 10 | - MARIADB_USER=zabbix 11 | - MARIADB_PASS=my_password 12 | 13 | zabbixserver: 14 | image: monitoringartist/dockbix-xxl:latest 15 | depends_on: 16 | - zabbixdb 17 | ports: 18 | - "80:80" 19 | - "10051:10051" 20 | volumes: 21 | - /etc/localtime:/etc/localtime:ro 22 | environment: 23 | - ZS_DBHost=zabbixdb 24 | - ZS_DBUser=zabbix 25 | - ZS_DBPassword=my_password 26 | - XXL_zapix=true 27 | - XXL_grapher=true 28 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix/etc/supervisor.d/zabbix-java-gateway.conf: -------------------------------------------------------------------------------- 1 | [program:zabbix-java-gateway] 2 | command = /usr/bin/java -server -classpath lib:lib/%(ENV_ZJ_JarFile_android_json)s:lib/%(ENV_ZJ_JarFile_logback_classic)s:lib/%(ENV_ZJ_JarFile_logback_core)s:lib/%(ENV_ZJ_JarFile_slf4j_api)s:bin/%(ENV_ZJ_JarFile)s -Dzabbix.pidFile=%(ENV_ZJ_PID_FILE)s -Dzabbix.listenIP=%(ENV_ZJ_LISTEN_IP)s -Dzabbix.listenPort=%(ENV_ZJ_LISTEN_PORT)s -Dzabbix.startPollers=%(ENV_ZJ_START_POLLERS)s -Dzabbix.timeout=%(ENV_ZJ_TIMEOUT)s -Dsun.rmi.transport.tcp.responseTimeout=%(ENV_ZJ_TCP_TIMEOUT)s com.zabbix.gateway.JavaGateway 3 | directory = /usr/local/sbin/zabbix_java/ 4 | autorestart = true 5 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/docker-compose.yml: -------------------------------------------------------------------------------- 1 | zabbix-db-storage: 2 | image: busybox:latest 3 | volumes: 4 | - /var/lib/mysql 5 | 6 | zabbix-db: 7 | image: monitoringartist/zabbix-db-mariadb 8 | volumes: 9 | - /backups:/backups 10 | - /etc/localtime:/etc/localtime:ro 11 | volumes_from: 12 | - zabbix-db-storage 13 | environment: 14 | - MARIADB_USER=zabbix 15 | - MARIADB_PASS=my_password 16 | 17 | zabbix-server: 18 | image: monitoringartist/zabbix-2.4:latest 19 | ports: 20 | - "80:80" 21 | - "10051:10051" 22 | volumes: 23 | - /etc/localtime:/etc/localtime:ro 24 | links: 25 | - zabbix-db:zabbix.db 26 | environment: 27 | - ZS_DBHost=zabbix.db 28 | - ZS_DBUser=zabbix 29 | - ZS_DBPassword=my_password 30 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/docker-compose.yml: -------------------------------------------------------------------------------- 1 | zabbix-db-storage: 2 | image: busybox:latest 3 | volumes: 4 | - /var/lib/mysql 5 | 6 | zabbix-db: 7 | image: monitoringartist/zabbix-db-mariadb 8 | volumes: 9 | - /backups:/backups 10 | - /etc/localtime:/etc/localtime:ro 11 | volumes_from: 12 | - zabbix-db-storage 13 | environment: 14 | - MARIADB_USER=zabbix 15 | - MARIADB_PASS=my_password 16 | 17 | zabbix-server: 18 | image: monitoringartist/zabbix-xxl:latest 19 | ports: 20 | - "80:80" 21 | - "10051:10051" 22 | volumes: 23 | - /etc/localtime:/etc/localtime:ro 24 | links: 25 | - zabbix-db:zabbix.db 26 | environment: 27 | - ZS_DBHost=zabbix.db 28 | - ZS_DBUser=zabbix 29 | - ZS_DBPassword=my_password 30 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/docker-compose.yml: -------------------------------------------------------------------------------- 1 | zabbix-db-storage: 2 | image: busybox:latest 3 | volumes: 4 | - /var/lib/mysql 5 | 6 | zabbix-db: 7 | image: monitoringartist/zabbix-db-mariadb 8 | volumes: 9 | - /backups:/backups 10 | - /etc/localtime:/etc/localtime:ro 11 | volumes_from: 12 | - zabbix-db-storage 13 | environment: 14 | - MARIADB_USER=zabbix 15 | - MARIADB_PASS=my_password 16 | 17 | zabbix-server: 18 | image: monitoringartist/dockbix-xxl:latest 19 | ports: 20 | - "80:80" 21 | - "10051:10051" 22 | volumes: 23 | - /etc/localtime:/etc/localtime:ro 24 | links: 25 | - zabbix-db:zabbix.db 26 | environment: 27 | - ZS_DBHost=zabbix.db 28 | - ZS_DBUser=zabbix 29 | - ZS_DBPassword=my_password 30 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/docker-compose.yml: -------------------------------------------------------------------------------- 1 | zabbix-db-storage: 2 | image: busybox:latest 3 | volumes: 4 | - /var/lib/mysql 5 | 6 | zabbix-db: 7 | image: monitoringartist/zabbix-db-mariadb 8 | volumes: 9 | - /backups:/backups 10 | - /etc/localtime:/etc/localtime:ro 11 | volumes_from: 12 | - zabbix-db-storage 13 | environment: 14 | - MARIADB_USER=zabbix 15 | - MARIADB_PASS=my_password 16 | 17 | zabbix-server: 18 | image: monitoringartist/dockbix-xxl:latest 19 | ports: 20 | - "80:80" 21 | - "10051:10051" 22 | volumes: 23 | - /etc/localtime:/etc/localtime:ro 24 | links: 25 | - zabbix-db:zabbix.db 26 | environment: 27 | - ZS_DBHost=zabbix.db 28 | - ZS_DBUser=zabbix 29 | - ZS_DBPassword=my_password 30 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/config/init/10-nginx-stub-status.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Configure access IP address for nginx status page under /nginx_status 4 | # 5 | set -eu 6 | export TERM=xterm 7 | # Bash Colors 8 | red=`tput setaf 1` 9 | green=`tput setaf 2` 10 | yellow=`tput setaf 3` 11 | white=`tput setaf 7` 12 | bold=`tput bold` 13 | reset=`tput sgr0` 14 | separator=$(echo && printf '=%.0s' {1..100} && echo) 15 | 16 | # Logging functions 17 | log() { 18 | if [[ "$@" ]]; then echo "${bold}${green}`date +'%Y-%m-%d %H:%M:%S,000'` INFO${reset} $@"; 19 | else echo -n; fi 20 | } 21 | 22 | sed -i "s|allow 127.0.0.1|allow ${STATUS_PAGE_ALLOWED_IP}|g" /etc/nginx/conf.d/stub-status.conf 23 | log "Nginx status page: allowed address set to $STATUS_PAGE_ALLOWED_IP." 24 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/config/init/10-php-fpm-status.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Configure access IP address for PHP-FPM satus page under /fpm_status 4 | # 5 | 6 | set -eu 7 | export TERM=xterm 8 | # Bash Colors 9 | red=`tput setaf 1` 10 | green=`tput setaf 2` 11 | yellow=`tput setaf 3` 12 | white=`tput setaf 7` 13 | bold=`tput bold` 14 | reset=`tput sgr0` 15 | separator=$(echo && printf '=%.0s' {1..100} && echo) 16 | 17 | # Logging functions 18 | log() { 19 | if [[ "$@" ]]; then echo "${bold}${green}`date +'%Y-%m-%d %H:%M:%S,000'` INFO${reset} $@"; 20 | else echo -n; fi 21 | } 22 | 23 | sed -i "s|allow 127.0.0.1|allow ${STATUS_PAGE_ALLOWED_IP}|g" /etc/nginx/conf.d/fpm-status.conf 24 | log "PHP-FPM status page: allowed address set to $STATUS_PAGE_ALLOWED_IP." 25 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/config/init/10-nginx-stub-status.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Configure access IP address for nginx status page under /nginx_status 4 | # 5 | set -eu 6 | export TERM=xterm 7 | # Bash Colors 8 | red=`tput setaf 1` 9 | green=`tput setaf 2` 10 | yellow=`tput setaf 3` 11 | white=`tput setaf 7` 12 | bold=`tput bold` 13 | reset=`tput sgr0` 14 | separator=$(echo && printf '=%.0s' {1..100} && echo) 15 | 16 | # Logging functions 17 | log() { 18 | if [[ "$@" ]]; then echo "${bold}${green}`date +'%Y-%m-%d %H:%M:%S,000'` INFO${reset} $@"; 19 | else echo -n; fi 20 | } 21 | 22 | sed -i "s|allow 127.0.0.1|allow ${STATUS_PAGE_ALLOWED_IP}|g" /etc/nginx/conf.d/stub-status.conf 23 | log "Nginx status page: allowed address set to $STATUS_PAGE_ALLOWED_IP." 24 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/config/init/10-php-fpm-status.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Configure access IP address for PHP-FPM satus page under /fpm_status 4 | # 5 | 6 | set -eu 7 | export TERM=xterm 8 | # Bash Colors 9 | red=`tput setaf 1` 10 | green=`tput setaf 2` 11 | yellow=`tput setaf 3` 12 | white=`tput setaf 7` 13 | bold=`tput bold` 14 | reset=`tput sgr0` 15 | separator=$(echo && printf '=%.0s' {1..100} && echo) 16 | 17 | # Logging functions 18 | log() { 19 | if [[ "$@" ]]; then echo "${bold}${green}`date +'%Y-%m-%d %H:%M:%S,000'` INFO${reset} $@"; 20 | else echo -n; fi 21 | } 22 | 23 | sed -i "s|allow 127.0.0.1|allow ${STATUS_PAGE_ALLOWED_IP}|g" /etc/nginx/conf.d/fpm-status.conf 24 | log "PHP-FPM status page: allowed address set to $STATUS_PAGE_ALLOWED_IP." 25 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/etc/nginx/nginx.conf: -------------------------------------------------------------------------------- 1 | daemon off; 2 | pid /var/run/nginx.pid; 3 | 4 | user www; 5 | error_log stderr notice; 6 | 7 | worker_processes auto; 8 | events { 9 | multi_accept on; 10 | use epoll; 11 | worker_connections 1024; 12 | } 13 | 14 | http { 15 | # Somehow it's not inherited by vhosts (server{} context) when using with 'stderr' value. 16 | # Therefore it's re-defined here to avoid specyfing it for each vhost. 17 | error_log stderr notice; 18 | 19 | include /etc/nginx/nginx.d/*.conf; 20 | include /data/conf/nginx/nginx.d/*.conf; 21 | 22 | include /etc/nginx/addon.d/*.conf; 23 | include /data/conf/nginx/addon.d/*.conf; 24 | 25 | include /etc/nginx/hosts.d/*.conf; 26 | include /data/conf/nginx/hosts.d/*.conf; 27 | } 28 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/etc/nginx/nginx.conf: -------------------------------------------------------------------------------- 1 | daemon off; 2 | pid /var/run/nginx.pid; 3 | 4 | user www; 5 | error_log stderr notice; 6 | 7 | worker_processes auto; 8 | events { 9 | multi_accept on; 10 | use epoll; 11 | worker_connections 1024; 12 | } 13 | 14 | http { 15 | # Somehow it's not inherited by vhosts (server{} context) when using with 'stderr' value. 16 | # Therefore it's re-defined here to avoid specyfing it for each vhost. 17 | error_log stderr notice; 18 | 19 | include /etc/nginx/nginx.d/*.conf; 20 | include /data/conf/nginx/nginx.d/*.conf; 21 | 22 | include /etc/nginx/addon.d/*.conf; 23 | include /data/conf/nginx/addon.d/*.conf; 24 | 25 | include /etc/nginx/hosts.d/*.conf; 26 | include /data/conf/nginx/hosts.d/*.conf; 27 | } 28 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/etc/nginx/nginx.conf: -------------------------------------------------------------------------------- 1 | daemon off; 2 | pid /var/run/nginx.pid; 3 | 4 | user www; 5 | error_log stderr notice; 6 | 7 | worker_processes auto; 8 | events { 9 | multi_accept on; 10 | use epoll; 11 | worker_connections 1024; 12 | } 13 | 14 | http { 15 | # Somehow it's not inherited by vhosts (server{} context) when using with 'stderr' value. 16 | # Therefore it's re-defined here to avoid specyfing it for each vhost. 17 | error_log stderr notice; 18 | 19 | include /etc/nginx/nginx.d/*.conf; 20 | include /data/conf/nginx/nginx.d/*.conf; 21 | 22 | include /etc/nginx/addon.d/*.conf; 23 | include /data/conf/nginx/addon.d/*.conf; 24 | 25 | include /etc/nginx/hosts.d/*.conf; 26 | include /data/conf/nginx/hosts.d/*.conf; 27 | } 28 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/etc/nginx/nginx.conf: -------------------------------------------------------------------------------- 1 | daemon off; 2 | pid /var/run/nginx.pid; 3 | 4 | user www; 5 | error_log stderr notice; 6 | 7 | worker_processes auto; 8 | events { 9 | multi_accept on; 10 | use epoll; 11 | worker_connections 1024; 12 | } 13 | 14 | http { 15 | # Somehow it's not inherited by vhosts (server{} context) when using with 'stderr' value. 16 | # Therefore it's re-defined here to avoid specyfing it for each vhost. 17 | error_log stderr notice; 18 | 19 | include /etc/nginx/nginx.d/*.conf; 20 | include /data/conf/nginx/nginx.d/*.conf; 21 | 22 | include /etc/nginx/addon.d/*.conf; 23 | include /data/conf/nginx/addon.d/*.conf; 24 | 25 | include /etc/nginx/hosts.d/*.conf; 26 | include /data/conf/nginx/hosts.d/*.conf; 27 | } 28 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/etc/zabbix/api/06-enable-dockbix-agent-auto-registration.api: -------------------------------------------------------------------------------- 1 | {"jsonrpc":"2.0","method":"template.get","id":,"auth":"","params":{"output":"templateid","filter":{"host":"Template OS Linux for Dockbix Agent XXL - www.monitoringartist.com"}}} 2 | {"jsonrpc":"2.0","method":"action.create","id":,"auth":"","params":{"name":"Dockbix Agent XXL auto registration","eventsource":2,"status":0,"esc_period":120,"def_shortdata":"Dockbix Agent XXL auto registration: {HOST.HOST}","def_longdata":"Host name: {HOST.HOST}\r\nHost IP: {HOST.IP}\r\nAgent port: {HOST.PORT}","filter":{"evaltype":0,"conditions":[{"conditiontype":24,"operator":2,"value":"dockbix-agent-xxl"}]},"operations":[{"operationtype":6,"optemplate":[{"templateid":""}]}]}} 3 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/etc/zabbix/api/06-enable-dockbix-agent-auto-registration.api: -------------------------------------------------------------------------------- 1 | {"jsonrpc":"2.0","method":"template.get","id":,"auth":"","params":{"output":"templateid","filter":{"host":"Template OS Linux for Dockbix Agent XXL - www.monitoringartist.com"}}} 2 | {"jsonrpc":"2.0","method":"action.create","id":,"auth":"","params":{"name":"Dockbix Agent XXL auto registration","eventsource":2,"status":0,"esc_period":120,"def_shortdata":"Dockbix Agent XXL auto registration: {HOST.HOST}","def_longdata":"Host name: {HOST.HOST}\r\nHost IP: {HOST.IP}\r\nAgent port: {HOST.PORT}","filter":{"evaltype":0,"conditions":[{"conditiontype":24,"operator":2,"value":"dockbix-agent-xxl"}]},"operations":[{"operationtype":6,"optemplate":[{"templateid":""}]}]}} 3 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-zabbix/etc/supervisor.d/zabbix-java-gateway.conf: -------------------------------------------------------------------------------- 1 | [supervisord] 2 | nodaemon = true 3 | 4 | [program:zabbix-java-gateway] 5 | command = /usr/bin/java -server -classpath lib:lib/%(ENV_ZJ_JarFile_android_json)s:lib/%(ENV_ZJ_JarFile_logback_classic)s:lib/%(ENV_ZJ_JarFile_logback_core)s:lib/%(ENV_ZJ_JarFile_slf4j_api)s:bin/%(ENV_ZJ_JarFile)s -Dzabbix.pidFile=%(ENV_ZJ_PID_FILE)s -Dzabbix.listenIP=%(ENV_ZJ_LISTEN_IP)s -Dzabbix.listenPort=%(ENV_ZJ_LISTEN_PORT)s -Dzabbix.startPollers=%(ENV_ZJ_START_POLLERS)s -Dzabbix.timeout=%(ENV_ZJ_TIMEOUT)s -Dsun.rmi.transport.tcp.responseTimeout=%(ENV_ZJ_TCP_TIMEOUT)s com.zabbix.gateway.JavaGateway 6 | directory = /usr/local/sbin/zabbix_java/ 7 | autorestart = true 8 | auto_start = true 9 | 10 | stderr_logfile = NONE 11 | stdout_logfile = NONE 12 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-zabbix/etc/supervisor.d/zabbix-java-gateway.conf: -------------------------------------------------------------------------------- 1 | [supervisord] 2 | nodaemon = true 3 | 4 | [program:zabbix-java-gateway] 5 | command = /usr/bin/java -server -classpath lib:lib/%(ENV_ZJ_JarFile_android_json)s:lib/%(ENV_ZJ_JarFile_logback_classic)s:lib/%(ENV_ZJ_JarFile_logback_core)s:lib/%(ENV_ZJ_JarFile_slf4j_api)s:bin/%(ENV_ZJ_JarFile)s -Dzabbix.pidFile=%(ENV_ZJ_PID_FILE)s -Dzabbix.listenIP=%(ENV_ZJ_LISTEN_IP)s -Dzabbix.listenPort=%(ENV_ZJ_LISTEN_PORT)s -Dzabbix.startPollers=%(ENV_ZJ_START_POLLERS)s -Dzabbix.timeout=%(ENV_ZJ_TIMEOUT)s -Dsun.rmi.transport.tcp.responseTimeout=%(ENV_ZJ_TCP_TIMEOUT)s com.zabbix.gateway.JavaGateway 6 | directory = /usr/local/sbin/zabbix_java/ 7 | autorestart = true 8 | auto_start = true 9 | 10 | stderr_logfile = NONE 11 | stdout_logfile = NONE 12 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/etc/zabbix/api/02-create-regular-expressions.sql: -------------------------------------------------------------------------------- 1 | BEGIN; 2 | SET @rid = IFNULL((SELECT MAX(regexpid) AS id FROM regexps),0); 3 | SET @eid = IFNULL((SELECT MAX(expressionid) AS id FROM expressions),0); 4 | INSERT INTO `regexps` (regexpid,name,test_string) VALUES 5 | (@rid+1,'Exclude Docker related file systems','/var/lib/docker/devicemapper/mnt/123456'), 6 | (@rid+2,'Exclude Docker related network interfaces','veth29caba3'); 7 | INSERT INTO `expressions` 8 | (expressionid,regexpid,expression,expression_type,exp_delimiter,case_sensitive) 9 | VALUES 10 | (@eid+1,@rid+1,'(/devicemapper/mnt/|/aufs/mnt/)',4,',',1), 11 | (@eid+2,@rid+2,'^veth',4,',',1); 12 | DELETE FROM ids WHERE table_name='regexps' AND field_name='regexpid'; 13 | DELETE FROM ids WHERE table_name='expressions' AND field_name='expressionid'; 14 | COMMIT; 15 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/etc/zabbix/api/02-create-regular-expressions.sql: -------------------------------------------------------------------------------- 1 | BEGIN; 2 | SET @rid = IFNULL((SELECT MAX(regexpid) AS id FROM regexps),0); 3 | SET @eid = IFNULL((SELECT MAX(expressionid) AS id FROM expressions),0); 4 | INSERT INTO `regexps` (regexpid,name,test_string) VALUES 5 | (@rid+1,'Exclude Docker related file systems','/var/lib/docker/devicemapper/mnt/123456'), 6 | (@rid+2,'Exclude Docker related network interfaces','veth29caba3'); 7 | INSERT INTO `expressions` 8 | (expressionid,regexpid,expression,expression_type,exp_delimiter,case_sensitive) 9 | VALUES 10 | (@eid+1,@rid+1,'(/devicemapper/mnt/|/aufs/mnt/)',4,',',1), 11 | (@eid+2,@rid+2,'^veth',4,',',1); 12 | DELETE FROM ids WHERE table_name='regexps' AND field_name='regexpid'; 13 | DELETE FROM ids WHERE table_name='expressions' AND field_name='expressionid'; 14 | COMMIT; 15 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-db-mariadb/container-files/run.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | set -u 5 | source ./mariadb-functions.sh 6 | 7 | # User-provided env variables 8 | MARIADB_USER=${MARIADB_USER:="admin"} 9 | MARIADB_PASS=${MARIADB_PASS:-$(pwgen -s 12 1)} 10 | 11 | # Other variables 12 | VOLUME_HOME="/var/lib/mysql" 13 | ERROR_LOG="$VOLUME_HOME/error.log" 14 | MYSQLD_PID_FILE="$VOLUME_HOME/mysql.pid" 15 | 16 | # Trap INT and TERM signals to do clean DB shutdown 17 | trap terminate_db SIGINT SIGTERM 18 | config_db 19 | install_db 20 | tail -F $ERROR_LOG & # tail all db logs to stdout 21 | 22 | /usr/bin/mysqld_safe & # Launch DB server in the background 23 | MYSQLD_SAFE_PID=$! 24 | 25 | wait_for_db 26 | secure_and_tidy_db 27 | show_db_status 28 | create_admin_user 29 | 30 | # Do not exit this script untill mysqld_safe exits gracefully 31 | wait $MYSQLD_SAFE_PID 32 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/etc/supervisord.conf: -------------------------------------------------------------------------------- 1 | [supervisord] 2 | pidfile = /run/supervisord.pid 3 | # It seems that it's not possible to swith this log to NONE (it creates NONE logfile) 4 | logfile = /data/logs/supervisord.log 5 | # Set loglevel=debug, only then all logs from child services are printed out 6 | # to container logs (and thus available via `docker logs [container]` 7 | loglevel = debug 8 | 9 | # These two (unix_http_server, rpcinterface) are needed for supervisorctl to work 10 | [inet_http_server] 11 | port = :9111 12 | username = sv 13 | password = password 14 | 15 | [rpcinterface:supervisor] 16 | supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface 17 | 18 | [supervisorctl] 19 | serverurl = http://localhost:9111 20 | username = sv 21 | password = password 22 | 23 | [include] 24 | files = /etc/supervisor.d/*.conf 25 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/etc/supervisord.conf: -------------------------------------------------------------------------------- 1 | [supervisord] 2 | pidfile = /run/supervisord.pid 3 | # It seems that it's not possible to swith this log to NONE (it creates NONE logfile) 4 | logfile = /data/logs/supervisord.log 5 | # Set loglevel=debug, only then all logs from child services are printed out 6 | # to container logs (and thus available via `docker logs [container]` 7 | loglevel = debug 8 | 9 | # These two (unix_http_server, rpcinterface) are needed for supervisorctl to work 10 | [inet_http_server] 11 | port = :9111 12 | username = sv 13 | password = password 14 | 15 | [rpcinterface:supervisor] 16 | supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface 17 | 18 | [supervisorctl] 19 | serverurl = http://localhost:9111 20 | username = sv 21 | password = password 22 | 23 | [include] 24 | files = /etc/supervisor.d/*.conf 25 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/docker-compose-v2.yml: -------------------------------------------------------------------------------- 1 | version: '2' 2 | services: 3 | zabbix-db: 4 | image: monitoringartist/zabbix-db-mariadb 5 | volumes: 6 | - zabbix-db-storage:/var/lib/mysql 7 | - backups:/backups 8 | - /etc/localtime:/etc/localtime:ro 9 | environment: 10 | - MARIADB_USER=zabbix 11 | - MARIADB_PASS=my_password 12 | zabbix-server: 13 | image: monitoringartist/zabbix-xxl:latest 14 | depends_on: 15 | - zabbix-db 16 | ports: 17 | - "80:80" 18 | - "10051:10051" 19 | volumes: 20 | - /etc/localtime:/etc/localtime:ro 21 | links: 22 | - zabbix-db:zabbix.db 23 | environment: 24 | - ZS_DBHost=zabbix.db 25 | - ZS_DBUser=zabbix 26 | - ZS_DBPassword=my_password 27 | volumes: 28 | zabbix-db-storage: 29 | driver: local 30 | backups: 31 | driver: local 32 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/etc/supervisord.conf: -------------------------------------------------------------------------------- 1 | [supervisord] 2 | pidfile = /run/supervisord.pid 3 | # It seems that it's not possible to swith this log to NONE (it creates NONE logfile) 4 | logfile = /data/logs/supervisord.log 5 | # Set loglevel=debug, only then all logs from child services are printed out 6 | # to container logs (and thus available via `docker logs [container]` 7 | loglevel = debug 8 | 9 | # These two (unix_http_server, rpcinterface) are needed for supervisorctl to work 10 | [inet_http_server] 11 | port = :9111 12 | username = sv 13 | password = password 14 | 15 | [rpcinterface:supervisor] 16 | supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface 17 | 18 | [supervisorctl] 19 | serverurl = http://localhost:9111 20 | username = sv 21 | password = password 22 | 23 | [include] 24 | files = /etc/supervisor.d/*.conf 25 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/docker-compose-v2.yml: -------------------------------------------------------------------------------- 1 | version: '2' 2 | services: 3 | zabbix-db: 4 | image: monitoringartist/zabbix-db-mariadb 5 | volumes: 6 | - zabbix-db-storage:/var/lib/mysql 7 | - backups:/backups 8 | - /etc/localtime:/etc/localtime:ro 9 | environment: 10 | - MARIADB_USER=zabbix 11 | - MARIADB_PASS=my_password 12 | zabbix-server: 13 | image: monitoringartist/dockbix-xxl:latest 14 | depends_on: 15 | - zabbix-db 16 | ports: 17 | - "80:80" 18 | - "10051:10051" 19 | volumes: 20 | - /etc/localtime:/etc/localtime:ro 21 | links: 22 | - zabbix-db:zabbix.db 23 | environment: 24 | - ZS_DBHost=zabbix.db 25 | - ZS_DBUser=zabbix 26 | - ZS_DBPassword=my_password 27 | volumes: 28 | zabbix-db-storage: 29 | driver: local 30 | backups: 31 | driver: local 32 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/etc/supervisord.conf: -------------------------------------------------------------------------------- 1 | [supervisord] 2 | pidfile = /run/supervisord.pid 3 | # It seems that it's not possible to swith this log to NONE (it creates NONE logfile) 4 | logfile = /data/logs/supervisord.log 5 | # Set loglevel=debug, only then all logs from child services are printed out 6 | # to container logs (and thus available via `docker logs [container]` 7 | loglevel = debug 8 | 9 | # These two (unix_http_server, rpcinterface) are needed for supervisorctl to work 10 | [inet_http_server] 11 | port = :9111 12 | username = sv 13 | password = password 14 | 15 | [rpcinterface:supervisor] 16 | supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface 17 | 18 | [supervisorctl] 19 | serverurl = http://localhost:9111 20 | username = sv 21 | password = password 22 | 23 | [include] 24 | files = /etc/supervisor.d/*.conf 25 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/docker-compose-v2.yml: -------------------------------------------------------------------------------- 1 | version: '2' 2 | services: 3 | zabbix-db: 4 | image: monitoringartist/zabbix-db-mariadb 5 | volumes: 6 | - zabbix-db-storage:/var/lib/mysql 7 | - backups:/backups 8 | - /etc/localtime:/etc/localtime:ro 9 | environment: 10 | - MARIADB_USER=zabbix 11 | - MARIADB_PASS=my_password 12 | zabbix-server: 13 | image: monitoringartist/dockbix-xxl:latest 14 | depends_on: 15 | - zabbix-db 16 | ports: 17 | - "80:80" 18 | - "10051:10051" 19 | volumes: 20 | - /etc/localtime:/etc/localtime:ro 21 | links: 22 | - zabbix-db:zabbix.db 23 | environment: 24 | - ZS_DBHost=zabbix.db 25 | - ZS_DBUser=zabbix 26 | - ZS_DBPassword=my_password 27 | volumes: 28 | zabbix-db-storage: 29 | driver: local 30 | backups: 31 | driver: local 32 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/usr/local/src/zabbix/supervisord-listener.py: -------------------------------------------------------------------------------- 1 | #! /usr/bin/python 2 | import sys 3 | import subprocess 4 | 5 | def write_stdout(s): 6 | sys.stdout.write(s) 7 | sys.stdout.flush() 8 | 9 | def write_stderr(s): 10 | sys.stderr.write(s) 11 | sys.stderr.flush() 12 | 13 | def main(args): 14 | while 1: 15 | write_stdout('READY\n') # transition from ACKNOWLEDGED to READY 16 | line = sys.stdin.readline() # read header line from stdin 17 | write_stderr(line) # print it out to stderr 18 | headers = dict([ x.split(':') for x in line.split() ]) 19 | data = sys.stdin.read(int(headers['len'])) # read the event payload 20 | res = subprocess.call(args, stdout=sys.stderr); # don't mess with real stdout 21 | write_stderr(data) 22 | write_stdout('RESULT 2\nOK') # transition from READY to ACKNOWLEDGED 23 | 24 | if __name__ == '__main__': 25 | main(sys.argv[1:]) 26 | import sys 27 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/usr/local/src/zabbix/supervisord-listener.py: -------------------------------------------------------------------------------- 1 | #! /usr/bin/python 2 | import sys 3 | import subprocess 4 | 5 | def write_stdout(s): 6 | sys.stdout.write(s) 7 | sys.stdout.flush() 8 | 9 | def write_stderr(s): 10 | sys.stderr.write(s) 11 | sys.stderr.flush() 12 | 13 | def main(args): 14 | while 1: 15 | write_stdout('READY\n') # transition from ACKNOWLEDGED to READY 16 | line = sys.stdin.readline() # read header line from stdin 17 | write_stderr(line) # print it out to stderr 18 | headers = dict([ x.split(':') for x in line.split() ]) 19 | data = sys.stdin.read(int(headers['len'])) # read the event payload 20 | res = subprocess.call(args, stdout=sys.stderr); # don't mess with real stdout 21 | write_stderr(data) 22 | write_stdout('RESULT 2\nOK') # transition from READY to ACKNOWLEDGED 23 | 24 | if __name__ == '__main__': 25 | main(sys.argv[1:]) 26 | import sys 27 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/etc/nginx/addon.d/fastcgi-cache.example: -------------------------------------------------------------------------------- 1 | # 2 | # Pre-configured FastCGI cache. 3 | # It's not used until specified in location {} context. 4 | # 5 | # Usage: rename this file to fastcgi-cache.conf 6 | # and your vhost config add something like this: 7 | # location ~ \.php$ { 8 | # include fastcgi_params; 9 | # fastcgi_pass php-upstream; 10 | # fastcgi_cache APPCACHE; 11 | # fastcgi_cache_valid 60m; 12 | # } 13 | # 14 | # To achieve best performance, mount /run (or /var/run) 15 | # which is usually tmpfs memory drive, into your docker container: 16 | # docker run ... -v /run/user/my-container:/run/user ... 17 | # 18 | fastcgi_cache_path /run/user/nginx-cache levels=1:2 keys_zone=APPCACHE:10m inactive=120m; 19 | fastcgi_temp_path /run/user/nginx-cache-tmp; 20 | fastcgi_cache_key "$scheme$request_method$host$request_uri"; 21 | fastcgi_cache_use_stale error timeout invalid_header http_500; 22 | fastcgi_ignore_headers Cache-Control Expires Set-Cookie; 23 | fastcgi_cache_lock on; 24 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/etc/nginx/addon.d/fastcgi-cache.example: -------------------------------------------------------------------------------- 1 | # 2 | # Pre-configured FastCGI cache. 3 | # It's not used until specified in location {} context. 4 | # 5 | # Usage: rename this file to fastcgi-cache.conf 6 | # and your vhost config add something like this: 7 | # location ~ \.php$ { 8 | # include fastcgi_params; 9 | # fastcgi_pass php-upstream; 10 | # fastcgi_cache APPCACHE; 11 | # fastcgi_cache_valid 60m; 12 | # } 13 | # 14 | # To achieve best performance, mount /run (or /var/run) 15 | # which is usually tmpfs memory drive, into your docker container: 16 | # docker run ... -v /run/user/my-container:/run/user ... 17 | # 18 | fastcgi_cache_path /run/user/nginx-cache levels=1:2 keys_zone=APPCACHE:10m inactive=120m; 19 | fastcgi_temp_path /run/user/nginx-cache-tmp; 20 | fastcgi_cache_key "$scheme$request_method$host$request_uri"; 21 | fastcgi_cache_use_stale error timeout invalid_header http_500; 22 | fastcgi_ignore_headers Cache-Control Expires Set-Cookie; 23 | fastcgi_cache_lock on; 24 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/etc/nginx/addon.d/fastcgi-cache.example: -------------------------------------------------------------------------------- 1 | # 2 | # Pre-configured FastCGI cache. 3 | # It's not used until specified in location {} context. 4 | # 5 | # Usage: rename this file to fastcgi-cache.conf 6 | # and your vhost config add something like this: 7 | # location ~ \.php$ { 8 | # include fastcgi_params; 9 | # fastcgi_pass php-upstream; 10 | # fastcgi_cache APPCACHE; 11 | # fastcgi_cache_valid 60m; 12 | # } 13 | # 14 | # To achieve best performance, mount /run (or /var/run) 15 | # which is usually tmpfs memory drive, into your docker container: 16 | # docker run ... -v /run/user/my-container:/run/user ... 17 | # 18 | fastcgi_cache_path /run/user/nginx-cache levels=1:2 keys_zone=APPCACHE:10m inactive=120m; 19 | fastcgi_temp_path /run/user/nginx-cache-tmp; 20 | fastcgi_cache_key "$scheme$request_method$host$request_uri"; 21 | fastcgi_cache_use_stale error timeout invalid_header http_500; 22 | fastcgi_ignore_headers Cache-Control Expires Set-Cookie; 23 | fastcgi_cache_lock on; 24 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/etc/nginx/addon.d/fastcgi-cache.example: -------------------------------------------------------------------------------- 1 | # 2 | # Pre-configured FastCGI cache. 3 | # It's not used until specified in location {} context. 4 | # 5 | # Usage: rename this file to fastcgi-cache.conf 6 | # and your vhost config add something like this: 7 | # location ~ \.php$ { 8 | # include fastcgi_params; 9 | # fastcgi_pass php-upstream; 10 | # fastcgi_cache APPCACHE; 11 | # fastcgi_cache_valid 60m; 12 | # } 13 | # 14 | # To achieve best performance, mount /run (or /var/run) 15 | # which is usually tmpfs memory drive, into your docker container: 16 | # docker run ... -v /run/user/my-container:/run/user ... 17 | # 18 | fastcgi_cache_path /run/user/nginx-cache levels=1:2 keys_zone=APPCACHE:10m inactive=120m; 19 | fastcgi_temp_path /run/user/nginx-cache-tmp; 20 | fastcgi_cache_key "$scheme$request_method$host$request_uri"; 21 | fastcgi_cache_use_stale error timeout invalid_header http_500; 22 | fastcgi_ignore_headers Cache-Control Expires Set-Cookie; 23 | fastcgi_cache_lock on; 24 | -------------------------------------------------------------------------------- /ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 10 | 11 | ### Description 12 | 13 | [Description of the issue] 14 | 15 | ### Steps to Reproduce 16 | 17 | 1. [First Step] 18 | 2. [Second Step] 19 | 3. [and so on...] 20 | 21 | **Expected behavior:** [What you expect to happen] 22 | 23 | **Actual behavior:** [What actually happens] 24 | 25 | **Reproduces how often:** [What percentage of the time does it reproduce?] 26 | 27 | ### Versions 28 | 29 | You can get this information from copy and pasting the output of `docker info`. 30 | Also, please include the OS and what version of the OS and kernel you're running. 31 | 32 | ### Additional Information 33 | 34 | Any additional information, configuration, used Docker orchestration tool or 35 | data that might be necessary to reproduce the issue. 36 | 37 | ### You Docker knowledge level 38 | 39 | Please include your Docker knowledge level 40 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/config/init/10-nginx-internal-proxy.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # Configure internal transparent proxy on specified port (SET_INTERNAL_PROXY_ON_PORT) 5 | # which redirect all traffic to localhost:80. See README for more info. 6 | # 7 | 8 | PROXY_SOURCE_CONF="/config/init/vhost-proxy.conf" 9 | PROXY_SOURCE_CONF_HTTPS="/config/init/vhost-proxy-https.conf" 10 | PROXY_TARGET_CONF="/etc/nginx/hosts.d/internal-proxy.conf" 11 | PROXY_TARGET_CONF_HTTPS="/etc/nginx/hosts.d/internal-proxy-https.conf" 12 | 13 | if [ ! -z "${SET_INTERNAL_PROXY_ON_PORT+xxx}" ] && [ ! -z "${SET_INTERNAL_PROXY_ON_PORT}" ]; then 14 | cat $PROXY_SOURCE_CONF | sed "s/%proxy_port%/$SET_INTERNAL_PROXY_ON_PORT/g" > $PROXY_TARGET_CONF 15 | echo "Nginx: internal proxy set on port :$SET_INTERNAL_PROXY_ON_PORT."; echo 16 | fi 17 | 18 | if [ ! -z "${SET_INTERNAL_HTTPS_PROXY_ON_PORT+xxx}" ] && [ ! -z "${SET_INTERNAL_HTTPS_PROXY_ON_PORT}" ]; then 19 | cat $PROXY_SOURCE_CONF_HTTPS | sed "s/%proxy_port%/$SET_INTERNAL_HTTPS_PROXY_ON_PORT/g" > $PROXY_TARGET_CONF_HTTPS 20 | echo "Nginx: internal HTTPS proxy set on port :$SET_INTERNAL_HTTPS_PROXY_ON_PORT."; echo 21 | fi 22 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/config/init/10-nginx-internal-proxy.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # Configure internal transparent proxy on specified port (SET_INTERNAL_PROXY_ON_PORT) 5 | # which redirect all traffic to localhost:80. See README for more info. 6 | # 7 | 8 | PROXY_SOURCE_CONF="/config/init/vhost-proxy.conf" 9 | PROXY_SOURCE_CONF_HTTPS="/config/init/vhost-proxy-https.conf" 10 | PROXY_TARGET_CONF="/etc/nginx/hosts.d/internal-proxy.conf" 11 | PROXY_TARGET_CONF_HTTPS="/etc/nginx/hosts.d/internal-proxy-https.conf" 12 | 13 | if [ ! -z "${SET_INTERNAL_PROXY_ON_PORT+xxx}" ] && [ ! -z "${SET_INTERNAL_PROXY_ON_PORT}" ]; then 14 | cat $PROXY_SOURCE_CONF | sed "s/%proxy_port%/$SET_INTERNAL_PROXY_ON_PORT/g" > $PROXY_TARGET_CONF 15 | echo "Nginx: internal proxy set on port :$SET_INTERNAL_PROXY_ON_PORT."; echo 16 | fi 17 | 18 | if [ ! -z "${SET_INTERNAL_HTTPS_PROXY_ON_PORT+xxx}" ] && [ ! -z "${SET_INTERNAL_HTTPS_PROXY_ON_PORT}" ]; then 19 | cat $PROXY_SOURCE_CONF_HTTPS | sed "s/%proxy_port%/$SET_INTERNAL_HTTPS_PROXY_ON_PORT/g" > $PROXY_TARGET_CONF_HTTPS 20 | echo "Nginx: internal HTTPS proxy set on port :$SET_INTERNAL_HTTPS_PROXY_ON_PORT."; echo 21 | fi 22 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/config/init/10-nginx-internal-proxy.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # Configure internal transparent proxy on specified port (SET_INTERNAL_PROXY_ON_PORT) 5 | # which redirect all traffic to localhost:80. See README for more info. 6 | # 7 | 8 | PROXY_SOURCE_CONF="/config/init/vhost-proxy.conf" 9 | PROXY_SOURCE_CONF_HTTPS="/config/init/vhost-proxy-https.conf" 10 | PROXY_TARGET_CONF="/etc/nginx/hosts.d/internal-proxy.conf" 11 | PROXY_TARGET_CONF_HTTPS="/etc/nginx/hosts.d/internal-proxy-https.conf" 12 | 13 | if [ ! -z "${SET_INTERNAL_PROXY_ON_PORT+xxx}" ] && [ ! -z "${SET_INTERNAL_PROXY_ON_PORT}" ]; then 14 | cat $PROXY_SOURCE_CONF | sed "s/%proxy_port%/$SET_INTERNAL_PROXY_ON_PORT/g" > $PROXY_TARGET_CONF 15 | echo "Nginx: internal proxy set on port :$SET_INTERNAL_PROXY_ON_PORT."; echo 16 | fi 17 | 18 | if [ ! -z "${SET_INTERNAL_HTTPS_PROXY_ON_PORT+xxx}" ] && [ ! -z "${SET_INTERNAL_HTTPS_PROXY_ON_PORT}" ]; then 19 | cat $PROXY_SOURCE_CONF_HTTPS | sed "s/%proxy_port%/$SET_INTERNAL_HTTPS_PROXY_ON_PORT/g" > $PROXY_TARGET_CONF_HTTPS 20 | echo "Nginx: internal HTTPS proxy set on port :$SET_INTERNAL_HTTPS_PROXY_ON_PORT."; echo 21 | fi 22 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/config/init/10-nginx-internal-proxy.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # 4 | # Configure internal transparent proxy on specified port (SET_INTERNAL_PROXY_ON_PORT) 5 | # which redirect all traffic to localhost:80. See README for more info. 6 | # 7 | 8 | PROXY_SOURCE_CONF="/config/init/vhost-proxy.conf" 9 | PROXY_SOURCE_CONF_HTTPS="/config/init/vhost-proxy-https.conf" 10 | PROXY_TARGET_CONF="/etc/nginx/hosts.d/internal-proxy.conf" 11 | PROXY_TARGET_CONF_HTTPS="/etc/nginx/hosts.d/internal-proxy-https.conf" 12 | 13 | if [ ! -z "${SET_INTERNAL_PROXY_ON_PORT+xxx}" ] && [ ! -z "${SET_INTERNAL_PROXY_ON_PORT}" ]; then 14 | cat $PROXY_SOURCE_CONF | sed "s/%proxy_port%/$SET_INTERNAL_PROXY_ON_PORT/g" > $PROXY_TARGET_CONF 15 | echo "Nginx: internal proxy set on port :$SET_INTERNAL_PROXY_ON_PORT."; echo 16 | fi 17 | 18 | if [ ! -z "${SET_INTERNAL_HTTPS_PROXY_ON_PORT+xxx}" ] && [ ! -z "${SET_INTERNAL_HTTPS_PROXY_ON_PORT}" ]; then 19 | cat $PROXY_SOURCE_CONF_HTTPS | sed "s/%proxy_port%/$SET_INTERNAL_HTTPS_PROXY_ON_PORT/g" > $PROXY_TARGET_CONF_HTTPS 20 | echo "Nginx: internal HTTPS proxy set on port :$SET_INTERNAL_HTTPS_PROXY_ON_PORT."; echo 21 | fi 22 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/retag.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # use on master branch and retag also older tags 3 | 4 | # delete all current tags 5 | tags=() 6 | for t in `git tag` 7 | do 8 | if [[ "$t" != 2* ]]; then 9 | continue 10 | fi 11 | echo "Deleting tags $t" 12 | git tag -d $t 13 | git push origin :refs/tags/$t 14 | tags=("${tags[@]}" "$t") 15 | done 16 | git push origin master 17 | git push origin --tags 18 | 19 | # create tags from the list 20 | tags=('2.4.0' '2.4.1' '2.4.2' '2.4.3' '2.4.4' '2.4.5' '2.4.6' '2.4.7' '2.4.8'); 21 | for t in "${tags[@]}" 22 | do 23 | echo "Creating tags $t" 24 | git checkout master 25 | sed -i -e "s#^[[:space:]]*ZABBIX_VERSION=.*# ZABBIX_VERSION=tags/$t \\\#" Dockerfile 26 | sleep 5 27 | git add Dockerfile 28 | sleep 5 29 | git commit -m "Tag $t" 30 | sleep 5 31 | git tag -a $t -m "Tag $t" 32 | sleep 5 33 | last=$t 34 | done 35 | git push origin master 36 | git push origin --tags 37 | 38 | # master is dev image = trunk 39 | git checkout master 40 | sed -i -e "s#^[[:space:]]*ZABBIX_VERSION=.*# ZABBIX_VERSION=trunk \\\#" Dockerfile 41 | sleep 5 42 | git add Dockerfile 43 | sleep 5 44 | git commit -m "Master = dev = trunk" 45 | git push origin master 46 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-db-mariadb/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM centos:centos7 2 | MAINTAINER Jan Garaj info@monitoringartist.com 3 | 4 | ENV \ 5 | DB_max_allowed_packet=64M \ 6 | DB_query_cache_size=0 \ 7 | DB_query_cache_type=0 \ 8 | DB_sync_binlog=0 \ 9 | DB_innodb_buffer_pool_size=768M \ 10 | DB_innodb_log_file_size=128M \ 11 | DB_innodb_flush_method=O_DIRECT \ 12 | DB_innodb_old_blocks_time=1000 \ 13 | DB_innodb_flush_log_at_trx_commit=0 \ 14 | DB_open_files_limit=4096 \ 15 | DB_max_connections=300 16 | 17 | COPY container-files/ /tmp/ 18 | 19 | RUN \ 20 | cp /tmp/etc/yum.repos.d/* /etc/yum.repos.d/ && \ 21 | yum install -y epel-release && \ 22 | yum install -y MariaDB-server hostname net-tools pwgen git bind-utils bzip2 && \ 23 | git clone https://github.com/maxhq/zabbix-backup && \ 24 | mv /zabbix-backup/zabbix-mysql-dump /zabbix-backup/zabbix-mariadb-dump && \ 25 | yum autoremove -y git && \ 26 | yum clean all && \ 27 | cp -f -r /tmp/etc/* /etc/ && \ 28 | cp -f /tmp/*.sh / && \ 29 | rm -rf /tmp/* && \ 30 | rm -rf /var/lib/mysql/* 31 | 32 | # Add VOLUME to allow backup of data 33 | VOLUME ["/var/lib/mysql"] 34 | 35 | # Set TERM env to avoid mysql client error message "TERM environment variable not set" when running from inside the container 36 | ENV TERM xterm 37 | 38 | EXPOSE 3306 39 | CMD ["/run.sh"] -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/retag.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # use on master branch and retag also older tags 3 | 4 | # delete all current tags 5 | git fetch --tags --force 6 | tags=() 7 | for t in `git tag` 8 | do 9 | if [[ "$t" != 3.4* ]]; then 10 | continue 11 | fi 12 | echo "Deleting tag $t" 13 | git tag -d $t 14 | git push origin :refs/tags/$t 15 | tags=("${tags[@]}" "$t") 16 | done 17 | git push origin master 18 | git push origin --tags 19 | 20 | # create tags from the list 21 | tags=('3.4.0' '3.4.1' '3.4.2' '3.4.3' '3.4.4' '3.4.5' '3.4.6' '3.4.7' '3.4.8' '3.4.9' '3.4.10' '3.4.11' '3.4.12' '3.4.13' '3.4.14'); 22 | for t in "${tags[@]}" 23 | do 24 | echo "Creating tag $t" 25 | git checkout master 26 | sed -i -e "s#^[[:space:]]*ZABBIX_VERSION=.*# ZABBIX_VERSION=tags/$t \\\#" Dockerfile 27 | sleep 5 28 | git add Dockerfile 29 | sleep 5 30 | git commit -m "Tag $t" 31 | sleep 5 32 | git tag -a $t -m "Tag $t" 33 | sleep 5 34 | last=$t 35 | done 36 | git push origin master 37 | git push origin --tags 38 | 39 | # master is the latest stable tag 40 | git checkout master 41 | sed -i -e "s#^[[:space:]]*ZABBIX_VERSION=.*# ZABBIX_VERSION=tags/3.4.14 \\\#" Dockerfile 42 | sleep 5 43 | git add Dockerfile 44 | sleep 5 45 | git commit -m "Master = the latest stable tag" 46 | git push origin master 47 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/retag.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # use on master branch and retag also older tags 3 | 4 | # delete all current tags 5 | git fetch --tags --force 6 | tags=() 7 | for t in `git tag` 8 | do 9 | if [[ "$t" != 3* ]]; then 10 | continue 11 | fi 12 | echo "Deleting tag $t" 13 | git tag -d $t 14 | git push origin :refs/tags/$t 15 | tags=("${tags[@]}" "$t") 16 | done 17 | git push origin master 18 | git push origin --tags 19 | 20 | # create tags from the list 21 | tags=('3.0.0' '3.0.1' '3.0.2' '3.0.3' '3.0.4' '3.0.5' '3.0.6' '3.0.7' '3.0.8' '3.0.9' '3.0.10' '3.2.0' '3.2.1' '3.2.2' '3.2.3' '3.2.4' '3.2.5' '3.2.6' '3.2.7'); 22 | for t in "${tags[@]}" 23 | do 24 | echo "Creating tag $t" 25 | git checkout master 26 | sed -i -e "s#^[[:space:]]*ZABBIX_VERSION=.*# ZABBIX_VERSION=tags/$t \\\#" Dockerfile 27 | sleep 5 28 | git add Dockerfile 29 | sleep 5 30 | git commit -m "Tag $t" 31 | sleep 5 32 | git tag -a $t -m "Tag $t" 33 | sleep 5 34 | last=$t 35 | done 36 | git push origin master 37 | git push origin --tags 38 | 39 | # master is the latest stable tag 40 | git checkout master 41 | sed -i -e "s#^[[:space:]]*ZABBIX_VERSION=.*# ZABBIX_VERSION=tags/3.2.6 \\\#" Dockerfile 42 | sleep 5 43 | git add Dockerfile 44 | sleep 5 45 | git commit -m "Master = the latest stable tag" 46 | git push origin master 47 | 48 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/retag.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # use on master branch and retag also older tags 3 | 4 | # delete all current tags 5 | git fetch --tags --force 6 | tags=() 7 | for t in `git tag` 8 | do 9 | if [[ "$t" != 4.0* ]]; then 10 | continue 11 | fi 12 | echo "Deleting tag $t" 13 | git tag -d $t 14 | git push origin :refs/tags/$t 15 | tags=("${tags[@]}" "$t") 16 | done 17 | git push origin master 18 | git push origin --tags 19 | 20 | # create tags from the list 21 | tags=('4.0.0' '4.0.1' '4.0.2' '4.0.3' '4.0.4' '4.0.5' '4.0.6' '4.0.7' '4.0.8' '4.0.9' '4.0.10' '4.0.11' '4.0.12' '4.0.13' '4.0.14' '4.0.15' '4.0.16' '4.0.17' '4.0.18' '4.0.18' '4.0.19'); 22 | for t in "${tags[@]}" 23 | do 24 | echo "Creating tag $t" 25 | git checkout master 26 | sed -i -e "s#^[[:space:]]*ZABBIX_VERSION=.*# ZABBIX_VERSION=$t \\\#" Dockerfile 27 | sleep 5 28 | git add Dockerfile 29 | sleep 5 30 | git commit -m "Tag $t" 31 | sleep 5 32 | git tag -a $t -m "Tag $t" 33 | sleep 5 34 | last=$t 35 | done 36 | git push origin master 37 | git push origin --tags 38 | 39 | # master is the latest stable tag 40 | git checkout master 41 | sed -i -e "s#^[[:space:]]*ZABBIX_VERSION=.*# ZABBIX_VERSION=4.0.19 \\\#" Dockerfile 42 | sleep 5 43 | git add Dockerfile 44 | sleep 5 45 | git commit -m "Master = the latest stable tag" 46 | git push origin master 47 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/config/bootstrap.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | set -u 5 | 6 | # Supervisord default params 7 | SUPERVISOR_PARAMS='-c /etc/supervisord.conf' 8 | 9 | 10 | # Create directories for supervisor's UNIX socket and logs (which might be missing 11 | # as container might start with /data mounted from another data-container). 12 | mkdir -p /data/conf /data/run /data/logs 13 | chmod 711 /data/conf /data/run /data/logs 14 | 15 | if [ "$(ls /config/init/)" ]; then 16 | for init in /config/init/*.sh; do 17 | . $init 18 | done 19 | fi 20 | 21 | 22 | # We have TTY, so probably an interactive container... 23 | if test -t 0; then 24 | # Run supervisord detached... 25 | supervisord $SUPERVISOR_PARAMS 26 | 27 | # Some command(s) has been passed to container? Execute them and exit. 28 | # No commands provided? Run bash. 29 | if [[ $@ ]]; then 30 | eval $@ 31 | else 32 | export PS1='[\u@\h : \w]\$ ' 33 | /bin/bash 34 | fi 35 | 36 | # Detached mode? Run supervisord in foreground, which will stay until container is stopped. 37 | else 38 | # If some extra params were passed, execute them before. 39 | # @TODO It is a bit confusing that the passed command runs *before* supervisord, 40 | # while in interactive mode they run *after* supervisor. 41 | # Not sure about that, but maybe when any command is passed to container, 42 | # it should be executed *always* after supervisord? And when the command ends, 43 | # container exits as well. 44 | if [[ $@ ]]; then 45 | eval $@ 46 | fi 47 | supervisord -n $SUPERVISOR_PARAMS 48 | fi 49 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/config/bootstrap.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | set -u 5 | 6 | # Supervisord default params 7 | SUPERVISOR_PARAMS='-c /etc/supervisord.conf' 8 | 9 | 10 | # Create directories for supervisor's UNIX socket and logs (which might be missing 11 | # as container might start with /data mounted from another data-container). 12 | mkdir -p /data/conf /data/run /data/logs 13 | chmod 711 /data/conf /data/run /data/logs 14 | 15 | if [ "$(ls /config/init/)" ]; then 16 | for init in /config/init/*.sh; do 17 | . $init 18 | done 19 | fi 20 | 21 | 22 | # We have TTY, so probably an interactive container... 23 | if test -t 0; then 24 | # Run supervisord detached... 25 | supervisord $SUPERVISOR_PARAMS 26 | 27 | # Some command(s) has been passed to container? Execute them and exit. 28 | # No commands provided? Run bash. 29 | if [[ $@ ]]; then 30 | eval $@ 31 | else 32 | export PS1='[\u@\h : \w]\$ ' 33 | /bin/bash 34 | fi 35 | 36 | # Detached mode? Run supervisord in foreground, which will stay until container is stopped. 37 | else 38 | # If some extra params were passed, execute them before. 39 | # @TODO It is a bit confusing that the passed command runs *before* supervisord, 40 | # while in interactive mode they run *after* supervisor. 41 | # Not sure about that, but maybe when any command is passed to container, 42 | # it should be executed *always* after supervisord? And when the command ends, 43 | # container exits as well. 44 | if [[ $@ ]]; then 45 | eval $@ 46 | fi 47 | supervisord -n $SUPERVISOR_PARAMS 48 | fi 49 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/config/bootstrap.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | set -u 5 | 6 | # Supervisord default params 7 | SUPERVISOR_PARAMS='-c /etc/supervisord.conf' 8 | 9 | 10 | # Create directories for supervisor's UNIX socket and logs (which might be missing 11 | # as container might start with /data mounted from another data-container). 12 | mkdir -p /data/conf /data/run /data/logs 13 | chmod 711 /data/conf /data/run /data/logs 14 | 15 | if [ "$(ls /config/init/)" ]; then 16 | for init in /config/init/*.sh; do 17 | . $init 18 | done 19 | fi 20 | 21 | 22 | # We have TTY, so probably an interactive container... 23 | if test -t 0; then 24 | # Run supervisord detached... 25 | exec supervisord $SUPERVISOR_PARAMS 26 | 27 | # Some command(s) has been passed to container? Execute them and exit. 28 | # No commands provided? Run bash. 29 | if [[ $@ ]]; then 30 | eval $@ 31 | else 32 | export PS1='[\u@\h : \w]\$ ' 33 | /bin/bash 34 | fi 35 | 36 | # Detached mode? Run supervisord in foreground, which will stay until container is stopped. 37 | else 38 | # If some extra params were passed, execute them before. 39 | # @TODO It is a bit confusing that the passed command runs *before* supervisord, 40 | # while in interactive mode they run *after* supervisor. 41 | # Not sure about that, but maybe when any command is passed to container, 42 | # it should be executed *always* after supervisord? And when the command ends, 43 | # container exits as well. 44 | if [[ $@ ]]; then 45 | eval $@ 46 | fi 47 | exec supervisord -n $SUPERVISOR_PARAMS 48 | fi 49 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/config/bootstrap.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | set -u 5 | 6 | # Supervisord default params 7 | SUPERVISOR_PARAMS='-c /etc/supervisord.conf' 8 | 9 | 10 | # Create directories for supervisor's UNIX socket and logs (which might be missing 11 | # as container might start with /data mounted from another data-container). 12 | mkdir -p /data/conf /data/run /data/logs 13 | chmod 711 /data/conf /data/run /data/logs 14 | 15 | if [ "$(ls /config/init/)" ]; then 16 | for init in /config/init/*.sh; do 17 | . $init 18 | done 19 | fi 20 | 21 | 22 | # We have TTY, so probably an interactive container... 23 | if test -t 0; then 24 | # Run supervisord detached... 25 | exec supervisord $SUPERVISOR_PARAMS 26 | 27 | # Some command(s) has been passed to container? Execute them and exit. 28 | # No commands provided? Run bash. 29 | if [[ $@ ]]; then 30 | eval $@ 31 | else 32 | export PS1='[\u@\h : \w]\$ ' 33 | /bin/bash 34 | fi 35 | 36 | # Detached mode? Run supervisord in foreground, which will stay until container is stopped. 37 | else 38 | # If some extra params were passed, execute them before. 39 | # @TODO It is a bit confusing that the passed command runs *before* supervisord, 40 | # while in interactive mode they run *after* supervisor. 41 | # Not sure about that, but maybe when any command is passed to container, 42 | # it should be executed *always* after supervisord? And when the command ends, 43 | # container exits as well. 44 | if [[ $@ ]]; then 45 | eval $@ 46 | fi 47 | exec supervisord -n $SUPERVISOR_PARAMS 48 | fi 49 | -------------------------------------------------------------------------------- /circle.yml: -------------------------------------------------------------------------------- 1 | machine: 2 | services: 3 | - docker 4 | environment: 5 | DB_USER: db-user 6 | DB_PASS: db-password 7 | 8 | dependencies: 9 | pre: 10 | - docker pull million12/mariadb 11 | post: 12 | # Launch DB backend 13 | - docker run -d --name=db --env="MARIADB_USER=$DB_USER" --env="MARIADB_PASS=$DB_PASS" million12/mariadb 14 | - docker logs -f db | tee -a ${CIRCLE_ARTIFACTS}/db.log: 15 | background: true 16 | - docker build -t million12/zabbix-server-base:test Dockerfile/zabbix-server-2.4/. 17 | 18 | test: 19 | override: 20 | - while true; do if grep "You can now connect to this MariaDB Server" -a ${CIRCLE_ARTIFACTS}/db.log; then break; else sleep 1; fi done 21 | - docker run -d --name zabbix --link db:zabbix.db -p 80:80 -p 10051:10051 --env="ZS_DBHost=zabbix.db" --env="ZS_DBUser=$DB_USER" --env="ZS_DBPassword=$DB_PASS" million12/zabbix-server-base:test 22 | - docker logs -f zabbix | tee -a ${CIRCLE_ARTIFACTS}/zabbix.log: 23 | background: true 24 | - while true; do if grep "nginx entered RUNNING state" -a ${CIRCLE_ARTIFACTS}/zabbix.log; then break; else sleep 1; fi done 25 | # Check Zabbix Web interface status 26 | - curl -s -L --head http://127.0.0.1/ | grep "HTTP/1.1 200 OK" 27 | # Check if after restartting docker image server works. 28 | - docker restart zabbix 29 | - docker logs -f zabbix | tee -a ${CIRCLE_ARTIFACTS}/zabbix-after-restart.log: 30 | background: true 31 | - while true; do if grep "nginx entered RUNNING state" -a ${CIRCLE_ARTIFACTS}/zabbix-after-restart.log; then break; else sleep 1; fi done 32 | - curl -s -L --head http://127.0.0.1/ | grep "HTTP/1.1 200 OK" 33 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-zabbix/etc/nginx/hosts.d/ssl-nginx.conf: -------------------------------------------------------------------------------- 1 | server { 2 | listen 443 ssl http2; 3 | listen [::]:443 ssl http2; 4 | 5 | # certs sent to the client in SERVER HELLO are concatenated in ssl_certificate 6 | ssl_certificate /etc/nginx/ssl/dummy.crt; 7 | ssl_certificate_key /etc/nginx/ssl/dummy.key; 8 | ssl_session_timeout 1d; 9 | ssl_session_cache shared:SSL:50m; 10 | ssl_session_tickets off; 11 | 12 | 13 | # modern configuration. tweak to your needs. 14 | ssl_protocols TLSv1.2; 15 | ssl_ciphers 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256'; 16 | ssl_prefer_server_ciphers on; 17 | 18 | # HSTS caching header 19 | #add_header Strict-Transport-Security "max-age=31536000;"; 20 | 21 | # OCSP Stapling --- 22 | # fetch OCSP records from URL in ssl_certificate and cache them 23 | ssl_stapling on; 24 | ssl_stapling_verify on; 25 | 26 | ## verify chain of trust of OCSP response using Root CA and Intermediate certs 27 | #ssl_trusted_certificate /path/to/root_CA_cert_plus_intermediates; 28 | 29 | #resolver ; 30 | 31 | # Zabbix/PHP config 32 | root /usr/local/src/zabbix/frontends/php; 33 | index index.php index.html; 34 | 35 | include /etc/nginx/conf.d/default-*.conf; 36 | include /data/conf/nginx/conf.d/default-*.conf; 37 | 38 | # PHP backend is not in the default-*.conf file set, 39 | # as some vhost might not want to include it. 40 | include /etc/nginx/conf.d/php-location.conf; 41 | } 42 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-zabbix/etc/nginx/hosts.d/ssl-nginx.conf: -------------------------------------------------------------------------------- 1 | server { 2 | listen 443 ssl http2; 3 | listen [::]:443 ssl http2; 4 | 5 | # certs sent to the client in SERVER HELLO are concatenated in ssl_certificate 6 | ssl_certificate /etc/nginx/ssl/dummy.crt; 7 | ssl_certificate_key /etc/nginx/ssl/dummy.key; 8 | ssl_session_timeout 1d; 9 | ssl_session_cache shared:SSL:50m; 10 | ssl_session_tickets off; 11 | 12 | 13 | # modern configuration. tweak to your needs. 14 | ssl_protocols TLSv1.2; 15 | ssl_ciphers 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES128-SHA256'; 16 | ssl_prefer_server_ciphers on; 17 | 18 | # HSTS caching header 19 | #add_header Strict-Transport-Security "max-age=31536000;"; 20 | 21 | # OCSP Stapling --- 22 | # fetch OCSP records from URL in ssl_certificate and cache them 23 | ssl_stapling on; 24 | ssl_stapling_verify on; 25 | 26 | ## verify chain of trust of OCSP response using Root CA and Intermediate certs 27 | #ssl_trusted_certificate /path/to/root_CA_cert_plus_intermediates; 28 | 29 | #resolver ; 30 | 31 | # Zabbix/PHP config 32 | root /usr/local/src/zabbix/frontends/php; 33 | index index.php index.html; 34 | 35 | include /etc/nginx/conf.d/default-*.conf; 36 | include /data/conf/nginx/conf.d/default-*.conf; 37 | 38 | # PHP backend is not in the default-*.conf file set, 39 | # as some vhost might not want to include it. 40 | include /etc/nginx/conf.d/php-location.conf; 41 | } 42 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix-xxl/usr/local/src/zabbix/frontends/php/grapher.php: -------------------------------------------------------------------------------- 1 | 20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 |

Grapher

28 |
    29 |
  • Host
  • 30 |
  • Graph 31 | 32 | Select All 33 |
  • 34 |
  • Item 35 | 36 | +Normal | 37 | +Stacked 38 |
  • 39 |
40 |
41 | 42 |
43 |
44 |
45 | 46 |
47 |
48 | 49 | 20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 |

Grapher

28 |
    29 |
  • Host
  • 30 |
  • Graph 31 | 32 | Select All 33 |
  • 34 |
  • Item 35 | 36 | +Normal | 37 | +Stacked 38 |
  • 39 |
40 |
41 | 42 |
43 |
44 |
45 | 46 |
47 |
48 | 49 | 20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 |

Grapher

28 |
    29 |
  • Host
  • 30 |
  • Graph 31 | 32 | Select All 33 |
  • 34 |
  • Item 35 | 36 | +Normal | 37 | +Stacked 38 |
  • 39 |
40 |
41 | 42 |
43 |
44 |
45 | 46 |
47 |
48 | 49 | -1) { 20 | $jq(this).show() 21 | } 22 | }) 23 | } else { 24 | $jq('.result').show() 25 | } 26 | } 27 | setRelatedDOMVisibility(keyword) 28 | } 29 | 30 | function setRelatedDOMVisibility (keyword) { 31 | var foundSomething = Boolean($jq('.result:visible').length) 32 | $jq('.no-results').toggle( !foundSomething ) 33 | 34 | if (keyword.length >= 3) { 35 | if (!foundSomething) { 36 | ga('send', 'event', 'search', 'no results for ' + keyword) 37 | } else { 38 | ga('send', 'event', 'search', keyword) 39 | } 40 | } 41 | } 42 | 43 | $jq(document).on('search keyup', '.speedy-filter', function () { 44 | location.hash = $jq(this).val().replace(' ', '_') 45 | }) 46 | 47 | $jq(document).on('click', '.speedy-remover', function () { 48 | $jq('.speedy-filter').val('') 49 | $jq('.result').show() 50 | location.hash = '' 51 | }) 52 | 53 | window.onhashchange = function () { 54 | search($jq('.speedy-filter').val(location.hash.substr(1)).val().replace('_',' ')) 55 | $jq('[href^="#"]').removeClass('active') 56 | $jq("[href='#{location.hash}']").addClass('active') 57 | } 58 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/searcher/javascripts/search.js: -------------------------------------------------------------------------------- 1 | $jq(document).on('search:ready', function () { 2 | if (location.hash.length) { 3 | search($jq('.speedy-filter').val(location.hash.substr(1)).val().replace('_',' ')) 4 | } else { 5 | search() 6 | } 7 | }) 8 | 9 | function search (keyword) { 10 | var keyword = typeof keyword === 'undefined' ? '' : keyword 11 | $jq('.keyword').text(keyword) 12 | keyword = keyword.trim() 13 | 14 | if (window.speedy_keyword !== keyword) { 15 | window.speedy_keyword = keyword 16 | if (keyword.length) { 17 | $jq('.result').hide() 18 | $jq('.result').each(function () { 19 | if($jq(this).text().toLowerCase().indexOf(keyword.toLowerCase()) > -1) { 20 | $jq(this).show() 21 | } 22 | }) 23 | } else { 24 | $jq('.result').show() 25 | } 26 | } 27 | setRelatedDOMVisibility(keyword) 28 | } 29 | 30 | function setRelatedDOMVisibility (keyword) { 31 | var foundSomething = Boolean($jq('.result:visible').length) 32 | $jq('.no-results').toggle( !foundSomething ) 33 | 34 | if (keyword.length >= 3) { 35 | if (!foundSomething) { 36 | ga('send', 'event', 'search', 'no results for ' + keyword) 37 | } else { 38 | ga('send', 'event', 'search', keyword) 39 | } 40 | } 41 | } 42 | 43 | $jq(document).on('search keyup', '.speedy-filter', function () { 44 | location.hash = $jq(this).val().replace(' ', '_') 45 | }) 46 | 47 | $jq(document).on('click', '.speedy-remover', function () { 48 | $jq('.speedy-filter').val('') 49 | $jq('.result').show() 50 | location.hash = '' 51 | }) 52 | 53 | window.onhashchange = function () { 54 | search($jq('.speedy-filter').val(location.hash.substr(1)).val().replace('_',' ')) 55 | $jq('[href^="#"]').removeClass('active') 56 | $jq("[href='#{location.hash}']").addClass('active') 57 | } 58 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/searcher/javascripts/search.js: -------------------------------------------------------------------------------- 1 | $jq(document).on('search:ready', function () { 2 | if (location.hash.length) { 3 | search($jq('.speedy-filter').val(location.hash.substr(1)).val().replace('_',' ')) 4 | } else { 5 | search() 6 | } 7 | }) 8 | 9 | function search (keyword) { 10 | var keyword = typeof keyword === 'undefined' ? '' : keyword 11 | $jq('.keyword').text(keyword) 12 | keyword = keyword.trim() 13 | 14 | if (window.speedy_keyword !== keyword) { 15 | window.speedy_keyword = keyword 16 | if (keyword.length) { 17 | $jq('.result').hide() 18 | $jq('.result').each(function () { 19 | if($jq(this).text().toLowerCase().indexOf(keyword.toLowerCase()) > -1) { 20 | $jq(this).show() 21 | } 22 | }) 23 | } else { 24 | $jq('.result').show() 25 | } 26 | } 27 | setRelatedDOMVisibility(keyword) 28 | } 29 | 30 | function setRelatedDOMVisibility (keyword) { 31 | var foundSomething = Boolean($jq('.result:visible').length) 32 | $jq('.no-results').toggle( !foundSomething ) 33 | 34 | if (keyword.length >= 3) { 35 | if (!foundSomething) { 36 | ga('send', 'event', 'search', 'no results for ' + keyword) 37 | } else { 38 | ga('send', 'event', 'search', keyword) 39 | } 40 | } 41 | } 42 | 43 | $jq(document).on('search keyup', '.speedy-filter', function () { 44 | location.hash = $jq(this).val().replace(' ', '_') 45 | }) 46 | 47 | $jq(document).on('click', '.speedy-remover', function () { 48 | $jq('.speedy-filter').val('') 49 | $jq('.result').show() 50 | location.hash = '' 51 | }) 52 | 53 | window.onhashchange = function () { 54 | search($jq('.speedy-filter').val(location.hash.substr(1)).val().replace('_',' ')) 55 | $jq('[href^="#"]').removeClass('active') 56 | $jq("[href='#{location.hash}']").addClass('active') 57 | } 58 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix-xxl/usr/local/src/zabbix/frontends/php/zapix/css/style.css: -------------------------------------------------------------------------------- 1 | .pseudoLink{ 2 | color: #00008b; 3 | border-bottom: 1px dotted #00008b; 4 | cursor: pointer; 5 | } 6 | 7 | .pseudoLink:hover{ 8 | color: #4b0082; 9 | border-bottom: 1px dotted #4b0082; 10 | } 11 | 12 | #apiparams { 13 | width: 100%; 14 | height: 200px; 15 | } 16 | 17 | #saveRequestParams { 18 | width: 350px; 19 | height: 200px; 20 | } 21 | 22 | .tt-menu { 23 | background-color: #fff; 24 | border-bottom: 1px solid #ccc; 25 | border-left: 1px solid #ccc; 26 | border-right: 1px solid #ccc; 27 | border-radius: 4px; 28 | margin-top: 3px; 29 | min-width: 180px; 30 | } 31 | 32 | .tt-selectable { 33 | cursor: pointer; 34 | padding: 2px 8px 2px 8px; 35 | } 36 | 37 | .tt-selectable:hover { 38 | background-color: #0088CC; 39 | color: #fff; 40 | } 41 | .btn-mini { 42 | margin-top: 8px; 43 | padding: 5px 8px; 44 | } 45 | #testResult { 46 | margin-top: 0.5em; 47 | } 48 | #rsp { 49 | margin-top: 12px; 50 | margin-bottom: 14px; 51 | } 52 | #load { 53 | position: absolute; 54 | left: 10px; 55 | top: 170px; 56 | width: 98%; 57 | height: 95%; 58 | display:none; 59 | background-color: #fff; 60 | } 61 | .spinner { 62 | display: inline-block; 63 | opacity: 0; 64 | width: 0; 65 | 66 | -webkit-transition: opacity 0s, width 0s; 67 | -moz-transition: opacity 0s, width 0s; 68 | -o-transition: opacity 0s, width 0s; 69 | transition: opacity 0s, width 0s; 70 | } 71 | .has-spinner.active { 72 | cursor:progress; 73 | } 74 | 75 | .has-spinner.active .spinner { 76 | opacity: 1; 77 | width: auto; /* This doesn't work, just fix for unkown width elements */ 78 | } 79 | 80 | .has-spinner.active .play { 81 | opacity: 0; 82 | width: 0; 83 | display: none; 84 | } 85 | .has-spinner .play { 86 | display: inline-block; 87 | width: 10px; 88 | } 89 | 90 | .has-spinner.btn.active .spinner { 91 | width: 14px; 92 | } 93 | #apimethod { 94 | background-color: white; 95 | } -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/zapix/css/style.css: -------------------------------------------------------------------------------- 1 | .pseudoLink{ 2 | color: #00008b; 3 | border-bottom: 1px dotted #00008b; 4 | cursor: pointer; 5 | } 6 | 7 | .pseudoLink:hover{ 8 | color: #4b0082; 9 | border-bottom: 1px dotted #4b0082; 10 | } 11 | 12 | #apiparams { 13 | width: 100%; 14 | height: 200px; 15 | } 16 | 17 | #saveRequestParams { 18 | width: 350px; 19 | height: 200px; 20 | } 21 | 22 | .tt-menu { 23 | background-color: #fff; 24 | border-bottom: 1px solid #ccc; 25 | border-left: 1px solid #ccc; 26 | border-right: 1px solid #ccc; 27 | border-radius: 4px; 28 | margin-top: 3px; 29 | min-width: 180px; 30 | } 31 | 32 | .tt-selectable { 33 | cursor: pointer; 34 | padding: 2px 8px 2px 8px; 35 | } 36 | 37 | .tt-selectable:hover { 38 | background-color: #0088CC; 39 | color: #fff; 40 | } 41 | .btn-mini { 42 | margin-top: 8px; 43 | padding: 5px 8px; 44 | } 45 | #testResult { 46 | margin-top: 0.5em; 47 | } 48 | #rsp { 49 | margin-top: 12px; 50 | margin-bottom: 14px; 51 | } 52 | #load { 53 | position: absolute; 54 | left: 10px; 55 | top: 170px; 56 | width: 98%; 57 | height: 95%; 58 | display:none; 59 | background-color: #fff; 60 | z-index: 1000; 61 | } 62 | .spinner { 63 | display: inline-block; 64 | opacity: 0; 65 | width: 0; 66 | 67 | -webkit-transition: opacity 0s, width 0s; 68 | -moz-transition: opacity 0s, width 0s; 69 | -o-transition: opacity 0s, width 0s; 70 | transition: opacity 0s, width 0s; 71 | } 72 | .has-spinner.active { 73 | cursor:progress; 74 | } 75 | 76 | .has-spinner.active .spinner { 77 | opacity: 1; 78 | width: auto; /* This doesn't work, just fix for unkown width elements */ 79 | } 80 | 81 | .has-spinner.active .play { 82 | opacity: 0; 83 | width: 0; 84 | display: none; 85 | } 86 | .has-spinner .play { 87 | display: inline-block; 88 | width: 10px; 89 | } 90 | 91 | .has-spinner.btn.active .spinner { 92 | width: 14px; 93 | } 94 | #apimethod { 95 | background-color: white; 96 | } 97 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/zapix/css/style.css: -------------------------------------------------------------------------------- 1 | .pseudoLink{ 2 | color: #00008b; 3 | border-bottom: 1px dotted #00008b; 4 | cursor: pointer; 5 | } 6 | 7 | .pseudoLink:hover{ 8 | color: #4b0082; 9 | border-bottom: 1px dotted #4b0082; 10 | } 11 | 12 | #apiparams { 13 | width: 100%; 14 | height: 200px; 15 | } 16 | 17 | #saveRequestParams { 18 | width: 350px; 19 | height: 200px; 20 | } 21 | 22 | .tt-menu { 23 | background-color: #fff; 24 | border-bottom: 1px solid #ccc; 25 | border-left: 1px solid #ccc; 26 | border-right: 1px solid #ccc; 27 | border-radius: 4px; 28 | margin-top: 3px; 29 | min-width: 180px; 30 | } 31 | 32 | .tt-selectable { 33 | cursor: pointer; 34 | padding: 2px 8px 2px 8px; 35 | } 36 | 37 | .tt-selectable:hover { 38 | background-color: #0088CC; 39 | color: #fff; 40 | } 41 | .btn-mini { 42 | margin-top: 8px; 43 | padding: 5px 8px; 44 | } 45 | #testResult { 46 | margin-top: 0.5em; 47 | } 48 | #rsp { 49 | margin-top: 12px; 50 | margin-bottom: 14px; 51 | } 52 | #load { 53 | position: absolute; 54 | left: 10px; 55 | top: 170px; 56 | width: 98%; 57 | height: 95%; 58 | display:none; 59 | background-color: #fff; 60 | z-index: 1000; 61 | } 62 | .spinner { 63 | display: inline-block; 64 | opacity: 0; 65 | width: 0; 66 | 67 | -webkit-transition: opacity 0s, width 0s; 68 | -moz-transition: opacity 0s, width 0s; 69 | -o-transition: opacity 0s, width 0s; 70 | transition: opacity 0s, width 0s; 71 | } 72 | .has-spinner.active { 73 | cursor:progress; 74 | } 75 | 76 | .has-spinner.active .spinner { 77 | opacity: 1; 78 | width: auto; /* This doesn't work, just fix for unkown width elements */ 79 | } 80 | 81 | .has-spinner.active .play { 82 | opacity: 0; 83 | width: 0; 84 | display: none; 85 | } 86 | .has-spinner .play { 87 | display: inline-block; 88 | width: 10px; 89 | } 90 | 91 | .has-spinner.btn.active .spinner { 92 | width: 14px; 93 | } 94 | #apimethod { 95 | background-color: white; 96 | } 97 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-base/etc/nginx/fastcgi_params: -------------------------------------------------------------------------------- 1 | fastcgi_param QUERY_STRING $query_string; 2 | fastcgi_param REQUEST_METHOD $request_method; 3 | fastcgi_param CONTENT_TYPE $content_type; 4 | fastcgi_param CONTENT_LENGTH $content_length; 5 | 6 | fastcgi_param PATH_INFO $fastcgi_script_name; 7 | fastcgi_param SCRIPT_NAME $fastcgi_script_name; 8 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 9 | fastcgi_param REQUEST_URI $request_uri; 10 | fastcgi_param DOCUMENT_URI $document_uri; 11 | fastcgi_param DOCUMENT_ROOT $document_root; 12 | fastcgi_param SERVER_PROTOCOL $server_protocol; 13 | fastcgi_param HTTPS $https if_not_empty; 14 | 15 | fastcgi_param GATEWAY_INTERFACE CGI/1.1; 16 | fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; 17 | 18 | fastcgi_param REMOTE_ADDR $remote_addr; 19 | fastcgi_param REMOTE_PORT $remote_port; 20 | fastcgi_param SERVER_ADDR $server_addr; 21 | 22 | # SERVER_PORT needs to be commented out and has to be determined from other fields (e.g. HTTP_HOST) 23 | # Otherwise it points invalid port when container port is mapped to different port on host machine, 24 | # which might result with invalid links generated in a PHP app. 25 | #fastcgi_param SERVER_PORT $server_port; 26 | 27 | # Using $http_host instead of $server_name - $server_name doesn't work correctly when using regexps in vhosts' server_name declaration. 28 | #fastcgi_param SERVER_NAME $server_name; 29 | fastcgi_param SERVER_NAME $http_host; 30 | 31 | # PHP only, required if PHP was built with --enable-force-cgi-redirect 32 | fastcgi_param REDIRECT_STATUS 200; 33 | 34 | fastcgi_index index.php; 35 | fastcgi_connect_timeout 10; 36 | fastcgi_send_timeout 600; 37 | fastcgi_read_timeout 600; 38 | fastcgi_buffer_size 32k; 39 | fastcgi_buffers 32 4k; 40 | fastcgi_busy_buffers_size 64k; 41 | fastcgi_temp_file_write_size 256k; 42 | fastcgi_intercept_errors on; 43 | fastcgi_pass_header on; 44 | fastcgi_keep_conn on; 45 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-base/etc/nginx/fastcgi_params: -------------------------------------------------------------------------------- 1 | fastcgi_param QUERY_STRING $query_string; 2 | fastcgi_param REQUEST_METHOD $request_method; 3 | fastcgi_param CONTENT_TYPE $content_type; 4 | fastcgi_param CONTENT_LENGTH $content_length; 5 | 6 | fastcgi_param PATH_INFO $fastcgi_script_name; 7 | fastcgi_param SCRIPT_NAME $fastcgi_script_name; 8 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 9 | fastcgi_param REQUEST_URI $request_uri; 10 | fastcgi_param DOCUMENT_URI $document_uri; 11 | fastcgi_param DOCUMENT_ROOT $document_root; 12 | fastcgi_param SERVER_PROTOCOL $server_protocol; 13 | fastcgi_param HTTPS $https if_not_empty; 14 | 15 | fastcgi_param GATEWAY_INTERFACE CGI/1.1; 16 | fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; 17 | 18 | fastcgi_param REMOTE_ADDR $remote_addr; 19 | fastcgi_param REMOTE_PORT $remote_port; 20 | fastcgi_param SERVER_ADDR $server_addr; 21 | 22 | # SERVER_PORT needs to be commented out and has to be determined from other fields (e.g. HTTP_HOST) 23 | # Otherwise it points invalid port when container port is mapped to different port on host machine, 24 | # which might result with invalid links generated in a PHP app. 25 | #fastcgi_param SERVER_PORT $server_port; 26 | 27 | # Using $http_host instead of $server_name - $server_name doesn't work correctly when using regexps in vhosts' server_name declaration. 28 | #fastcgi_param SERVER_NAME $server_name; 29 | fastcgi_param SERVER_NAME $http_host; 30 | 31 | # PHP only, required if PHP was built with --enable-force-cgi-redirect 32 | fastcgi_param REDIRECT_STATUS 200; 33 | 34 | fastcgi_index index.php; 35 | fastcgi_connect_timeout 10; 36 | fastcgi_send_timeout 600; 37 | fastcgi_read_timeout 600; 38 | fastcgi_buffer_size 32k; 39 | fastcgi_buffers 32 4k; 40 | fastcgi_busy_buffers_size 64k; 41 | fastcgi_temp_file_write_size 256k; 42 | fastcgi_intercept_errors on; 43 | fastcgi_pass_header on; 44 | fastcgi_keep_conn on; 45 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-base/etc/nginx/fastcgi_params: -------------------------------------------------------------------------------- 1 | fastcgi_param QUERY_STRING $query_string; 2 | fastcgi_param REQUEST_METHOD $request_method; 3 | fastcgi_param CONTENT_TYPE $content_type; 4 | fastcgi_param CONTENT_LENGTH $content_length; 5 | 6 | fastcgi_param PATH_INFO $fastcgi_script_name; 7 | fastcgi_param SCRIPT_NAME $fastcgi_script_name; 8 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 9 | fastcgi_param REQUEST_URI $request_uri; 10 | fastcgi_param DOCUMENT_URI $document_uri; 11 | fastcgi_param DOCUMENT_ROOT $document_root; 12 | fastcgi_param SERVER_PROTOCOL $server_protocol; 13 | fastcgi_param HTTPS $https if_not_empty; 14 | 15 | fastcgi_param GATEWAY_INTERFACE CGI/1.1; 16 | fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; 17 | 18 | fastcgi_param REMOTE_ADDR $remote_addr; 19 | fastcgi_param REMOTE_PORT $remote_port; 20 | fastcgi_param SERVER_ADDR $server_addr; 21 | 22 | # SERVER_PORT needs to be commented out and has to be determined from other fields (e.g. HTTP_HOST) 23 | # Otherwise it points invalid port when container port is mapped to different port on host machine, 24 | # which might result with invalid links generated in a PHP app. 25 | #fastcgi_param SERVER_PORT $server_port; 26 | 27 | # Using $http_host instead of $server_name - $server_name doesn't work correctly when using regexps in vhosts' server_name declaration. 28 | #fastcgi_param SERVER_NAME $server_name; 29 | fastcgi_param SERVER_NAME $http_host; 30 | 31 | # PHP only, required if PHP was built with --enable-force-cgi-redirect 32 | fastcgi_param REDIRECT_STATUS 200; 33 | 34 | fastcgi_index index.php; 35 | fastcgi_connect_timeout 10; 36 | fastcgi_send_timeout 600; 37 | fastcgi_read_timeout 600; 38 | fastcgi_buffer_size 32k; 39 | fastcgi_buffers 32 4k; 40 | fastcgi_busy_buffers_size 64k; 41 | fastcgi_temp_file_write_size 256k; 42 | fastcgi_intercept_errors on; 43 | fastcgi_pass_header on; 44 | fastcgi_keep_conn on; 45 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-base/etc/nginx/fastcgi_params: -------------------------------------------------------------------------------- 1 | fastcgi_param QUERY_STRING $query_string; 2 | fastcgi_param REQUEST_METHOD $request_method; 3 | fastcgi_param CONTENT_TYPE $content_type; 4 | fastcgi_param CONTENT_LENGTH $content_length; 5 | 6 | fastcgi_param PATH_INFO $fastcgi_script_name; 7 | fastcgi_param SCRIPT_NAME $fastcgi_script_name; 8 | fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 9 | fastcgi_param REQUEST_URI $request_uri; 10 | fastcgi_param DOCUMENT_URI $document_uri; 11 | fastcgi_param DOCUMENT_ROOT $document_root; 12 | fastcgi_param SERVER_PROTOCOL $server_protocol; 13 | fastcgi_param HTTPS $https if_not_empty; 14 | 15 | fastcgi_param GATEWAY_INTERFACE CGI/1.1; 16 | fastcgi_param SERVER_SOFTWARE nginx/$nginx_version; 17 | 18 | fastcgi_param REMOTE_ADDR $remote_addr; 19 | fastcgi_param REMOTE_PORT $remote_port; 20 | fastcgi_param SERVER_ADDR $server_addr; 21 | 22 | # SERVER_PORT needs to be commented out and has to be determined from other fields (e.g. HTTP_HOST) 23 | # Otherwise it points invalid port when container port is mapped to different port on host machine, 24 | # which might result with invalid links generated in a PHP app. 25 | #fastcgi_param SERVER_PORT $server_port; 26 | 27 | # Using $http_host instead of $server_name - $server_name doesn't work correctly when using regexps in vhosts' server_name declaration. 28 | #fastcgi_param SERVER_NAME $server_name; 29 | fastcgi_param SERVER_NAME $http_host; 30 | 31 | # PHP only, required if PHP was built with --enable-force-cgi-redirect 32 | fastcgi_param REDIRECT_STATUS 200; 33 | 34 | fastcgi_index index.php; 35 | fastcgi_connect_timeout 10; 36 | fastcgi_send_timeout 600; 37 | fastcgi_read_timeout 600; 38 | fastcgi_buffer_size 32k; 39 | fastcgi_buffers 32 4k; 40 | fastcgi_busy_buffers_size 64k; 41 | fastcgi_temp_file_write_size 256k; 42 | fastcgi_intercept_errors on; 43 | fastcgi_pass_header on; 44 | fastcgi_keep_conn on; 45 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix-xxl/usr/local/src/zabbix/frontends/php/grapher/grapher.css: -------------------------------------------------------------------------------- 1 | /*hide chosen items*/ 2 | .chosen-container-multi .chosen-choices li.search-field input[type="text"] { 3 | height: inherit; 4 | } 5 | .chosen-container-multi .chosen-choices li.search-choice { 6 | display: none; 7 | } 8 | 9 | /*allow deselect selected*/ 10 | .chosen-container-multi .chosen-drop .result-selected { 11 | color: #fff; 12 | background-color: #4885e3; 13 | cursor: pointer; 14 | display: list-item; 15 | } 16 | .chosen-container-multi .chosen-choices li.search-field { 17 | width: 100%; 18 | white-space: inherit; 19 | } 20 | .chosen-container .chosen-results li.highlighted,li.selected-result{ 21 | background-color:#2a62bc; 22 | background-image: none; 23 | color:#fff 24 | } 25 | .header-title .chosen-container ul {bottom: 0;} 26 | .header-title .chosen-container ul li {float: inherit;} 27 | /*select optgroup*/ 28 | .chosen-container .chosen-results li.group-result {cursor: pointer;} 29 | 30 | /* number hint and clear button*/ 31 | .chsn-hint, .chsn-clean { 32 | color: #999; 33 | display: inline; 34 | float: right; 35 | padding-top: 4px; 36 | } 37 | .chsn-clean { 38 | font-size: 21px; 39 | cursor: pointer; 40 | font-weight: 700; 41 | font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; 42 | padding-left: 10px; 43 | } 44 | .chsn-clean:hover { 45 | color: #F00; 46 | } 47 | 48 | /* pics */ 49 | #pics { 50 | text-align: center; 51 | } 52 | div.flickerfreescreen { 53 | display: inline-block; 54 | position: relative; 55 | margin: 10px; 56 | vertical-align: top; 57 | width: 730px; 58 | min-height: 400px; 59 | } 60 | div.flickerfreescreen:hover div.close-graph {display: block;} 61 | div.close-graph { 62 | display: none; 63 | font-size: 21px; 64 | cursor: pointer; 65 | font-weight: 700; 66 | font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; 67 | color: #ccc; 68 | position: absolute; 69 | right: 10px; 70 | top: 0; 71 | z-index: 10; 72 | } 73 | div.close-graph:after {content: '\00d7';} 74 | div.close-graph:hover {color: #F00;} 75 | 76 | /*pager*/ 77 | span.link.bold { 78 | text-decoration: none; 79 | cursor: default; 80 | } -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/grapher/grapher.css: -------------------------------------------------------------------------------- 1 | /*hide chosen items*/ 2 | .chosen-container-multi .chosen-choices li.search-field input[type="text"] { 3 | height: inherit; 4 | } 5 | .chosen-container-multi .chosen-choices li.search-choice { 6 | display: none; 7 | } 8 | 9 | /*allow deselect selected*/ 10 | .chosen-container-multi .chosen-drop .result-selected { 11 | color: #fff; 12 | background-color: #4885e3; 13 | cursor: pointer; 14 | display: list-item; 15 | } 16 | .chosen-container-multi .chosen-choices li.search-field { 17 | width: 100%; 18 | white-space: inherit; 19 | } 20 | .chosen-container .chosen-results li.highlighted,li.selected-result{ 21 | background-color:#2a62bc; 22 | background-image: none; 23 | color:#fff 24 | } 25 | .header-title .chosen-container ul {bottom: 0;} 26 | .header-title .chosen-container ul li {float: inherit;} 27 | /*select optgroup*/ 28 | .chosen-container .chosen-results li.group-result {cursor: pointer;} 29 | 30 | /* number hint and clear button*/ 31 | .chsn-hint, .chsn-clean { 32 | color: #999; 33 | display: inline; 34 | float: right; 35 | padding-top: 4px; 36 | } 37 | .chsn-clean { 38 | font-size: 21px; 39 | cursor: pointer; 40 | font-weight: 700; 41 | font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; 42 | padding-left: 10px; 43 | } 44 | .chsn-clean:hover { 45 | color: #F00; 46 | } 47 | 48 | /* pics */ 49 | #pics { 50 | text-align: center; 51 | } 52 | div.flickerfreescreen { 53 | display: inline-block; 54 | position: relative; 55 | margin: 10px; 56 | vertical-align: top; 57 | width: 730px; 58 | min-height: 400px; 59 | } 60 | div.flickerfreescreen:hover div.close-graph {display: block;} 61 | div.close-graph { 62 | display: none; 63 | font-size: 21px; 64 | cursor: pointer; 65 | font-weight: 700; 66 | font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; 67 | color: #ccc; 68 | position: absolute; 69 | right: 10px; 70 | top: 0; 71 | z-index: 10; 72 | } 73 | div.close-graph:after {content: '\00d7';} 74 | div.close-graph:hover {color: #F00;} 75 | 76 | /*pager*/ 77 | span.link.bold { 78 | text-decoration: none; 79 | cursor: default; 80 | } -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/grapher/grapher.css: -------------------------------------------------------------------------------- 1 | /*hide chosen items*/ 2 | .chosen-container-multi .chosen-choices li.search-field input[type="text"] { 3 | height: inherit; 4 | } 5 | .chosen-container-multi .chosen-choices li.search-choice { 6 | display: none; 7 | } 8 | 9 | /*allow deselect selected*/ 10 | .chosen-container-multi .chosen-drop .result-selected { 11 | color: #fff; 12 | background-color: #4885e3; 13 | cursor: pointer; 14 | display: list-item; 15 | } 16 | .chosen-container-multi .chosen-choices li.search-field { 17 | width: 100%; 18 | white-space: inherit; 19 | } 20 | .chosen-container .chosen-results li.highlighted,li.selected-result{ 21 | background-color:#2a62bc; 22 | background-image: none; 23 | color:#fff 24 | } 25 | .header-title .chosen-container ul {bottom: 0;} 26 | .header-title .chosen-container ul li {float: inherit;} 27 | /*select optgroup*/ 28 | .chosen-container .chosen-results li.group-result {cursor: pointer;} 29 | 30 | /* number hint and clear button*/ 31 | .chsn-hint, .chsn-clean { 32 | color: #999; 33 | display: inline; 34 | float: right; 35 | padding-top: 4px; 36 | } 37 | .chsn-clean { 38 | font-size: 21px; 39 | cursor: pointer; 40 | font-weight: 700; 41 | font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; 42 | padding-left: 10px; 43 | } 44 | .chsn-clean:hover { 45 | color: #F00; 46 | } 47 | 48 | /* pics */ 49 | #pics { 50 | text-align: center; 51 | } 52 | div.flickerfreescreen { 53 | display: inline-block; 54 | position: relative; 55 | margin: 10px; 56 | vertical-align: top; 57 | width: 730px; 58 | min-height: 400px; 59 | } 60 | div.flickerfreescreen:hover div.close-graph {display: block;} 61 | div.close-graph { 62 | display: none; 63 | font-size: 21px; 64 | cursor: pointer; 65 | font-weight: 700; 66 | font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; 67 | color: #ccc; 68 | position: absolute; 69 | right: 10px; 70 | top: 0; 71 | z-index: 10; 72 | } 73 | div.close-graph:after {content: '\00d7';} 74 | div.close-graph:hover {color: #F00;} 75 | 76 | /*pager*/ 77 | span.link.bold { 78 | text-decoration: none; 79 | cursor: default; 80 | } -------------------------------------------------------------------------------- /artifacts/deploy.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | 4 | SOURCE_BRANCH="master" 5 | TARGET_BRANCH="master" 6 | 7 | function doCompile { 8 | docker rmi monitoringartist/dockbix-xxl:latest || true 9 | ZVERSION=$(docker run --rm -ti monitoringartist/dockbix-xxl:latest zabbix_agentd -V | grep ^zabbix_agentd | awk -F'\\(Zabbix\\) ' '{print $2}' | sed -e 's/[[:blank:],[:cntrl:]]$//g;/^$/d') 10 | echo $ZVERSION 11 | sed -i "s#.*\"version\":.*#\"version\": \"$ZVERSION\",#" latest 12 | sed -i "s#Docker image version.*is available#Docker image version $ZVERSION is available#" latest 13 | } 14 | 15 | # Pull requests and commits to other branches shouldn't try to deploy 16 | if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_BRANCH" != "$SOURCE_BRANCH" ]; then 17 | echo "Skipping deploy." 18 | exit 0 19 | fi 20 | 21 | # Save some useful information 22 | REPO=`git config remote.origin.url` 23 | SSH_REPO=${REPO/https:\/\/github.com\//git@github.com:} 24 | SHA=`git rev-parse --verify HEAD` 25 | 26 | # Clone the existing master for this repo into out/ 27 | git clone $REPO out 28 | cd out 29 | git checkout $TARGET_BRANCH || git checkout --orphan $TARGET_BRANCH 30 | 31 | # Run our compile script 32 | doCompile 33 | 34 | # Now let's go have some fun with the cloned repo 35 | git config user.name "Travis CI" 36 | git config user.email "$COMMIT_AUTHOR_EMAIL" 37 | 38 | # If there are no changes to the compiled out (e.g. this is a README update) then just bail. 39 | if [ -z `git diff --exit-code` ]; then 40 | echo "No changes to the output on this push; exiting." 41 | exit 0 42 | fi 43 | 44 | # Commit the "changes", i.e. the new version. 45 | # The delta will show diffs between new and old versions. 46 | git add latest 47 | DATE=`date +"%Y-%m-%d %H:%M:%S"` 48 | git commit -m "Latest version update $DATE" 49 | 50 | # Get the deploy key by using Travis's stored variables to decrypt deploy_key.enc 51 | ENCRYPTED_KEY_VAR="encrypted_${ENCRYPTION_LABEL}_key" 52 | ENCRYPTED_IV_VAR="encrypted_${ENCRYPTION_LABEL}_iv" 53 | ENCRYPTED_KEY=${!ENCRYPTED_KEY_VAR} 54 | ENCRYPTED_IV=${!ENCRYPTED_IV_VAR} 55 | openssl aes-256-cbc -K $ENCRYPTED_KEY -iv $ENCRYPTED_IV -in ../artifacts/deploy_key.enc -out deploy_key -d 56 | chmod 600 deploy_key 57 | eval `ssh-agent -s` 58 | ssh-add deploy_key 59 | 60 | # Now that we're all set up, we can push. 61 | git push $SSH_REPO $TARGET_BRANCH 62 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-zabbix/etc/snmp/snmptt.conf: -------------------------------------------------------------------------------- 1 | # Default config for Zabbix 2 | EVENT general .* "General event" Normal 3 | FORMAT ZBXTRAP $aA $ar 4 | # 5 | # 6 | # 7 | #EVENT coldStart .1.3.6.1.6.3.1.1.5.1 "Status Events" Normal 8 | #FORMAT Device reinitialized (coldStart) 9 | #EXEC qpage -f TRAP notifygroup1 "Device reinitialized (coldStart)" 10 | #SDESC 11 | #A coldStart trap signifies that the SNMPv2 entity, acting 12 | #in an agent role, is reinitializing itself and that its 13 | #configuration may have been altered. 14 | #EDESC 15 | # 16 | # 17 | # 18 | #EVENT warmStart .1.3.6.1.6.3.1.1.5.2 "Status Events" Normal 19 | #FORMAT Device reinitialized (warmStart) 20 | #EXEC qpage -f TRAP notifygroup1 "Device reinitialized (warmStart)" 21 | #SDESC 22 | #A warmStart trap signifies that the SNMPv2 entity, acting 23 | #in an agent role, is reinitializing itself such that its 24 | #configuration is unaltered. 25 | #EDESC 26 | # 27 | # 28 | # 29 | #EVENT linkDown .1.3.6.1.6.3.1.1.5.3 "Status Events" Normal 30 | #FORMAT Link down on interface $1. Admin state: $2. Operational state: $3 31 | #EXEC qpage -f TRAP notifygroup1 "Link down on interface $1. Admin state: $2. Operational state: $3" 32 | #SDESC 33 | #A linkDown trap signifies that the SNMP entity, acting in 34 | #an agent role, has detected that the ifOperStatus object for 35 | #one of its communication links is about to enter the down 36 | #state from some other state (but not from the notPresent 37 | #state). This other state is indicated by the included value 38 | #of ifOperStatus. 39 | #EDESC 40 | # 41 | # 42 | # 43 | #EVENT linkUp .1.3.6.1.6.3.1.1.5.4 "Status Events" Normal 44 | #FORMAT Link up on interface $1. Admin state: $2. Operational state: $3 45 | #EXEC qpage -f TRAP notifygroup1 "Link up on interface $1. Admin state: $2. Operational state: $3" 46 | #SDESC 47 | #A linkUp trap signifies that the SNMP entity, acting in an 48 | #agent role, has detected that the ifOperStatus object for 49 | #one of its communication links left the down state and 50 | #transitioned into some other state (but not into the 51 | #notPresent state). This other state is indicated by the 52 | #included value of ifOperStatus. 53 | #EDESC 54 | # 55 | # 56 | # 57 | #EVENT authenticationFailure .1.3.6.1.6.3.1.1.5.5 "Status Events" Normal 58 | #FORMAT SNMP athentication failure 59 | #EXEC qpage -f TRAP notifygroup1 "SNMP authentication failure" 60 | #SDESC 61 | #An authenticationFailure trap signifies that the SNMPv2 62 | #entity, acting in an agent role, has received a protocol 63 | #message that is not properly authenticated. While all 64 | #implementations of the SNMPv2 must be capable of generating 65 | #this trap, the snmpEnableAuthenTraps object indicates 66 | #whether this trap will be generated. 67 | #EDESC 68 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-zabbix/etc/snmp/snmptt.conf: -------------------------------------------------------------------------------- 1 | # Default config for Zabbix 2 | EVENT general .* "General event" Normal 3 | FORMAT ZBXTRAP $aA $ar 4 | # 5 | # 6 | # 7 | #EVENT coldStart .1.3.6.1.6.3.1.1.5.1 "Status Events" Normal 8 | #FORMAT Device reinitialized (coldStart) 9 | #EXEC qpage -f TRAP notifygroup1 "Device reinitialized (coldStart)" 10 | #SDESC 11 | #A coldStart trap signifies that the SNMPv2 entity, acting 12 | #in an agent role, is reinitializing itself and that its 13 | #configuration may have been altered. 14 | #EDESC 15 | # 16 | # 17 | # 18 | #EVENT warmStart .1.3.6.1.6.3.1.1.5.2 "Status Events" Normal 19 | #FORMAT Device reinitialized (warmStart) 20 | #EXEC qpage -f TRAP notifygroup1 "Device reinitialized (warmStart)" 21 | #SDESC 22 | #A warmStart trap signifies that the SNMPv2 entity, acting 23 | #in an agent role, is reinitializing itself such that its 24 | #configuration is unaltered. 25 | #EDESC 26 | # 27 | # 28 | # 29 | #EVENT linkDown .1.3.6.1.6.3.1.1.5.3 "Status Events" Normal 30 | #FORMAT Link down on interface $1. Admin state: $2. Operational state: $3 31 | #EXEC qpage -f TRAP notifygroup1 "Link down on interface $1. Admin state: $2. Operational state: $3" 32 | #SDESC 33 | #A linkDown trap signifies that the SNMP entity, acting in 34 | #an agent role, has detected that the ifOperStatus object for 35 | #one of its communication links is about to enter the down 36 | #state from some other state (but not from the notPresent 37 | #state). This other state is indicated by the included value 38 | #of ifOperStatus. 39 | #EDESC 40 | # 41 | # 42 | # 43 | #EVENT linkUp .1.3.6.1.6.3.1.1.5.4 "Status Events" Normal 44 | #FORMAT Link up on interface $1. Admin state: $2. Operational state: $3 45 | #EXEC qpage -f TRAP notifygroup1 "Link up on interface $1. Admin state: $2. Operational state: $3" 46 | #SDESC 47 | #A linkUp trap signifies that the SNMP entity, acting in an 48 | #agent role, has detected that the ifOperStatus object for 49 | #one of its communication links left the down state and 50 | #transitioned into some other state (but not into the 51 | #notPresent state). This other state is indicated by the 52 | #included value of ifOperStatus. 53 | #EDESC 54 | # 55 | # 56 | # 57 | #EVENT authenticationFailure .1.3.6.1.6.3.1.1.5.5 "Status Events" Normal 58 | #FORMAT SNMP athentication failure 59 | #EXEC qpage -f TRAP notifygroup1 "SNMP authentication failure" 60 | #SDESC 61 | #An authenticationFailure trap signifies that the SNMPv2 62 | #entity, acting in an agent role, has received a protocol 63 | #message that is not properly authenticated. While all 64 | #implementations of the SNMPv2 must be capable of generating 65 | #this trap, the snmpEnableAuthenTraps object indicates 66 | #whether this trap will be generated. 67 | #EDESC 68 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-2.4/container-files-zabbix/etc/snmp/snmptt.conf: -------------------------------------------------------------------------------- 1 | # Default config for Zabbix 2 | EVENT general .* "General event" Normal 3 | FORMAT ZBXTRAP $aA $ar 4 | # 5 | # 6 | # 7 | #EVENT coldStart .1.3.6.1.6.3.1.1.5.1 "Status Events" Normal 8 | #FORMAT Device reinitialized (coldStart) 9 | #EXEC qpage -f TRAP notifygroup1 "Device reinitialized (coldStart)" 10 | #SDESC 11 | #A coldStart trap signifies that the SNMPv2 entity, acting 12 | #in an agent role, is reinitializing itself and that its 13 | #configuration may have been altered. 14 | #EDESC 15 | # 16 | # 17 | # 18 | #EVENT warmStart .1.3.6.1.6.3.1.1.5.2 "Status Events" Normal 19 | #FORMAT Device reinitialized (warmStart) 20 | #EXEC qpage -f TRAP notifygroup1 "Device reinitialized (warmStart)" 21 | #SDESC 22 | #A warmStart trap signifies that the SNMPv2 entity, acting 23 | #in an agent role, is reinitializing itself such that its 24 | #configuration is unaltered. 25 | #EDESC 26 | # 27 | # 28 | # 29 | #EVENT linkDown .1.3.6.1.6.3.1.1.5.3 "Status Events" Normal 30 | #FORMAT Link down on interface $1. Admin state: $2. Operational state: $3 31 | #EXEC qpage -f TRAP notifygroup1 "Link down on interface $1. Admin state: $2. Operational state: $3" 32 | #SDESC 33 | #A linkDown trap signifies that the SNMP entity, acting in 34 | #an agent role, has detected that the ifOperStatus object for 35 | #one of its communication links is about to enter the down 36 | #state from some other state (but not from the notPresent 37 | #state). This other state is indicated by the included value 38 | #of ifOperStatus. 39 | #EDESC 40 | # 41 | # 42 | # 43 | #EVENT linkUp .1.3.6.1.6.3.1.1.5.4 "Status Events" Normal 44 | #FORMAT Link up on interface $1. Admin state: $2. Operational state: $3 45 | #EXEC qpage -f TRAP notifygroup1 "Link up on interface $1. Admin state: $2. Operational state: $3" 46 | #SDESC 47 | #A linkUp trap signifies that the SNMP entity, acting in an 48 | #agent role, has detected that the ifOperStatus object for 49 | #one of its communication links left the down state and 50 | #transitioned into some other state (but not into the 51 | #notPresent state). This other state is indicated by the 52 | #included value of ifOperStatus. 53 | #EDESC 54 | # 55 | # 56 | # 57 | #EVENT authenticationFailure .1.3.6.1.6.3.1.1.5.5 "Status Events" Normal 58 | #FORMAT SNMP athentication failure 59 | #EXEC qpage -f TRAP notifygroup1 "SNMP authentication failure" 60 | #SDESC 61 | #An authenticationFailure trap signifies that the SNMPv2 62 | #entity, acting in an agent role, has received a protocol 63 | #message that is not properly authenticated. While all 64 | #implementations of the SNMPv2 must be capable of generating 65 | #this trap, the snmpEnableAuthenTraps object indicates 66 | #whether this trap will be generated. 67 | #EDESC 68 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix/etc/snmp/snmptt.conf: -------------------------------------------------------------------------------- 1 | # Default config for Zabbix 2 | EVENT general .* "General event" Normal 3 | FORMAT ZBXTRAP $aA $ar 4 | # 5 | # 6 | # 7 | #EVENT coldStart .1.3.6.1.6.3.1.1.5.1 "Status Events" Normal 8 | #FORMAT Device reinitialized (coldStart) 9 | #EXEC qpage -f TRAP notifygroup1 "Device reinitialized (coldStart)" 10 | #SDESC 11 | #A coldStart trap signifies that the SNMPv2 entity, acting 12 | #in an agent role, is reinitializing itself and that its 13 | #configuration may have been altered. 14 | #EDESC 15 | # 16 | # 17 | # 18 | #EVENT warmStart .1.3.6.1.6.3.1.1.5.2 "Status Events" Normal 19 | #FORMAT Device reinitialized (warmStart) 20 | #EXEC qpage -f TRAP notifygroup1 "Device reinitialized (warmStart)" 21 | #SDESC 22 | #A warmStart trap signifies that the SNMPv2 entity, acting 23 | #in an agent role, is reinitializing itself such that its 24 | #configuration is unaltered. 25 | #EDESC 26 | # 27 | # 28 | # 29 | #EVENT linkDown .1.3.6.1.6.3.1.1.5.3 "Status Events" Normal 30 | #FORMAT Link down on interface $1. Admin state: $2. Operational state: $3 31 | #EXEC qpage -f TRAP notifygroup1 "Link down on interface $1. Admin state: $2. Operational state: $3" 32 | #SDESC 33 | #A linkDown trap signifies that the SNMP entity, acting in 34 | #an agent role, has detected that the ifOperStatus object for 35 | #one of its communication links is about to enter the down 36 | #state from some other state (but not from the notPresent 37 | #state). This other state is indicated by the included value 38 | #of ifOperStatus. 39 | #EDESC 40 | # 41 | # 42 | # 43 | #EVENT linkUp .1.3.6.1.6.3.1.1.5.4 "Status Events" Normal 44 | #FORMAT Link up on interface $1. Admin state: $2. Operational state: $3 45 | #EXEC qpage -f TRAP notifygroup1 "Link up on interface $1. Admin state: $2. Operational state: $3" 46 | #SDESC 47 | #A linkUp trap signifies that the SNMP entity, acting in an 48 | #agent role, has detected that the ifOperStatus object for 49 | #one of its communication links left the down state and 50 | #transitioned into some other state (but not into the 51 | #notPresent state). This other state is indicated by the 52 | #included value of ifOperStatus. 53 | #EDESC 54 | # 55 | # 56 | # 57 | #EVENT authenticationFailure .1.3.6.1.6.3.1.1.5.5 "Status Events" Normal 58 | #FORMAT SNMP athentication failure 59 | #EXEC qpage -f TRAP notifygroup1 "SNMP authentication failure" 60 | #SDESC 61 | #An authenticationFailure trap signifies that the SNMPv2 62 | #entity, acting in an agent role, has received a protocol 63 | #message that is not properly authenticated. While all 64 | #implementations of the SNMPv2 must be capable of generating 65 | #this trap, the snmpEnableAuthenTraps object indicates 66 | #whether this trap will be generated. 67 | #EDESC 68 | -------------------------------------------------------------------------------- /Dockerfile/zabbix-xxl/container-files-zabbix-xxl/usr/local/src/zabbix/frontends/php/updatechecker/updatechecker.js: -------------------------------------------------------------------------------- 1 | var xxlUpdateCheck = "xxl_updatechecker"; 2 | var xxlCurrentVersion = ""; 3 | var xxlUpdateUrl = 'https://raw.githubusercontent.com/monitoringartist/zabbix-xxl/master/latest'; 4 | 5 | // check version once per day 6 | function updateCheck() { 7 | var cookieChk = getCookie(xxlUpdateCheck); 8 | if (cookieChk == undefined) { 9 | var jqxhr = jQuery.getJSON(xxlUpdateUrl, function(data) { 10 | if (xxlCurrentVersion != data.version && data.display == 1) { 11 | setCookie(xxlUpdateCheck, data.text, 1); 12 | console.log(data.text); 13 | displayInfo(); 14 | } else { 15 | // version match - off for a day 16 | setCookie(xxlUpdateCheck, "off", 1); 17 | } 18 | }) 19 | .fail(function() { 20 | // unsucesfull json request - off for a day 21 | setCookie(xxlUpdateCheck, "off", 1); 22 | }); 23 | } 24 | if (cookieChk != undefined && cookieChk != "off") { 25 | displayInfo(); 26 | } 27 | } 28 | // display info about new available update 29 | function displayInfo() { 30 | var cookieChk = getCookie(xxlUpdateCheck); 31 | if (cookieChk != undefined && cookieChk != "off") { 32 | var message = '
'; 33 | message = message + cookieChk; 34 | message = message + '

Close

'; 35 | message = message + "
"; 36 | jQuery('div[role="navigation"]').append(message); 37 | } 38 | return true; 39 | } 40 | // disable update checker for 7 days 41 | function closeInfo() { 42 | jQuery("#info").hide('slow'); 43 | setCookie(xxlUpdateCheck, "off", 7); 44 | } 45 | 46 | function setCookie(c_name, value, exdays) { 47 | var exdate = new Date(); 48 | exdate.setDate(exdate.getDate() + exdays); 49 | var c_value = escape(value) + ((exdays == null) ? "" : "; expires=" + exdate.toUTCString() + "; path=/"); 50 | document.cookie = c_name + "=" + c_value; 51 | } 52 | 53 | function getCookie(c_name) { 54 | var i, x, y, ARRcookies = document.cookie.split(";"); 55 | for (i = 0; i < ARRcookies.length; i++) { 56 | x = ARRcookies[i].substr(0, ARRcookies[i].indexOf("=")); 57 | y = ARRcookies[i].substr(ARRcookies[i].indexOf("=") + 1); 58 | x = x.replace(/^\s+|\s+$/g, ""); 59 | if (x == c_name) { 60 | return unescape(y); 61 | } 62 | } 63 | } 64 | 65 | jQuery(document).ready(function() { 66 | updateCheck(); 67 | }); 68 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-3.4/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/updatechecker/updatechecker.js: -------------------------------------------------------------------------------- 1 | var xxlUpdateCheck = "xxl_updatechecker"; 2 | var xxlCurrentVersion = ""; 3 | var xxlUpdateUrl = 'https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/latest'; 4 | 5 | // check version once per day 6 | function updateCheck() { 7 | var cookieChk = getCookie(xxlUpdateCheck); 8 | if (cookieChk == undefined) { 9 | var jqxhr = jQuery.getJSON(xxlUpdateUrl, function(data) { 10 | if (xxlCurrentVersion != data.version && data.display == 1) { 11 | setCookie(xxlUpdateCheck, data.text, 1); 12 | console.log(data.text); 13 | displayInfo(); 14 | } else { 15 | // version match - off for a day 16 | setCookie(xxlUpdateCheck, "off", 1); 17 | } 18 | }) 19 | .fail(function() { 20 | // unsucesfull json request - off for a day 21 | setCookie(xxlUpdateCheck, "off", 1); 22 | }); 23 | } 24 | if (cookieChk != undefined && cookieChk != "off") { 25 | displayInfo(); 26 | } 27 | } 28 | // display info about new available update 29 | function displayInfo() { 30 | var cookieChk = getCookie(xxlUpdateCheck); 31 | if (cookieChk != undefined && cookieChk != "off") { 32 | var message = '
'; 33 | message = message + cookieChk; 34 | message = message + '

Close

'; 35 | message = message + "
"; 36 | jQuery('div[role="navigation"]').append(message); 37 | } 38 | return true; 39 | } 40 | // disable update checker for 7 days 41 | function closeInfo() { 42 | jQuery("#info").hide('slow'); 43 | setCookie(xxlUpdateCheck, "off", 7); 44 | } 45 | 46 | function setCookie(c_name, value, exdays) { 47 | var exdate = new Date(); 48 | exdate.setDate(exdate.getDate() + exdays); 49 | var c_value = escape(value) + ((exdays == null) ? "" : "; expires=" + exdate.toUTCString() + "; path=/"); 50 | document.cookie = c_name + "=" + c_value; 51 | } 52 | 53 | function getCookie(c_name) { 54 | var i, x, y, ARRcookies = document.cookie.split(";"); 55 | for (i = 0; i < ARRcookies.length; i++) { 56 | x = ARRcookies[i].substr(0, ARRcookies[i].indexOf("=")); 57 | y = ARRcookies[i].substr(ARRcookies[i].indexOf("=") + 1); 58 | x = x.replace(/^\s+|\s+$/g, ""); 59 | if (x == c_name) { 60 | return unescape(y); 61 | } 62 | } 63 | } 64 | 65 | jQuery(document).ready(function() { 66 | updateCheck(); 67 | }); 68 | -------------------------------------------------------------------------------- /Dockerfile/dockbix-xxl-4.0/container-files-dockbix-xxl/usr/local/src/zabbix/frontends/php/updatechecker/updatechecker.js: -------------------------------------------------------------------------------- 1 | var xxlUpdateCheck = "xxl_updatechecker"; 2 | var xxlCurrentVersion = ""; 3 | var xxlUpdateUrl = 'https://raw.githubusercontent.com/monitoringartist/dockbix-xxl/master/latest'; 4 | 5 | // check version once per day 6 | function updateCheck() { 7 | var cookieChk = getCookie(xxlUpdateCheck); 8 | if (cookieChk == undefined) { 9 | var jqxhr = jQuery.getJSON(xxlUpdateUrl, function(data) { 10 | if (xxlCurrentVersion != data.version && data.display == 1) { 11 | setCookie(xxlUpdateCheck, data.text, 1); 12 | console.log(data.text); 13 | displayInfo(); 14 | } else { 15 | // version match - off for a day 16 | setCookie(xxlUpdateCheck, "off", 1); 17 | } 18 | }) 19 | .fail(function() { 20 | // unsucesfull json request - off for a day 21 | setCookie(xxlUpdateCheck, "off", 1); 22 | }); 23 | } 24 | if (cookieChk != undefined && cookieChk != "off") { 25 | displayInfo(); 26 | } 27 | } 28 | // display info about new available update 29 | function displayInfo() { 30 | var cookieChk = getCookie(xxlUpdateCheck); 31 | if (cookieChk != undefined && cookieChk != "off") { 32 | var message = '
'; 33 | message = message + cookieChk; 34 | message = message + '

Close

'; 35 | message = message + "
"; 36 | jQuery('div[role="navigation"]').append(message); 37 | } 38 | return true; 39 | } 40 | // disable update checker for 7 days 41 | function closeInfo() { 42 | jQuery("#info").hide('slow'); 43 | setCookie(xxlUpdateCheck, "off", 7); 44 | } 45 | 46 | function setCookie(c_name, value, exdays) { 47 | var exdate = new Date(); 48 | exdate.setDate(exdate.getDate() + exdays); 49 | var c_value = escape(value) + ((exdays == null) ? "" : "; expires=" + exdate.toUTCString() + "; path=/"); 50 | document.cookie = c_name + "=" + c_value; 51 | } 52 | 53 | function getCookie(c_name) { 54 | var i, x, y, ARRcookies = document.cookie.split(";"); 55 | for (i = 0; i < ARRcookies.length; i++) { 56 | x = ARRcookies[i].substr(0, ARRcookies[i].indexOf("=")); 57 | y = ARRcookies[i].substr(ARRcookies[i].indexOf("=") + 1); 58 | x = x.replace(/^\s+|\s+$/g, ""); 59 | if (x == c_name) { 60 | return unescape(y); 61 | } 62 | } 63 | } 64 | 65 | jQuery(document).ready(function() { 66 | updateCheck(); 67 | }); 68 | --------------------------------------------------------------------------------