User Tools

Site Tools


master:cnd:docker_nmm

How to run the NMM sections of CND in docker

Setting up config and data points

 mkdir -p <prefix>/docker/data
 

RANCID

(https://github.com/jalmeida/rancid-docker)

sudo docker run -t -i \
  -v <prefix>/docker/data/rancid/etc:/home/rancid/etc \
  -v <prefix>/docker/data/rancid/var:/home/rancid/var \
  jalmeida/rancid:test
  
sudo docker run -p 55581:80 -d \
  -v  <prefix>/docker/data/rancid/var:/opt/cvs \
  jalmeida/viewvc:test

LibreNMS

(https://github.com/jarischaefer/docker-librenms)

docker run --name my-database-container \
  -e MYSQL_ROOT_PASSWORD=secret \
  -e MYSQL_DATABASE=librenms \
  -e MYSQL_USER=librenms \
  -e MYSQL_PASSWORD=librenms \
  mysql:5.6


docker run -d  -p 80:80  \
  -e DB_HOST=db \
  -e DB_NAME=librenms \
  -e DB_USER=librenms  \   
  -e DB_PASS=librenms  \   
  -e BASE_URL=http://localhost \    
  -e POLLERS=16     \
  --link my-database-container:db   \  
  -v /tmp/librenms:/opt/librenms/logs   \  
  -v /tmp/librenms:/opt/librenms/rrd   \  
  --name librenms     \
  jarischaefer/docker-librenms
  
  docker exec librenms sh -c "cd /opt/librenms && php /opt/librenms/build-base.php"
  docker exec librenms php /opt/librenms/adduser.php admin admin 10 test@example.com

Netdot

(https://github.com/42wim/docker-netdot_deploy)

sudo docker run -i -t 
  -v /var/run/docker.sock:/docker.sock 
  42wim/netdot_deploy setup

Smokeping

(https://github.com/linuxserver/docker-smokeping)

mkdir -p <prefix>/docker/data/smokeping/data
git clone git@git.nsrc.org:dean/docker-smokeping-config.git <prefix>/docker/data/smokeping/config
chown -R 65535:65534 <prefix>/docker/data/smokeping
chmod -R 777 <prefix>/docker/data/smokeping

docker run \
    --name smokeping \
    -p 8080:80 \
    -e PUID=65535 -e PGID=65534 \
    -v <prefix>/docker/data/smokeping/data:/data \
    -v <prefix>/docker/data/smokeping/config:/config \
    linuxserver/smokeping

nfsen

nagios

(https://hub.docker.com/r/rohit01/shinken_thruk_graphite/)

mkdir -p <prefix>/docker/data/shinken/configs
sudo docker run -d 
  -v "<prefix>/docker/data/shinken/configs:/etc/shinken/custom_configs" 
  -p 80:80 
  rohit01/shinken_thruk_graphite
master/cnd/docker_nmm.txt · Last modified: 2016/06/14 05:35 by admin