As a newbie here not sure if this is the correct location to post this request… Apologies if wrong place.
I noticed that all my Synology devices were missing memory details. So after going through discovery and MIBs files I noticed that Synology MIBs have not been updated since 2013 and are missing quite a few entries that have been added since 2013.
The latest MIBs details for Synology can be found here:
Updating the MIB does not help directly. You have to identify which OIDs are missing. It is only MIBfile + OID discovery/polling that will actually display more data.
I would suggest that you add in this post the missing details you would like to see (OID name) and provide a direct link to the MIB file (in case necessary to update it)
su librenms
librenms@librenms:~$ pwd
/opt/librenms
librenms@librenms:~$ ./daily.sh
Updating SQL-Schema OK
Cleaning up DB OK
librenms@librenms:~$ ./validate.php
Component
Version
LibreNMS
21.2.0
DB Schema
No Schema (0)
PHP
7.4.15
Python
3.8.5
MySQL
8.0.23
RRDTool
1.7.2
SNMP
NET-SNMP 5.8
====================================
[OK] Composer Version: 2.0.11
[OK] Dependencies up-to-date.
[OK] Database connection successful
[FAIL] Your database is out of date!
[FIX]:
./lnms migrate
[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, 16 Feb 2021 04:52:41 +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
[WARN] Your local git contains modified files, this could prevent automatic updates.
[FIX]:
You can fix this with ./scripts/github-remove
Modified Files:
composer.json
[FAIL] We have found some files that are owned by a different user than librenms, this will stop you updating automatically and / or rrd files being updated causing graphs to fail.
[FIX]:
sudo chown -R librenms:librenms /opt/librenms
sudo setfacl -d -m g::rwx /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
sudo chmod -R ug=rwX /opt/librenms/rrd /opt/librenms/logs /opt/librenms/bootstrap/cache/ /opt/librenms/storage/
Files:
/opt/librenms/ssl
Hi @heinanr
It seems that you have a lot of issue on your LibreNMS install. daily.sh is not running regularly, you are not up-to-date, you have database issues, and you have some modified files.
We encourage you to fix all of those issues. And after, run a new discovery of your DSM device.
This version of Synology DSM works perfectly and provides all the memory values to a working LibreNMS instance.
I don’t see how running it in docker would selectively prevent memory details only not being shown properly but something I will need to look into in more details.
Anyway thanks for your help.
If I figure out the root cause, I’ll post details here.
I don’t use docker at all, so you’ll probably need to wait for somebody who does for more details. But Docker or not, Memory should be displayed for DSM for sure. And your validate shows that things must be fixed in your setup.
I decided to setup another docker instance for libreNMS and made sure I followed instructions accurately. It is now showing memory tables/stats for all the devices.
Thanks for your time @PipoCanaja, much appreciated for pointing me the right direction.
I’m not 100% sure why the first container had issues, but I suspect I might have forgotten to run “docker exec librenms setup_database” command or maybe it didn’t finish running when setting up the admin user (or at least do not remember running it at the time).