Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

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

# make build

Run the container

# docker run -d --net=host \
    -v /proc:/coreos/proc -v /sys:/coreos/sys -v /dev:/coreos/dev \
    -v /var/run/docker.sock:/coreos/var/run/docker.sock \
    --name zabbix-coreos docker-zabbix-coreos --server <SERVER_IP> --port <PORT> --hostname <HOSTNAME> --active <SERVER_IP:PORT>

The needed arguments are:

  • -h|--hostname : name of the host declared in the Zabbix frontend
  • -s|--server : IP address of the Zabbix server

Optionals arguments are:

  • -p|--port : port for bind Zabbix agent
  • -a|--active : IP address of the Zabbix server

Modify the agent configuration files

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

Restarting the agent

# supervisorctl restart zabbix-agent
Docker Pull Command
Owner
lborguetti
Source Repository

Comments (0)