LibreNMS Docker Setup


Draco

Recommended Posts

Hi There,

 

Searched around and wasn't able to easily find information on this.

 

Basically looking to run LibreNMS docker and it requires a separate DB Docker looking to use MariaDB in this case. How would I go about implementing this on unraid?I have MariaDB up and running and looking to use https://hub.docker.com/r/librenms/librenms/ as the main container and it requires a DB_HOST variable, how do I utilise this?

 

I have set both dockers as 192.168.1.203 - Libre and 192.168.1.204 - Maria DB.

 

Any assistance would be helpful, thanks so much!

Link to comment
  • 3 weeks later...
  • 10 months later...

Bit late to the party, But I am using the librenms/librenms version of the container from CA.

 

Before starting the librenms container, create a new MariaDB container (I am using the linuxserver/mariadb one). Once that is loaded, use the CLI for that container to build your database, and allow access from another host:

 

CREATE DATABASE librenms CHARACTER SET utf8 COLLATE utf8_unicode_ci;
CREATE USER 'librenms'@'localhost' IDENTIFIED BY 'librenms';
CREATE USER 'librenms'@'%' IDENTIFIED BY 'librenms';
GRANT ALL PRIVILEGES ON librenms.* TO 'librenms'@'localhost';
GRANT ALL PRIVILEGES ON librenms.* TO 'librenms'@'%';
FLUSH PRIVILEGES;
exit

 

Now, when you configure the LibreNMS container, point the DBhost to be the IP of the container (in my case 192.168.0.196, the same IP as the unraid box itself, as I'm using bridged networks for the containers).

 

After a couple of minutes you can open the LibreNMS GUI and get cracking.

 

  • Thanks 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.