setiseta / docker-librenms

LibreNMS Docker based on Phusion Baseimage
23 stars 23 forks source link

LibreNMS

Deprecated

Old Info


Last Changes


Version


Usage example

Needed directories on host:

with docker-compose

docker-compose up -d

with docker-compose + LDAP

docker-compose -f docker-compose-ldap.yml up -d

with docker-compose + distributed poller

docker-compose -f docker-compose-distributed-poller.yml up -d

with docker-compose + ceph support

docker-compose -f docker-compose-ceph.yml up -d

with mariadb as database

docker run -d -m 1g \
    -v $PWD/mysql:/var/lib/mysql \
    -v $PWD/50-server.cnf:/etc/mysql/mariadb.conf.d/50-server.cnf:ro \
    -e MYSQL_ROOT_PASSWORD=pwd4librenms \
    -e TZ=Europe/Vienna \
    --name librenms-db \
    mariadb:latest

docker run -d \
    -v $PWD/data:/data \
    -p 80:80 \
    -e TZ=Europe/Vienna \
    --link librenms-db:mysql \
    -e POLLER=24 \
    -e DB_TYPE=mysql \
    -e DB_HOST=mysql \
    -e DB_NAME=librenms \
    -e DB_USER=root \
    -e DB_PASS=pwd4librenms \
    -e LDAP_ENABLED=0 \
    -e LDAP_VERSION=3 \
    -e LDAP_SERVER=ldap.example.com \
    -e LDAP_PORT=389 \
    -e LDAP_PREFIX=uid= \
    -e LDAP_SUFFIX=,ou=People,dc=example,dc=com \
    -e LDAP_GROUP=cn=groupname,ou=groups,dc=example,dc=com \
    -e LDAP_GROUP_BASE=ou=group,dc=example,dc=com \
    -e LDAP_GROUP_MEMBER_ATTR=uid \
    -e LDAP_GROUP_MEMBER_TYPE= \
    --name librenms \
    seti/librenms

Access


Environment Vars


Plugins

[change to your data folder on host]
mkdir plugins (if it not exists. first run of this container will create it.)
cd plugins
git clone https://github.com/laf/Weathermap-for-Observium.git weathermap

Monitoring Plugins


Credits