GithubHelp home page GithubHelp logo

surichard / docker-cacti Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pandeybk/docker-cacti

0.0 1.0 0.0 147 KB

docker container with cacti

Home Page: https://www.quantumobject.org

Shell 51.60% Dockerfile 48.40%

docker-cacti's Introduction

docker-cacti

Docker container for cacti 1.2.16

"Cacti is a complete network graphing solution designed to harness the power of RRDTool's data storage and graphing functionality. Cacti provides a fast poller, advanced graph templating, multiple data acquisition methods, and user management features out of the box. All of this is wrapped in an intuitive, easy to use interface that makes sense for LAN-sized installations up to complex networks with hundreds of devices."

Install dependencies

To install docker in Ubuntu 18.04 use the commands:

$ sudo apt-get update
$ sudo wget -qO- https://get.docker.com/ | sh

To install docker in other operating systems check docker online documentation

Usage

To run container use the command below:

$ docker run -d -p 80  quantumobject/docker-cacti

** -p 161:161 ==> remove to make sure you can monitor container and server running the container , this second more important to be able to monitoring all network interface of the server.

Set the timezone per environment variable:

-e TZ=Europe/London

or in yml:

environment:

 - TZ=Europe/London

Default value is America/New_York .

Added Volume for peristent data :

/opt/cacti/plugins

/var/log

/opt/cacti/templates

/var/lib/mysql

/opt/cacti/rra

Accessing the Cacti applications:

After that check with your browser at addresses plus the port assigined by docker:

  • http://host_ip:port/cacti/

Them you can log-in admin/admin, Please change the password and when installing double check the path to Spine binary that suppose to be /usr/local/spine/bin/spine.

Configuring Spine :

Go to Configuration -> Settings and click on the Paths tab.

Under the Alternate Poller Path, set the following:

Spine Binary File Location = /usr/local/spine/bin/spine
Spine Config File Path = /usr/local/spine/etc/spine.conf

Click Save at the bottom right.

Last is to make spine the active poller. Switch to the Poller tab and click on the drop down menu for Poller Type.Select spine and click save in the bottom right.

To install plugins on cacti :

To access the container from the server that the container is running

 $ docker exec -it container_id /bin/bash

change directory to plugins directory of the cacti

 $ cd /opt/cacti/plugins

download and unpack plugins

 $ wget https://github.com/Cacti/plugin_flowview/archive/develop.zip
 $ unzip develop.zip
 $ mkdir -p /var/netflow/flows/completed
 $ chmod 777 /var/netflow/flows/completed

and them access to cacti console/plugin management and install it and enable it. This is only for an example, to install and configured flowview you need to check its documentation. https://github.com/Cacti/plugin_flowview/blob/develop/README.md

More Info

About Cacti www.cacti.net

To help improve this container quantumobject/docker-cacti

For additional info about us and our projects check our site www.quantumobject.org

docker-cacti's People

Contributors

aaron-em avatar angelrr7702 avatar islander avatar jimmydigital avatar krknopp avatar maja68 avatar michaelscl avatar robisonjoel avatar surichard avatar traveyb avatar tukiyo avatar

Watchers

 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.