Synology SNMP Network Monitoring with LibreNMS Docker
Posted On
2017 Dec 08
over 5 years ago
Updated On
2023 Jan 08
5 months ago


Just came back ONCE AGAIN to use your Guide, as i’ve been getting a dozen of customer’s on my own consulting company, where i do network, but dont understand databases.
now your Librenms/MariaDB guide just gave me a little something xtra to use when it comes to monitoring.
im not relying on the tool as im a sole beginner on this platform, so im using it and the Dessert when it comes to monitoring customer’s device health
Thank you so much for using this guide.!
once AGAIN im thanking you

Hi Jason. Not yet… ive been so busy i havent had the time yet to take a look at it.
since im not a great Docker/librenms expert i need several hours available before i can dive into it so i can learn But if you wanna take a quick look and make a little buck, let me know
ive started hosting a lot of server this week for customer so i might as well get those added to Librenms too, but right now im doing it on an IP address level, which will get confusing once i get added a ton of devices the host synology can ping dns names without a sweat but apparantly the bridge thing here is messing with me again
Hope youre enjoying the weekend man.

Hay @jasonloong, thanks for spending time looking into this. Good news, I have it working now! Bad news, I’m not entirely sure what actually fixed it Don’t you hate it when that happens?
For info, here’s all I get now from validate.php, but as I say now happily creating custom dashboards.
====================================
Component | Version
--------- | -------
LibreNMS | 1.63
DB Schema | 2020_04_19_010532_eventlog_sensor_reference_cleanup (164)
PHP | 7.4.5
MySQL | 10.4.12-MariaDB-1:10.4.12+maria~bionic
RRDTool | 1.7.0
SNMP | NET-SNMP 5.7.3
====================================
[OK] Composer Version: 1.10.5
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
[WARN] IPv6 is disabled on your server, you will not be able to add IPv6 devices.
[WARN] Your install is over 24 hours out of date, last update: Tue, 28 Apr 2020 03:52:42 +0000
[FIX]:
Make sure your daily.sh cron is running and run ./daily.sh by hand to see if there are any errors.
[WARN] Your local git branch is not master, this will prevent automatic updates.
[FIX]:
You can switch back to master with git checkout master

Seems like a great doc, unfortunately once I do the initial mariadb container install, the container goes into a continuous restart cycle. This is the first and only container install I’ve done on this NAS. I’ve removed and tried now three times with the same result each time.
Ideas???
Thanks

@beaker sorry for the second ping, forums was down during a misconfig on pfSense on my end, making sure email get sent to you

I think I figured it out (with your help). When I used your run statement, the container didn’t start. But there were a couple log entries.
[email protected]:/volume1/docker# docker logs mariadb
2020-05-07 19:44:41-07:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.4.12+maria~bionic started.
2020-05-07 19:44:42-07:00 [Note] [Entrypoint]: Switching to dedicated user ‘mysql’
2020-05-07 19:44:42-07:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 1:10.4.12+maria~bionic started.
2020-05-07 19:44:43-07:00 [ERROR] [Entrypoint]: Database is uninitialized and password option is not specified
You need to specify one of MYSQL_ROOT_PASSWORD, MYSQL_ALLOW_EMPTY_PASSWORD and MYSQL_RANDOM_ROOT_PASSWORD
I had a password in the run statement, but I was using a special character. Once I removed that special char, it worked fine w/ Jason’s original run statement.
Continuing on…
-Daren

5 posts were split to a new topic: LibreNMS and Raspberry Pi

Oh, sorry for being so concise
My set up is so simply:
Synology NAS with Librenms docker.
The Synology firewall is off.
Moikrotik router.
All output traffic it’s allowed.
Maybe I can try with the Google SMTP server
When I click the test I obtain this
But, if I configure a printer to alert directly, with the same config, the printer alert correctly.

hi all, an update to recent test deployment of jarischaefer’s LibreNMS image,
its broken on both Synology and general Debian installs
Do NOT update to latest image
Do NOT update to latest image if you doing maintenance of your containers
Tested on:
Syno 916+
DSM 6.2.3-25426
Version | 1.65.1 - Sat Jul 11 2020 03:56:16 GMT+0800 |
---|---|
Database Schema | 2020_06_23_00522_alter_availability_perc_column (170) |
Web Server | nginx/1.15.8 |
PHP | 7.4.7 |
Python | 3.6.9 |
MySQL | 10.4.12-MariaDB-1:10.4.12+maria~bionic |
Laravel | 6.18.20 |
RRDtool | 1.7.0 |
Discovery works but never polls after
Test with Ubuntu VM
Distributor ID: Ubuntu
Description: Ubuntu 18.04.4 LTS
Release: 18.04
Codename: bionic
Thought I’d test this image in a VM to cancel out some Syno permission problems to make sure the image is working
poller-wrapper.py error
Latest working version: 1.63
If anyone tested with the latest version and works, would appreciate if they could report with any work arounds/solutions
For new users deploying a fresh install, I’ve tested from latest, v1.65, v.1.64, with poller-wrappy.py errors, please use v1.63
Version 1.63 - Tue Apr 28 2020 11:52:42 GMT+0800
Database Schema 2020_04_19_010532_eventlog_sensor_reference_cleanup (164)
Web Server nginx/1.15.8
PHP 7.4.5
MySQL 10.5.4-MariaDB-1:10.5.4+maria~focal
RRDtool 1.7.0
Eg:
docker pull jarischaefer/docker-librenms:1.63
Meanwhile I’ll go report to jarischaefer
If you found this tutorial to be useful, your comments or
are most appreciated!
Stuck and need help/pointers with this tutorial? Comment in the forum powered by Discourse