Sign inSign up

lborguetti/docker-zabbix-coreos

By lborguetti

Updated about 11 years ago

Image
0

1.1K

lborguetti/docker-zabbix-coreos repository overview

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

Tag summary

Content type

Image

Digest

sha256:50c82efc2

Size

72.4 MB

Last updated

about 11 years ago

docker pull lborguetti/docker-zabbix-coreos