Suren A. Chilingaryan 22d3c280de Move datafile lock into the database folder and keep the rest of run files outside of the volume (since UNIX domain sockets can't be created on GlusterFS) | il y a 4 ans | |
---|---|---|
patches | il y a 4 ans | |
test | il y a 4 ans | |
.gitignore | il y a 7 ans | |
Dockerfile | il y a 4 ans | |
README.md | il y a 4 ans | |
munin.conf | il y a 4 ans | |
nginx-munin | il y a 4 ans | |
nginx.conf | il y a 4 ans | |
start-munin.sh | il y a 4 ans |
The package is based on the original Scalingo docker image which was modified to run OpenShift platform. Major modifications:
All the configuration is done through the environment.
Email credentials used to send emails (like alerts)
SMTP_HOST
SMTP_PORT
SMTP_USERNAME
SMTP_PASSWORD
SMTP_USE_TLS
SMTP_ALWAYS_SEND
SMTP_MESSAGE
Email addressed used for the alerts, require SMTP credentials.
ALERT_RECIPIENT
ALERT_SENDER
The port is always optional, default is 4949
NODES
format: name1:ip1[:port1] name2:ip2[:port2] …
SNMP_NODES
format: name1:ip1[:port1]
…SSH_NODES
format: name1:ip1[:port1]
…Container is listening on the port 8080
For a bit of persistency
docker build -t munin-server .
docker run -d \
-p 8080:8080 \
-v /var/lib/munin:/munin \
-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 ALERT_RECIPIENT=monitoring@example.com \
-e ALERT_SENDER=alerts@example.com \
-e NODES="server1:10.0.0.1 server2:10.0.0.2" \
-e SNMP_NODES="router1:10.0.0.254:9999" \
munin-server