GithubHelp home page GithubHelp logo

delfuego / docker-munin-server Goto Github PK

View Code? Open in Web Editor NEW

This project forked from scalingo/docker-munin-server

0.0 2.0 0.0 15 KB

Dockerization of a munin server behind nginx

Nginx 9.84% Shell 90.16%

docker-munin-server's Introduction

Docker image for munin server

Configuration

All the configuration is done through the environment.

HTTP Credentials

These are the credentials used to authenticate the HTTP dashboard; both take a space-delimited list

  • MUNIN_USERS
  • MUNIN_PASSWORDS

SMTP info for alerts

Email credentials used to send emails (like alerts)

  • SMTP_HOST
  • SMTP_PORT
  • SMTP_USERNAME
  • SMTP_PASSWORD
  • SMTP_USE_TLS
  • SMTP_ALWAYS_SEND
  • SMTP_MESSAGE

Alert target

Email addressed used for the alerts, require SMTP credentials.

  • ALERT_RECIPIENT
  • ALERT_SENDER

List of the nodes to check

The port is always optional, default is 4949

  • NODES format: name1:ip1[:port1] name2:ip2[:port2] …
  • SNMP_NODES format: name1:ip1[:port1]

Port

Container is listening on the port 8080

Volumes

For a bit of persistency

  • /var/log/munin -> logs
  • /var/lib/munin -> db
  • /var/run/munin -> lock and pid files
  • /var/cache/munin -> file deserved by HTTP

How to use the image

docker build -t munin-server .
docker run -d \
  -p 8080:8080 \
  -v /var/log/munin:/var/log/munin \
  -v /var/lib/munin:/var/lib/munin \
  -v /var/run/munin:/var/run/munin \
  -v /var/cache/munin:/var/cache/munin \
  -e MUNIN_USERS='http-user another-user' \
  -e MUNIN_PASSWORDS='secret-password other-users-password' \
  -e SMTP_HOST=smtp.example.com \
  -e SMTP_PORT=587 \
  -e SMTP_USERNAME=smtp-username \
  -e SMTP_PASSWORD=smtp-password \
  -e SMTP_USE_TLS=false \
  -e SMTP_ALWAYS_SEND=true \
  -e SMTP_MESSAGE='[${var:group};${var:host}] -> ${var:graph_title} -> warnings: ${loop<,>:wfields  ${var:label}=${var:value}} / criticals: ${loop<,>:cfields  ${var:label}=${var:value}}' \
  -e [email protected] \
  -e [email protected] \
  -e NODES="server1:10.0.0.1 server2:10.0.0.2" \
  -e SNMP_NODES="router1:10.0.0.254:9999" \
  munin-server

You can now reach your munin-server on port 8080 of your host. It will display at the first run:

Munin has not run yet. Please try again in a few moments.

Every 5 minutes munin-server will interrogate its nodes and build the graphs and store the data. That's only after the first data fetching operation that the first graphs will appear.

docker-munin-server's People

Contributors

build-failure avatar delfuego avatar dsbaars avatar phlegx avatar soulou avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.