All Projects → bhuisgen → Docker Zabbix Coreos

bhuisgen / Docker Zabbix Coreos

Licence: gpl-3.0
Docker container with patched Zabbix agent for CoreOS server monitoring

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Docker Zabbix Coreos

Https Ssl Cert Check Zabbix
Script to check validity and expiration of TLS/SSL certificate on site. May be used with Zabbix or standalone.
Stars: ✭ 162 (+350%)
Mutual labels:  monitoring, zabbix
Wgcloud
linux运维监控工具,支持系统信息,内存,cpu,温度,磁盘空间及IO,硬盘smart,系统负载,网络流量等监控,API接口,大屏展示,拓扑图,进程监控,端口监控,docker监控,文件防篡改,日志监控,数据可视化,web ssh,堡垒机,指令下发批量执行,linux面板,探针,故障告警
Stars: ✭ 2,669 (+7313.89%)
Mutual labels:  monitoring, zabbix
Zabbix Haproxy
HAProxy Zabbix Discovery and Template
Stars: ✭ 169 (+369.44%)
Mutual labels:  monitoring, zabbix
Pyora
Python script to monitor Oracle Databases
Stars: ✭ 96 (+166.67%)
Mutual labels:  monitoring, zabbix
Squzy
Squzy - is a high-performance open-source monitoring, incident and alert system written in Golang with Bazel and love.
Stars: ✭ 359 (+897.22%)
Mutual labels:  monitoring, zabbix
Zabbix
Real-time monitoring of IT components and services, such as networks, servers, VMs, applications and the cloud.
Stars: ✭ 1,914 (+5216.67%)
Mutual labels:  monitoring, zabbix
Thola
Tool for monitoring and provisioning network devices (mainly using SNMP) - monitoring check plugin
Stars: ✭ 179 (+397.22%)
Mutual labels:  monitoring, zabbix
Grafana Zabbix Dashboards
Grafana dashboards for Zabbix
Stars: ✭ 50 (+38.89%)
Mutual labels:  monitoring, zabbix
Awesome Monitoring
INFRASTRUCTURE、OPERATION SYSTEM and APPLICATION monitoring tools for Operations.
Stars: ✭ 356 (+888.89%)
Mutual labels:  monitoring, zabbix
Kubernetes Zabbix
📦 Kubernetes Zabbix/Grafana cluster (bare metal, Google Computer Engine - GCE, Google Container Engine - GKE)
Stars: ✭ 244 (+577.78%)
Mutual labels:  monitoring, zabbix
Pm2 Zabbix
A Node.js PM2 monitoring tool for Zabbix.
Stars: ✭ 71 (+97.22%)
Mutual labels:  monitoring, zabbix
Zabbix Slack Alertscript
Zabbix AlertScript for Slack.com chat
Stars: ✭ 406 (+1027.78%)
Mutual labels:  monitoring, zabbix
Zabbixdba
Zabbix Database Monitoring Service (Oracle, Pg, MySQL, MS SQL, DB2, etc.)
Stars: ✭ 68 (+88.89%)
Mutual labels:  monitoring, zabbix
Grafana Zabbix
Zabbix plugin for Grafana dashboard
Stars: ✭ 1,716 (+4666.67%)
Mutual labels:  monitoring, zabbix
Zabbix Docker Monitoring
🐳 Docker/Kubernetes/Mesos/Marathon/Chronos/LXC/LXD/Swarm container monitoring - Docker image, Zabbix template and C module
Stars: ✭ 1,098 (+2950%)
Mutual labels:  monitoring, zabbix
Zorka
Sophisticated monitoring agent for Java
Stars: ✭ 178 (+394.44%)
Mutual labels:  monitoring, zabbix
Rabbitmq Zabbix
Zabbix RabbitMQ Configuration
Stars: ✭ 241 (+569.44%)
Mutual labels:  monitoring, zabbix
Dockbix Xxl
🐳 Dockerized Zabbix - server, web, proxy, java gateway, snmpd with additional extensions
Stars: ✭ 374 (+938.89%)
Mutual labels:  monitoring, zabbix
Zabbixagentlib
.Net library implementing a Zabbix agent
Stars: ✭ 9 (-75%)
Mutual labels:  monitoring, zabbix
Sandpolis
Experimental remote monitoring and management
Stars: ✭ 30 (-16.67%)
Mutual labels:  monitoring

Docker Zabbix for CoreOS server

This Docker container provides a patched Zabbix agent to monitor a real CoreOS server and all his containers.

The Zabbix agent has been patched to read system informations from these directories:

  • /coreos/proc mapped from /proc on the real host
  • /coreos/dev mapped from /dev on the real host
  • /coreos/sys mapped from /sys on the real host

You can access the Docker REST API through the socket file /coreos/var/run/docker.sock

Usage

Build the image

# docker build -t bhuisgen/docker-zabbix-coreos .

### Configure your Zabbix server

Import templates

Import the needed templates in etc/zabbix/templates

#### Create auto-registration action (optional)

To automatically create new host on the zabbix server, create a auto-registration action (Configuration/Actions/Auto-registration):

  • conditions: Host metadata like 'coreos'
  • actions: Add Host, Add host to groups, Link to templates (Custom Template CoreOS, Custom Template Docker, Template App SSH Service, Template ICMP Ping, Template OS Linux)

The host metadata value is the value shared by all your cluster nodes. Each node must shared the same value.

If you don't want to use the auto-registration, you must add each node in the frontend.

Run the container

Docker

To create the container:

# docker run -d -p 10050:10050 -u 0 -c 1024 -m 64M --memory-swap=-1 \
    -v /proc:/coreos/proc:ro -v /sys:/coreos/sys:ro -v /dev:/coreos/dev:ro \
    -v /var/run/docker.sock:/coreos/var/run/docker.sock \
    --name zabbix-coreos bhuisgen/docker-zabbix-coreos <SERVER> <HOSTMETADATA> [<HOSTNAME>]

If you want to access directly to the network stack of the node, you can use the host network mode but it is less secure:

# docker run -d -p 10050:10050 -u 0 -c 1024 -m 64M --memory-swap=-1 --net="host" \
    -v /proc:/coreos/proc:ro -v /sys:/coreos/sys:ro -v /dev:/coreos/dev:ro \
    -v /var/run/docker.sock:/coreos/var/run/docker.sock \
    --name zabbix-coreos bhuisgen/docker-zabbix-coreos <SERVER> <HOSTMETADATA> [<HOSTNAME>]

The needed options are:

  • SERVER (required): the IP address of the Zabbix server
  • HOSTMETADATA (required): the metadata value shared by all servers on the same cluster. This value will match the autoregistration action
  • HOSTNAME (optional): the hostname used by this agent in the zabbix frontend. If no value is given, the machine id of the host will be used

The agent will start and the auto-registration will add your agent if a auto-registration action is matched for your host metadata. If you don't want to auto-register your nodes, you need to specify the hostname value to use.

Fleet

Copy this file:

# cp files/fleet/zabbix-agent /etc/default/zabbix-agent

Each node will be created with the machine id into the Zabbix frontend.

Edit the environment file to set the configuration settings:

# vim /etc/default/zabbix-agent

The configuration settings are:

  • SERVER: the IP address of the Zabbix server
  • HOSTMETADATA (required): the metadata value shared by all servers on the same cluster. This value will match the autoregistration action

You can start the agent on all your cluster nodes with fleet:

# fleetctl submit zabbix-agent
# fleetctl start zabbix-agent

If you don't want to use auto-registration, create your service unit file. You can use the template in files/systemd.

FAQ

What is the machine id of my host ?

# cat /etc/machine-id

How to modify the agent configuration files ?

# docker exec -ti zabbix-coreos /bin/bash

Inside the container:

# cd /etc/zabbix/

How to restart the agent ?

# docker exec -ti zabbix-coreos /bin/bash

Inside the container:

# supervisorctl restart zabbix-agent

How to add custom user parameters for a host ?

Create a custom configuration file HOSTNAME.conf in etc/zabbix/ where HOSTNAME matches the value used for your host agent. Docker will concatenate this file into the main configuration file before running the container.

Exemple 1: with manual registration, if your zabbix host is myhost:

# vim etc/zabbix/5bcc6a59c4234d1eac3d6c57e3e58eff.conf

Exemple 2: with auto-registration, if you use cluster as host metadata and 5bcc6a59c4234d1eac3d6c57e3e58eff is the machine id of your real host:

# vim etc/zabbix/cluster-5bcc6a59c4234d1eac3d6c57e3e58eff.conf
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].