Public | Automated Build

Last pushed: 9 months ago
Short Description
docker container with cacti
Full Description

docker-cacti

Docker container for cacti 0.8.8f

"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 14.04 use the commands:

$ sudo apt-get update
$ 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.

Accessing the Cacti applications:

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

Them you can log-in admin/admin, Please change the password.

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 ubuntu

 $ cd /usr/share/cacti/site/plugins/

download and unpack plugins

 $ wget wget http://docs.cacti.net/_media/plugin:flowview-v1.1-1.tgz
 $ gunzip -c plugin\:flowview-v1.1-1.tgz | tar xvf -
 $ 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 of the complete procedure for ubuntu.

To backup, restore cacti database :

To backup use the command below:

 $ docker exec -it container_id /sbin/backup

Them backup data was created /var/backups/alldb_backup.sql.

To restore use the command below:

 $ docker exec -it container_id /sbin/restore

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 Pull Command
Owner
quantumobject
Source Repository

Comments (12)
nakashimanozomi
7 months ago

cyhsu
7 months ago

Dear Sir
I install thold in cacti in Docker, but i failed to add Thresholds to all of my host. Someone suggest to drop the thold table in MYSQL. However i was denyed with the id: root by MYSQL when i tried to login MYSQL. Could you show me the right ID and password to login MYSQL? please help, thanks!

angelrr7702
9 months ago

if you don't define an specified port like -p 80:80 but do it like -p 80 , docker will provide different port each time the container is restarted and each time you need to check what is the port that docker is using for the container .

hodge01
10 months ago

when I was running the container in the right way,I can find it working .But as I taked it restart ,I can't open the web.So I docker exec container,I fould that all the proccess was running in the container such as mysql apache2 snmpd.I have tried 3 and more times to run a new container ,but the problem is also in.Can you help me?

angelrr7702
a year ago

working ... need to check /cacti/ web direction to check site. please read complete README.MD before posting a problem....

869779093root
a year ago

can't open the web

iamkwokwai
2 years ago

run fine, but I dont know mysql root password, where can find it?

angelrr7702
2 years ago

update container to make sure the last security update was installed plus I add some others packages ..libnet-snmp-perl, python-netsnmp and snmp-mibs-downloader.

ricardobranco
2 years ago

It would be nice if the image installs libnet-snmp-perl as well. Maybe even python-netsnmp too and snmp-mibs-downloader.

mraky
2 years ago

it is working fine thx :)

i have question - is there any way to add plugins? or it isyou, who must add it? is it possible to add flow pluggin?

http://docs.cacti.net/plugin:flowview