Running LibreNMS in Docker

Channel:
Subscribers:
14,500
Published on ● Video Link: https://www.youtube.com/watch?v=Svx1uM5cVRY



Duration: 1:41
519 views
19


#LibreNMS #NetworkMonitoring #Docker

Full steps can be found at https://i12bretro.github.io/tutorials...

--------------------------------------------------------------------
What is LibreNMS
--------------------------------------------------------------------
LibreNMS is an autodiscovering PHP/MySQL/SNMP based network monitoring which includes support for a wide range of network hardware and operating systems including Cisco, Linux, FreeBSD, Juniper, Brocade, Foundry, HP and many more. - https://github.com/librenms/librenms
 
--------------------------------------------------------------------
Installing Docker
--------------------------------------------------------------------
   01. Log into the Linux based device
   02. Run the following commands in the terminal
         install prerequisites
         sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg-agent -y
         add docker gpg key
         curl -fsSL https://download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release)/gpg | sudo apt-key add -
         add docker software repository
         sudo add-apt-repository "deb [arch=$(dpkg --print-architecture)] https://download.docker.com/linux/$(awk -F'=' '/^ID=/{ print $NF }' /etc/os-release) $(lsb_release -cs) stable"
         install docker
         sudo apt install docker-ce docker-compose containerd.io -y
         enable and start docker service
         sudo systemctl enable docker && sudo systemctl start docker
         add the current user to the docker group
         sudo usermod -aG docker $USER
         reauthenticate for the new group membership to take effect
         su - $USER
 
--------------------------------------------------------------------
Running LibreNMS
--------------------------------------------------------------------
   01. Now that Docker is installed, run the following commands to setup the LibreNMS Docker container and run it
         create working directories
         mkdir /home/$USER/docker/librenms -p && mkdir /home/$USER/docker/mariadb -p
         run the mariadb docker container
         docker run --name mariadb -e MYSQL_ROOT_PASSWORD=p@$$word -e MYSQL_USER=librenms_rw -e MYSQL_PASSWORD=librenms -e MYSQL_DATABASE=librenms -v /home/$USER/docker/mariadb:/var/lib/mysql -p 3306:3306 -d mariadb
         run the librenms docker container, replace 10.10.27.11 with your docker host IP address
         docker run -d --name librenms -v /home/$USER/docker/librenms:/data -e TZ=America/New_York -e DB_HOST=10.10.27.11 -e DB_NAME=librenms -e DB_USER=librenms_rw -e DB_PASSWORD=librenms --network host librenms/librenms:latest
   02. Open a web browser and navigate to http://DNSorIP:8000
   03. Login to LibreNMS with username librenms and password librenms
   04. Welcome to LibreNMS running in a Docker container
   05. Hover over librenms in the top right ≫ My Settings
   06. Enter the current password (librenms) and enter and confirm a new password ≫ Click the Change Password button
 
Documentation:  https://hub.docker.com/r/librenms/lib...
 


Connect with me and others ###
★ Discord:   / discord  
★ Reddit:   / i12bretro  
★ Twitter:   / i12bretro  







Tags:
Browser Based
Container
Containerize
Debian
Docker
Docker Container
Docker How To
Docker Installation Tutorial
Docker Made Easy
Docker Made Simple
Docker Simplified
Docker Tutorial
Getting Started With Docker
Home Lab
Home Lab Ideas
Homelab
How To
Install Guide
LibreNMS
Linux
MariaDB
MySQL
NMS
Network Monitoring System
PHP
PHP Based Application
PHP Server Monitor
Self-Hosted
Tutorial
Ubuntu
Web Based
Web Based Tools
i12bretro