• Stars
    star
    181
  • Rank 212,110 (Top 5 %)
  • Language
  • License
    Other
  • Created almost 9 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🐳 Dockerized Zabbix agent with Docker metrics and host metrics support for CoreOS, RHEL, CentOS, Ubuntu, Debian, Fedora, Boot2docker, Photon OS, Amazon Linux, ...

Managed by Monitoring Artist: DevOps / Docker / Kubernetes / AWS ECS / Zabbix / Zenoss / Terraform / Monitoring

Dockbix Agent XXL - Dockerized Zabbix Agent with Docker, host, systemd, sockets monitoring

DockerHub pulls GitHub stars DockerHub stars Docker ready Docker Store ready Commercial support ready

dockbix-agent-xxl-limited is a 2nd generation of successful (500k+ pulls) zabbix-agent-xxl-limited Docker image - it's a standard Zabbix agent with Docker/host/systemd/socket/stress metrics support, which can be used with any Zabbix server. Tested on CoreOS, RHEL, CentOS, Ubuntu, Debian, Fedora, Boot2docker, Photon OS.

If you like or use this project, please provide feedback to author - Star it β˜… or submit feedback form.


Overview of Monitoring Artist (dockerized) monitoring ecosystem:


Start Dockbix agent container and monitor all Docker containers on your host. Module Zabbix Docker monitoring is used - all docker module container metrics are available except docker.xnet. Import/assign Dockbix Agent XXL templates + then just start Dockbix agent container:

Dockbix Agent XXL Docker container

docker run \
  --name=dockbix-agent-xxl \
  --net=host \
  --privileged \
  -v /:/rootfs \
  -v /var/run:/var/run \
  --restart unless-stopped \
  -e "ZA_Server=<ZABBIX SERVER IP/DNS NAME/IP_RANGE>" \
  -e "ZA_ServerActive=<ZABBIX SERVER IP/DNS NAME>" \
  -d monitoringartist/dockbix-agent-xxl-limited:latest

Dockbix Agent XXL Docker container

docker run --rm -t monitoringartist/dockbix-agent-xxl-limited version

Please donate to the author, so he can continue to publish other awesome projects for free:

Paypal donate button

Available tags

Docker image tag Docker image description
latest
3.4-3
Recommended version
Zabbix 3.4 agent + Dockbix v3
3.2-2 Zabbix 3.2 agent + Dockbix v2
3.2-1 Zabbix 3.2 agent + Dockbix v1

Public image tags on Docker Hub | Private image tags on Docker Hub

Public limited vs private paid image

Public limited Docker image monitoringartist/dockbix-agent-xxl-limited:latest has almost the same functionality as private paid Docker image monitoringartist/dockbix-agent-xxl:latest. However, limited version:

  • doesn't support custom UserParameter(s)
  • doesn't support command execution in the container; for example, you can't use system.run[] item
  • doesn't support any shell access in the container; for example, you can't use docker exec -ti dockbix-agent-xxl bash
  • collects Google Analytics statistics (Docker version, kernel version, execution driver, Dockbix agent container start-up errors), which are used for improvements; statistics may also be used for public presentations

Buy

General limitations:

  • Dockbix agent container doesn't support docker stop/start container commands
  • Dockbix agent container doesn't support docker.xnet container metrics
  • host metric support is not complete; CPU and net host metrics are available, filesystem metrics with /rootfs prefix, process (proc.*) are not available due to cgroup limitation

Environment configuration variables

You can use almost any agent config parameter, just add prefix ZA_. If you don't specify a custom setting variable, then default Zabbix agent setting will be used. For example, you want to use StartAgents=10, just add environment variable -e "ZA_StartAgents=10".

Example:

docker run \
  --name=dockbix-agent-xxl \
  --net=host \
  --privileged \
  -v /:/rootfs \
  -v /var/run:/var/run \
  --restart unless-stopped \
  -e "ZA_Server=<ZABBIX SERVER IP/DNS NAME/IP RANGE>" \
  -e "ZA_ServerActive=<ZABBIX SERVER IP/DNS NAME>" \
  -e "ZA_StartAgents=10" \
  -e "ZA_Timeout=30" \
  -d monitoringartist/dockbix-agent-xxl-limited:latest

You can't override some parameters: AllowRoot, LoadModulePath, LoadModule, LogType, because Docker monitoring module is used. Also, Zabbix agent configuration from the config file is not supported.

Zabbix templates

Example of Zabbix templates, which can be used with Dockbix agent:

Migration

There is no particular action required to migrate from older Docker image monitoringartist/zabbix-agent-xxl-limited. Just change Docker image name. Environment variables are still the same.

Public test instance of Dockbix Agent XXL

A public test instance of Dockbix agent XXL is available on the address play.monitoringart.com:10050*. It's available for anyone as a public part of the monitoringartist playground. Just create a new host in your Zabbix server with this configuration, and you will see what Dockbix can provide:

Public Dockbix Agent XXL

Public Dockbix Agent XXL

Note: There is no guarantee of availability of public test instance of Dockbix Agent container.

How it works

Dockbix Agent XXL Docker container

No standard rpm/deb package installation or Zabbix module compilation. Just start dockbix-agent-xxl container and Docker container metrics will be collected from the Docker daemon API or cgroups.

How to monitor dockerized apps

Ideas about monitoring of dockerized apps:

  • health endpoint: publish app health as an HTTP endpoint, which can be used for monitoring (item keys: web.page.get, web.page.regexp)
  • monitor them as a service: use standard Zabbix TCP/HTTP check (item keys: net.tcp.port, net.tcp.service, net.tcp.service.perf)
  • monitor them as a process: use standard Zabbix process check (item key: proc.num)

Still no idea how to monitor your dockerized app? Hire us!

Included projects

Zabbix agent stress testing:

$ docker run \
  --name=dockbix-agent-xxl \
  --net=host \
  --privileged \
  -v /:/rootfs \
  -v /var/run:/var/run \
  -e "ZA_Server=<ZABBIX SERVER IP/DNS NAME/IP RANGE>" \
  -e "ZA_ServerActive=<ZABBIX SERVER IP/DNS NAME>" \
  -d monitoringartist/dockbix-agent-xxl-limited:latest

# used HW - 8xCPU Intel(R) Xeon(R) CPU E31270 @ 3.40GHz:
$ docker exec -ti dockbix-agent-xxl zabbix_agent_bench -host 127.0.0.1 -timelimit 30 -key stress.ping --threads 50
Testing 1 keys with 50 threads (press Ctrl-C to cancel)...
stress.ping :	1225787	0	0

=== Totals ===

Total values processed:		1225787
Total unsupported values:	0
Total transport errors:		0
Total key list iterations:	1225787

Finished! Processed 1225787 values across 50 threads in 30.002141605s (40856.650040 NVPS)

Integrations/Docker orchestrations

Please feel free to create a pull request for other Docker orchestration tools: AWS ECS, Docker Swarm, Mesos/Marathon, Cloud Foundry, CoreOS Fleet, Azure ACS, Nomad, Zenoss Control Center, ...

3rd party projects:

Dockbix Agent XXL service managed by systemd

Example of systemd service unit file for Dockbix agent XXL - don't forget to edit environment variables. Then you can manage Dockbix agent XXL as a standard OS service:

$ wget -P /usr/lib/systemd/system/ https://raw.githubusercontent.com/monitoringartist/dockbix-agent-xxl/master/systemd/docker-dockbix-agent-xxl.service
# edit env variables: vi /usr/lib/systemd/system/docker-dockbix-agent-xxl.service
$ systemctl enable docker-dockbix-agent-xxl.service
Created symlink from /etc/systemd/system/multi-user.target.wants/docker-dockbix-agent-xxl.service to /usr/lib/systemd/system/docker-dockbix-agent-xxl.service.
$ systemctl start docker-dockbix-agent-xxl.service
$ systemctl status docker-dockbix-agent-xxl.service
● docker-dockbix-agent-xxl.service - Dockbix Agent XXL www.monitoringartist.com
   Loaded: loaded (/usr/lib/systemd/system/docker-dockbix-agent-xxl.service; enabled; vendor preset: disabled)
   Active: active (running) since Sat 2016-08-20 00:17:04 BST; 5s ago
  Process: 72712 ExecStartPre=/usr/bin/docker pull monitoringartist/dockbix-agent-xxl-limited:latest (code=exited, status=0/SUCCESS)
 Main PID: 72719 (docker)
   Memory: 8.6M
   CGroup: /system.slice/docker-dockbix-agent-xxl.service
           └─72719 /usr/bin/docker run --rm -e ZA_Server=<ZABBIX SERVER IP/DNS NAME> --name docker-dockbix-agent-xxl.service -h dockerhost --net=host --privileged -v /:/rootfs...

Aug 20 00:17:05 dockerhost docker[72719]: 11:20160819:231705.575 IPv6 support:          YES
Aug 20 00:17:05 dockerhost docker[72719]: 11:20160819:231705.575 TLS support:           YES
Aug 20 00:17:05 dockerhost docker[72719]: 11:20160819:231705.575 **************************
Aug 20 00:17:05 dockerhost docker[72719]: 11:20160819:231705.575 using configuration file: /etc/zabbix/zabbix_agentd.conf
Aug 20 00:17:05 dockerhost docker[72719]: 11:20160819:231705.581 loaded modules: zabbix_module_docker.so, zabbix_module_stress.so
Aug 20 00:17:05 dockerhost docker[72719]: 11:20160819:231705.583 agent #0 started [main process]
Aug 20 00:17:05 dockerhost docker[72719]: 12:20160819:231705.583 agent #1 started [collector]
Aug 20 00:17:05 dockerhost docker[72719]: 14:20160819:231705.583 agent #3 started [listener #2]
Aug 20 00:17:05 dockerhost docker[72719]: 13:20160819:231705.584 agent #2 started [listener #1]
Aug 20 00:17:05 dockerhost docker[72719]: 15:20160819:231705.586 agent #4 started [listener #3]
$ docker ps | grep dockbix-agent-xxl
b2ecbf3a7df0        monitoringartist/dockbix-agent-xxl-limited:latest   "/dockbix-agent-xxl"       25 seconds ago      Up 24 seconds       0.0.0.0:10050->10050/tcp   docker-zabbix-agent-xxl.service

Support

First try to troubleshoot problems yourself. Increase debug level -e 'ZA_DebugLevel=5' and check the container logs docker logs dockbix-agent-xxl. Try to obtain raw values from the agent, for example:

$ docker exec -ti dockbix-agent-xxl zabbix_get -s 127.0.0.1 -k docker.mem[/dockbix-agent-xxl,rss]
2977792

Other options:

All reported issues, which are not real issues, but requests for support will be closed with reference to this README section.

Author

Devops Monitoring Expert, who loves monitoring systems and cutting/bleeding edge technologies: Docker, Kubernetes, ECS, AWS, Google GCP, Terraform, Lambda, Zabbix, Grafana, Elasticsearch, Kibana, Prometheus, Sysdig, ...

Summary:

Professional devops / monitoring / consulting services:

Monitoring Artist

More Repositories

1

grafana-aws-cloudwatch-dashboards

☁️ 40+ Grafana dashboards for AWS CloudWatch metrics: EC2, Lambda, S3, ELB, EMR, EBS, SNS, SES, SQS, RDS, EFS, ElastiCache, Billing, API Gateway, VPN, Step Functions, Route 53, CodeBuild, ...
Jsonnet
1,959
star
2

zabbix-docker-monitoring

🐳 Docker/Kubernetes/Mesos/Marathon/Chronos/LXC/LXD/Swarm container monitoring - Docker image, Zabbix template and C module
C
1,179
star
3

zabbix-community-repos

πŸ“ 850+ Zabbix community project links: SW/HW/DB templates, scripts, CLIs, integrations, API libraries, modules, configurations, ...
982
star
4

dockbix-xxl

🐳 Dockerized Zabbix - server, web, proxy, java gateway, snmpd with additional extensions
JavaScript
377
star
5

kubernetes-zabbix

πŸ“¦ Kubernetes Zabbix/Grafana cluster (bare metal, Google Computer Engine - GCE, Google Container Engine - GKE)
262
star
6

zapix

Online Zabbix API tool - test and develope Zabbix API queries in the browser
JavaScript
176
star
7

zabbix-searcher

Search in 850+ Zabbix projects: templates, integrations, scripts, APIs, modules, ...
HTML
72
star
8

zenoss5-core-autodeploy

Zenoss 5 Core / Resource Manager 5 auto-deployment script - 2k+ Zenoss sucessfull deployements
Shell
71
star
9

docker-killer

Docker image for Docker stress and Docker orchestration testing
Shell
57
star
10

grafana-zabbix-dashboards

Grafana dashboards for Zabbix
56
star
11

grafana-monitoring-art

Grafana Monitoring Art datasource
JavaScript
38
star
12

zabbix-server-stress-test

How many new value per second can be handled by your Zabbix server?
C
29
star
13

monitoring-analytics

R statistical computing and graphic tool for Zabbix monitoring metrics from data scientists
R
27
star
14

opentelemetry-collector-monitoring

OpenTelemetry (OTEL) collector monitoring
26
star
15

grafana-utils

Grafana 5+ utils
Python
20
star
16

monitoring-for-managers

πŸš€ Specific monitoring for managers
19
star
17

zabbix-systemd-monitoring

DEPRECATED Zabbix monitoring of systemd units (service, ...)
17
star
18

zabbix-template-converter

πŸ“ Zabbix template XML/JSON/YAML converter
Go
16
star
19

grafana-elasticsearch-dashboards

Grafana dashboards for Elasticsearch datasource
15
star
20

zabbix-agent-stress-test

How many queries per second can be handled by zabbix-agent per defined item key?
Python
14
star
21

zabbix-switch-template-generator

Zabbix Switch SNMP Template Generator alpha
HTML
12
star
22

zabbix-script-servicenow

ServiceNow tickets from Zabbix
Python
9
star
23

zabbix-package-repo

Zabbix rpm/deb package community repo
8
star
24

zabbix-docker-monitoring-ng

Early alpha: Next generation of monitoringartist/zabbix-docker-monitoring
7
star
25

docker-raintank-collector

Dockerized Raintank Collector - ~10sec deployment
Shell
7
star
26

jasperserver-xxl

DEPRECATED Dockerized TIBCO JasperReports Server Community Edition
Shell
6
star
27

opentelemetry-trace-pipeline-poisoning

OpenTelemetry trace pipeline poisoning
5
star
28

grafana-cross-account-cloudwatch-access

IAM role to allow Grafana read CloudWatch metrics/logs from another AWS account
5
star
29

ZenPacks.JanGaraj.ZabbixAgent

Agent (Zabbix) monitoring for agentless Zenoss
Python
4
star
30

grafana-opentelemetry

4
star
31

docker-purestorage

Docker image for Pure Storage API
Python
4
star
32

go-zabbix

πŸ”¨ Zabbix structs for XML/JSON/YAML Zabbix template
Go
3
star
33

zabbix-agent-nvps-challenge

Zabbix Agent NVPS Challenge - current record 66k NVPS (new values per second)
Shell
3
star
34

zenoss-searcher

Python
2
star
35

control-center-zabbix

DEPRECATED Dockerized Zabbix for Zenoss Control Center (Docker orchestration tool)
PHP
2
star
36

vector

Netflix Vector monitoring - GitHub page and Docker image
HTML
1
star
37

grafana-zenoss-annotations

Display Zenoss events in your Grafana 3.0 graphs.
1
star
38

community.zenoss.org

Archived community.zenoss.org
HTML
1
star
39

repo.zabbix.com

Mirror of Zabbix 3.0 packages from http://repo.zabbix.com/ - issue https://support.zabbix.com/browse/ZBX-10972 -
HTML
1
star
40

grafana-debugger

Debug Grafana issues
Vue
1
star
41

ZenPacks.JanGaraj.DataMirroring

Mirror collected Zenoss data realtime
Python
1
star