Giter VIP home page Giter VIP logo

observium's Introduction

observium

Observium docker image and docker-compose.yml

Built with RANCID, rsyslog, and smokeping

Simple method (docker-compose):

  1. Install docker, docker-compose and git

  2. Clone this repository

$ git clone $THIS_GIT_REPO
$ cd observium
  1. Set config

    • Open and modify mysql.env, if you want to configure parameters.
    • Open and modify observium.env, and change the domain and admin credentials.
    • Set Timezone and Lang in system.env
  2. Open docker-compose.yml

    • Set ports if desired. Observium listens on 8080, 514/udp for syslog.
    • Below are the list of volumes used:
  • /data/docker/observium/data/mysql - MySQL
  • /data/docker/observium/data/rrd - rrd
  • /data/docker/observium/data/logs - observium logs
  • /data/docker/observium/data/html - html data
  • /data/docker/observium/data/mibs - mibs snmp
  • /data/docker/observium/data/scripts - scripts
  • /data/docker/observium/data/ssh_keys - Read later for ssh key details
  • /data/docker/observium/data/rancid_configs - set RANCID config here
  • /data/docker/observium/data/rancid_logs - RANCID logs
  1. Start the services
$ docker-compose up -d
  1. What is id_rsa for? Using RANCID to connect to network devices without a password, it should have a key to log in. Do not set a passphrase on the key. Devices should have a user named rancid.
$ ssh-keygen -t rsa
$ scp ~/.ssh/id_rsa.pub admin@<mikrotik_ip>:mykey.pub

Professional image build

This is the easiest method for building, but it leaves the credentials in docker history.

cd images
docker build \
  --build-arg INSTALL_METHOD=pro \
  --build-arg SVN_USER=MYUSER \
  --build-arg SVN_PASS=SECRET \
  -t observium \
  .

In order to build without saving the credentials, use this approach instead:

cd images
svn co -q $SVN_REPO --username $SVN_USER --password $SVN_PASS observium
docker build \
  --build-arg INSTALL_METHOD=pro \
  --build-arg SVN_USER=MYUSER \
  --build-arg SVN_PASS=SECRET \
  -t observium \
  .

observium's People

Contributors

blackojack avatar mattymo avatar

Watchers

James Cloos avatar  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.